1 /* src/server/cleanup.h
3 * Stuff defining / performing the cleanup called by rexit.h's exit functions.
11 /* set_cleanup_flag() sets any of the flags defined in cleanup_flag to announce
12 * the resources that need cleaning up upon program exit. It is to be called at
13 * the earliest moment possible after resource creation / initialization.
17 CLEANUP_FIFO = 0x0001,
18 CLEANUP_WORLDSTATE = 0x0002,
19 CLEANUP_THING_TYPES = 0x0004,
20 CLEANUP_THINGS = 0x0008,
21 CLEANUP_THING_ACTIONS = 0x0010,
26 /* In addition, unset_cleanup_flag() may be used to unset flags. */
27 extern void set_cleanup_flag(enum cleanup_flag flag);
28 extern void unset_cleanup_flag(enum cleanup_flag flag);
30 /* Frees memory and unlinks some files. */
31 extern void cleanup();