19 lines
394 B
C
19 lines
394 B
C
#ifndef DIDACTYL_HTTP_API_H
|
|
#define DIDACTYL_HTTP_API_H
|
|
|
|
#include "config.h"
|
|
#include "tools/tools.h"
|
|
|
|
struct trigger_manager;
|
|
|
|
typedef struct {
|
|
didactyl_config_t* cfg;
|
|
tools_context_t* tools_ctx;
|
|
struct trigger_manager* trigger_manager;
|
|
} http_api_context_t;
|
|
|
|
int http_api_init(const http_api_context_t* ctx);
|
|
int http_api_poll(int timeout_ms);
|
|
void http_api_cleanup(void);
|
|
|
|
#endif |