2001-01-25 10:37:55 +01:00
|
|
|
/* vi: set ts=2:
|
|
|
|
*
|
2001-04-14 13:39:14 +02:00
|
|
|
*
|
2003-07-29 11:48:03 +02:00
|
|
|
* 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)
|
2007-09-02 20:11:17 +02:00
|
|
|
* 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
|
2005-06-10 00:10:35 +02:00
|
|
|
|
2005-07-31 11:12:36 +02:00
|
|
|
#include "variant.h"
|
2008-05-24 02:20:00 +02:00
|
|
|
struct storage;
|
2005-06-10 00:10:35 +02:00
|
|
|
|
2003-07-29 11:48:03 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2001-01-25 10:37:55 +01:00
|
|
|
|
2008-05-24 02:20:00 +02: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);
|
2005-06-10 00:10:35 +02:00
|
|
|
extern void resolve(void);
|
2001-01-25 10:37:55 +01:00
|
|
|
|
2008-05-24 02:20:00 +02:00
|
|
|
extern variant read_int(struct storage * store);
|
|
|
|
|
2003-07-29 11:48:03 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2001-01-25 10:37:55 +01:00
|
|
|
#endif
|