server/src/util/crmessage.h

41 lines
1.3 KiB
C
Raw Normal View History

2010-08-08 10:06:34 +02:00
/* vi: set ts=2:
+-------------------+ Christian Schlittchen <corwin@amber.kn-bremen.de>
| | Enno Rehling <enno@eressea.de>
| Eressea PBEM host | Katja Zedel <katze@felidae.kn-bremen.de>
| (c) 1998 - 2003 | Henning Peters <faroul@beyond.kn-bremen.de>
| | Ingo Wilken <Ingo.Wilken@informatik.uni-oldenburg.de>
+-------------------+ Stefan Reich <reich@halbling.de>
This program may not be used, modified or distributed
without prior permission by the authors of Eressea.
*/
#ifndef H_UTIL_CRMESSAGE
#define H_UTIL_CRMESSAGE
#include "variant.h"
#ifdef __cplusplus
extern "C" {
#endif
2011-03-07 08:02:35 +01:00
struct locale;
struct message;
struct message_type;
2010-08-08 10:06:34 +02:00
2011-03-07 08:02:35 +01:00
typedef int (*tostring_f) (variant data, char *buffer, const void *userdata);
extern void tsf_register(const char *name, tostring_f fun);
/* registers a new type->string-function */
2010-08-08 10:06:34 +02:00
2011-03-07 08:02:35 +01:00
extern int cr_string(variant v, char *buffer, const void *userdata);
extern int cr_int(variant v, char *buffer, const void *userdata);
extern int cr_ignore(variant v, char *buffer, const void *userdata);
2010-08-08 10:06:34 +02:00
2011-03-07 08:02:35 +01:00
extern void crt_register(const struct message_type *mtype);
extern int cr_render(const struct message *msg, char *buffer,
const void *userdata);
2010-08-08 10:06:34 +02:00
#ifdef __cplusplus
}
#endif
#endif