From 39c0dfbc9c4279e519841afae5c7413b1bdf56d8 Mon Sep 17 00:00:00 2001 From: Soikk Date: Thu, 5 May 2022 18:45:45 +0200 Subject: More quality of life changes --- include/repl.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/repl.h (limited to 'include/repl.h') diff --git a/include/repl.h b/include/repl.h new file mode 100644 index 0000000..9c9fb8e --- /dev/null +++ b/include/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