aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
blob: 81b4ca2d7386a9e0c3a8aa67313ae4c82cb59a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef COMMON_H

#include <microhttpd.h>

#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>

typedef struct MHD_Response*(*endpoint)(const char *method, 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