1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-09 23:49:47 +02:00
ant-http/lib/plugin.h
2019-11-13 11:48:54 +01:00

34 lines
528 B
C

#ifndef PLUGIN_H
#define PLUGIN_H
#ifdef USE_DB
#include "dbhelper.h"
#endif
#include "ws.h"
#include "scheduler.h"
//typedef void(*call)();
#ifdef USE_DB
typedef sqlite3* sqldb;
#endif
#ifdef USE_DB
sqldb getdb();
sqldb __getdb(char *name);
#endif
char* route(const char*);
char* htdocs(const char*);
char* config_dir();
/*Default function for plugin*/
// init the plugin
void __attribute__((weak)) init();
void __attribute__((weak)) destroy();
void* handle(void*);
plugin_header_t* meta();
void use_raw_body();
#endif