]> git.vomp.tv Git - jsonserver.git/blob - handler.h
Rename recording
[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_recrename(Json::Value& js, const char* postData);
18 bool jsonserver_recstop(Json::Value& js, const char* postData);
19 bool jsonserver_channellist(Json::Value& js);
20 bool jsonserver_channelschedule(Json::Value& js, const char* postData);
21 bool jsonserver_getscheduleevent(Json::Value& js, const char* postData);
22 bool jsonserver_timerlist(Json::Value& js);
23 bool jsonserver_timerdel(Json::Value& js, const char* postData);
24 bool jsonserver_timerset(Json::Value& js, const char* postData);
25 bool jsonserver_timersetactive(Json::Value& js, const char* postData);
26
27 const cEvent* jsonserver_getEvent(Json::Value& js, int channelNumber, int eventID, int aroundTime);
28
29 #endif
30