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 /repl.h | |
| download | soikk-DB-8a2981d9137357d4b2c86e8037e4f2ca9cea5578.tar.xz soikk-DB-8a2981d9137357d4b2c86e8037e4f2ca9cea5578.tar.zst | |
Initial commit
Diffstat (limited to 'repl.h')
| -rw-r--r-- | repl.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +#ifndef REPL_H +#define REPL_H + +#include "db.h" + +typedef struct { + char *buffer; + ssize_t inputSize; +} inputBuffer; + + +inputBuffer *newInputBuffer(void); + +void freeInputBuffer(inputBuffer *in); + +void getInput(inputBuffer *in); + +void prompt(void); + +#endif
\ No newline at end of file |
