aboutsummaryrefslogtreecommitdiff
path: root/repl.h
diff options
context:
space:
mode:
authorSoikk2022-04-27 22:23:59 +0200
committerSoikk2022-04-27 22:23:59 +0200
commit8a2981d9137357d4b2c86e8037e4f2ca9cea5578 (patch)
tree8410987af957afc9ced113c521c07cba92b3d302 /repl.h
downloadsoikk-DB-8a2981d9137357d4b2c86e8037e4f2ca9cea5578.tar.xz
soikk-DB-8a2981d9137357d4b2c86e8037e4f2ca9cea5578.tar.zst
Initial commit
Diffstat (limited to 'repl.h')
-rw-r--r--repl.h20
1 files changed, 20 insertions, 0 deletions
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