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
22 extern void set_cleanup_flag(enum cleanup_flag flag);
24 /* Frees memory and properly winds down ncurses / resets the terminal. */
25 extern void cleanup();