summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/keytab.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/include/keytab.h b/src/include/keytab.h
index e69de29..f3b8910 100644
--- a/src/include/keytab.h
+++ b/src/include/keytab.h
@@ -0,0 +1,23 @@
+#ifndef KEYTAB_H
+#define KEYTAB_H
+
+#define TABLEN 1024
+
+union value {
+ char *str;
+ double num;
+ unsigned int b : 1;
+};
+
+struct keytab {
+ char *key;
+ int flag;
+ union value v;
+};
+
+int *getkeys(struct keytab *tab);
+struct keytab getkey(struct keytab *tab, char *key);
+void setkey(struct keytab *tab, char *pair);
+void delkey(struct keytab *tab, char *key);
+
+#endif