aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov@twistea.su>2025-03-27 12:52:11 +0300
committerjustanothercatgirl <sotov@twistea.su>2025-03-27 12:52:11 +0300
commit82742d5d13dc7b0691a79c79f8e62782fcb16e10 (patch)
tree48d077549ed667d2a54171b82eb7608cb8edaf3e /include
parent8542ec17d3df989f3df9fd03af7a447bf730dc13 (diff)
Doing SQL (work in progress)
Diffstat (limited to 'include')
-rw-r--r--include/common.h15
-rw-r--r--include/sql.h6
2 files changed, 21 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
new file mode 100644
index 0000000..539ba3a
--- /dev/null
+++ b/include/common.h
@@ -0,0 +1,15 @@
+#ifndef COMMON_H
+
+#include <microhttpd.h>
+
+#include <unistd.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+
+typedef struct MHD_Response*(*endpoint)(struct MHD_Connection*, int *status);
+typedef char *(*query_func)(const char *path);
+
+char *duplicate(const char *x);
+struct MHD_Response *get_from_file(const char *path);
+
+#endif // COMMON_H
diff --git a/include/sql.h b/include/sql.h
new file mode 100644
index 0000000..e14167b
--- /dev/null
+++ b/include/sql.h
@@ -0,0 +1,6 @@
+#ifndef SQL_H
+#define SQL_H
+
+extern const char *INIT_SQL, *INSERT_SQL, *DELETE_SQL;
+
+#endif