summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-05-22 15:25:25 +0530
committersinanmohd <sinan@firemail.cc>2023-06-26 12:59:10 +0530
commitd7ce046606ce05dd8a37e83fc48667bbe4c20093 (patch)
tree7e8d44431998e8c9d80f39165b6525866ddb5856 /util.h
initial commitHEADmaster
Diffstat (limited to 'util.h')
-rw-r--r--util.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..41f2e28
--- /dev/null
+++ b/util.h
@@ -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