diff options
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,26 @@ +#ifndef UTIL_H + +enum ascii { NL = 10, ESC = 27, DEL = 127 }; +enum flags { IGNORE_ISIG = 1 << 0 }; +enum iptyp { DOWN = 0, PASS = 1, UP = 2 }; + +typedef struct { + const char *name; + const char *cmd; +} Menu; + +typedef struct { + int flag; + char statverf; + char statfail; + const char *headverf; + const char *headerr; + const char *statstr; + const char *floc; + Menu cmds[3]; +} State; + +void die(const char *fmt, ...); + +#define UTIL_H +#endif |