Files
psychocrypt d0b99bb4c6 remove space indention with tabs
- removed all space indention in `*.hpp` and `*.cpp` files
2017-11-16 12:21:38 +01:00

34 lines
482 B
C++

#pragma once
#include <stdlib.h>
struct MHD_Daemon;
struct MHD_Connection;
class httpd
{
public:
static httpd* inst()
{
if (oInst == nullptr) oInst = new httpd;
return oInst;
};
bool start_daemon();
private:
httpd();
static httpd* oInst;
static int req_handler(void * cls,
MHD_Connection* connection,
const char* url,
const char* method,
const char* version,
const char* upload_data,
size_t* upload_data_size,
void ** ptr);
MHD_Daemon *d;
};