aboutsummaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/parser.h b/parser.h
new file mode 100644
index 0000000..7f1854b
--- /dev/null
+++ b/parser.h
@@ -0,0 +1,21 @@
+#ifndef PARSER_H
+#define PARSER_H
+
+#include "db.h"
+
+
+typedef enum {
+ META_COMMAND_SUCCESS,
+ META_COMMAND_FAIL,
+} metaCommandStatus;
+
+
+uint16_t len(const char *s);
+
+bool sameStr(const char* s1, const char *s2);
+
+int handleMetaCommand(inputBuffer *in);
+
+int handleInput(inputBuffer *in);
+
+#endif \ No newline at end of file