diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 15 | ||||
-rw-r--r-- | include/sql.h | 6 |
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 |