aboutsummaryrefslogtreecommitdiff
path: root/include/repl.h
diff options
context:
space:
mode:
authorSoikk2022-05-05 18:45:45 +0200
committerSoikk2022-05-05 18:45:45 +0200
commit39c0dfbc9c4279e519841afae5c7413b1bdf56d8 (patch)
tree8fbe479baf22778911b75ec3d06f05de584b6bce /include/repl.h
parent6afe3cc8ec6c009a43950bdbe138cbc2d7a88a4d (diff)
downloadsoikk-DB-39c0dfbc9c4279e519841afae5c7413b1bdf56d8.tar.xz
soikk-DB-39c0dfbc9c4279e519841afae5c7413b1bdf56d8.tar.zst
More quality of life changes
Diffstat (limited to 'include/repl.h')
-rw-r--r--include/repl.h20
1 files changed, 20 insertions, 0 deletions
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