mirror of https://github.com/sfeakes/AqualinkD.git
26 lines
981 B
C
26 lines
981 B
C
#ifndef NET_SERVICES_H_
|
|
#define NET_SERVICES_H_
|
|
|
|
#define GET_RTN_OK "Ok"
|
|
#define GET_RTN_UNKNOWN "Unknown command"
|
|
#define GET_RTN_NOT_CHANGED "Not Changed"
|
|
#define GET_RTN_ERROR "Error"
|
|
|
|
|
|
#define CONTENT_JSON "Content-Type: application/json"
|
|
#define CONTENT_JS "Content-Type: text/javascript"
|
|
#define CONTENT_TEXT "Content-Type: text/plain"
|
|
|
|
//void main_server();
|
|
//void main_server_TEST(struct aqualinkdata *aqdata, char *s_http_port);
|
|
//bool start_web_server(struct mg_mgr *mgr, struct aqualinkdata *aqdata, char *port, char* web_root);
|
|
//bool start_net_services(struct mg_mgr *mgr, struct aqualinkdata *aqdata, struct aqconfig *aqconfig);
|
|
bool start_net_services(struct mg_mgr *mgr, struct aqualinkdata *aqdata);
|
|
void stop_net_services(struct mg_mgr *mgr);
|
|
time_t poll_net_services(struct mg_mgr *mgr, int timeout_ms);
|
|
void broadcast_aqualinkstate(struct mg_connection *nc);
|
|
void broadcast_aqualinkstate_error(struct mg_connection *nc, char *msg);
|
|
|
|
|
|
|
|
#endif // WEB_SERVER_H_
|