/* +-------------------+ Christian Schlittchen | | Enno Rehling | Eressea PBEM host | Katja Zedel | (c) 1998 - 2003 | Henning Peters | | Ingo Wilken +-------------------+ Stefan Reich This program may not be used, modified or distributed without prior permission by the authors of Eressea. */ #ifndef H_UTIL_NRMESSAGE #define H_UTIL_NRMESSAGE #include #include #ifdef __cplusplus extern "C" { #endif struct locale; struct message; struct message_type; struct nrmessage_type; typedef struct nrsection { char *name; struct nrsection *next; } nrsection; extern nrsection *sections; void free_nrmesssages(void); void nrt_register(const struct message_type *mtype, const char *section); struct nrmessage_type *nrt_find(const struct message_type *); const char *nrt_string(const struct nrmessage_type *nrt, const struct locale *lang); const char *nrt_section(const struct nrmessage_type *nrt); size_t nr_render(const struct message *msg, const struct locale *lang, char *buffer, size_t size, const void *userdata); const char *nr_section(const struct message *msg); #ifdef __cplusplus } #endif #endif