diff options
| author | Soikk | 2022-04-27 22:23:59 +0200 |
|---|---|---|
| committer | Soikk | 2022-04-27 22:23:59 +0200 |
| commit | 8a2981d9137357d4b2c86e8037e4f2ca9cea5578 (patch) | |
| tree | 8410987af957afc9ced113c521c07cba92b3d302 /parser.h | |
| download | soikk-DB-8a2981d9137357d4b2c86e8037e4f2ca9cea5578.tar.xz soikk-DB-8a2981d9137357d4b2c86e8037e4f2ca9cea5578.tar.zst | |
Initial commit
Diffstat (limited to 'parser.h')
| -rw-r--r-- | parser.h | 21 |
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 |
