summaryrefslogtreecommitdiff
path: root/util.h
blob: 41f2e28da633d3751a19c44fceb2746eee93622d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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