aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
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