add and compile tinyweb

This commit is contained in:
2019-12-04 23:50:02 +01:00
parent 4e93bae908
commit da4dc1e0d4
8 changed files with 2172 additions and 113 deletions

View File

@@ -27,14 +27,11 @@
#define _WEB_SERVER_H
/*------------------------------- INCLUDES ----------------------------------*/
#include <cstring>
#include <uv.h>
#include <tinyweb/tinyweb.h>
/*---------------------------------- Deps -----------------------------------*/
class CivetServer;
struct event_base;
/*--------------------------------- CLASS ----------------------------------*/
class WebServer
@@ -43,10 +40,10 @@ public:
WebServer(void);
~WebServer(void);
int setup(const char *a_document_root, const char *a_port, struct event_base *an_evt_loop);
int setup(char *a_document_root, int a_port, uv_loop_t *an_evt_loop);
private:
CivetServer *m_server;
tw_config m_conf;
};
#endif /* __WEB_SERVER_H */