]> git.vomp.tv Git - jsonserver.git/blob - handler.h
Find event for timer in list even when timer is inactive
[jsonserver.git] / handler.h
1 #ifndef JSONSERVERHANDLER_H
2 #define JSONSERVERHANDLER_H
3
4 #include <jsoncpp/json/json.h>
5 #include "mongoose.h"
6
7 class cEvent;
8
9 int jsonserver_request_handler(struct mg_connection* conn);
10
11 bool jsonserver_gettime(Json::Value& js);
12 bool jsonserver_diskstats(Json::Value& js);
13 bool jsonserver_reclist(Json::Value& js);
14 bool jsonserver_recinfo(Json::Value& js, const char* postData);
15 bool jsonserver_recdel(Json::Value& js, const char* postData);
16 bool jsonserver_recmove(Json::Value& js, const char* postData);
17 bool jsonserver_recstop(Json::Value& js, const char* postData);
18 bool jsonserver_channellist(Json::Value& js);
19 bool jsonserver_channelschedule(Json::Value& js, const char* postData);
20 bool jsonserver_getscheduleevent(Json::Value& js, const char* postData);
21 bool jsonserver_timerlist(Json::Value& js);
22 bool jsonserver_timerdel(Json::Value& js, const char* postData);
23 bool jsonserver_timerset(Json::Value& js, const char* postData);
24 bool jsonserver_timersetactive(Json::Value& js, const char* postData);
25
26 const cEvent* jsonserver_getEvent(Json::Value& js, int channelNumber, int eventID, int aroundTime);
27
28 #endif
29