aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
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/common.h
parent8542ec17d3df989f3df9fd03af7a447bf730dc13 (diff)
Doing SQL (work in progress)
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h15
1 files changed, 15 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