summaryrefslogtreecommitdiff
path: root/src/cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd.h')
-rw-r--r--src/cmd.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cmd.h b/src/cmd.h
new file mode 100644
index 0000000..5b0e7c8
--- /dev/null
+++ b/src/cmd.h
@@ -0,0 +1,17 @@
+#ifndef CMD_H
+#define CMD_H
+
+enum cmdtype {
+ GET, SET,
+ DEL, ERR
+};
+
+struct cmd {
+ enum cmdtype type;
+ char *selector;
+ char *params;
+};
+
+struct cmd eval(char *str);
+
+#endif