server/src/common/util/resolve.h

38 lines
975 B
C
Raw Normal View History

2001-01-25 10:37:55 +01:00
/* vi: set ts=2:
*
*
* Eressea PB(E)M host Copyright (C) 1998-2003
2001-01-25 10:37:55 +01:00
* Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de)
* Henning Peters (faroul@beyond.kn-bremen.de)
* Enno Rehling (enno@eressea.de)
2001-01-25 10:37:55 +01:00
* Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)
*
* This program may not be used, modified or distributed without
* prior permission by the authors of Eressea.
*/
#ifndef RESOLVE_H
#define RESOLVE_H
#include "variant.h"
struct storage;
#ifdef __cplusplus
extern "C" {
#endif
2001-01-25 10:37:55 +01:00
typedef int (*resolve_fun)(variant data, void * address);
typedef variant (*read_fun)(struct storage* store);
extern int read_reference(void * address, struct storage * store, read_fun reader, resolve_fun resolver);
extern void ur_add(variant data, void * address, resolve_fun fun);
extern void resolve(void);
2001-01-25 10:37:55 +01:00
extern variant read_int(struct storage * store);
#ifdef __cplusplus
}
#endif
2001-01-25 10:37:55 +01:00
#endif