#ifndef WEBSERVER_H
#define WEBSERVER_H
#include "../public/nsapi.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct restart_callback RestartCallback;
struct restart_callback {
void (*func)(
void *);
void *data;
RestartCallback *next;
};
int webserver_init();
int webserver_run();
void webserver_shutdown();
void webserver_end();
int webserver_reconfig();
void webserver_atrestart(
void (*fn)(
void *),
void *data);
void webserver_destroy();
int ws_init_ssl();
#ifdef __cplusplus
}
#endif
#endif