1 /* src/client/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_NCURSES = 0x0001,
18 CLEANUP_INTERFACE = 0x0002,
19 CLEANUP_COMMANDS = 0x0004,
20 CLEANUP_SERVER_IN = 0x0008,
21 CLEANUP_SERVER_OUT = 0x0008
24 extern void set_cleanup_flag(enum cleanup_flag flag);
26 /* Frees memory and properly winds down ncurses / resets the terminal. */
27 extern void cleanup();