From 8a2981d9137357d4b2c86e8037e4f2ca9cea5578 Mon Sep 17 00:00:00 2001 From: Soikk Date: Wed, 27 Apr 2022 22:23:59 +0200 Subject: Initial commit --- repl.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 repl.h (limited to 'repl.h') diff --git a/repl.h b/repl.h new file mode 100644 index 0000000..9c9fb8e --- /dev/null +++ b/repl.h @@ -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 -- cgit v1.2.3