]> git.vomp.tv Git - jsonserver.git/blob - handler.h
New Makefile, min VDR now 1.7.35
[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 class cTimer;
9
10 int jsonserver_request_handler(struct mg_connection* conn);
11
12 bool jsonserver_gettime(Json::Value& js);
13 bool jsonserver_diskstats(Json::Value& js);
14 bool jsonserver_reclist(Json::Value& js);
15 bool jsonserver_recinfo(Json::Value& js, const char* postData);
16 bool jsonserver_recdel(Json::Value& js, const char* postData);
17 bool jsonserver_recmove(Json::Value& js, const char* postData);
18 bool jsonserver_recrename(Json::Value& js, const char* postData);
19 bool jsonserver_recstop(Json::Value& js, const char* postData);
20 bool jsonserver_channellist(Json::Value& js);
21 bool jsonserver_channelschedule(Json::Value& js, const char* postData);
22 bool jsonserver_getscheduleevent(Json::Value& js, const char* postData);
23 bool jsonserver_timerlist(Json::Value& js);
24 bool jsonserver_timerdel(Json::Value& js, const char* postData);
25 bool jsonserver_timerset(Json::Value& js, const char* postData);
26 bool jsonserver_timersetactive(Json::Value& js, const char* postData);
27 bool jsonserver_timerisrecording(Json::Value& js, const char* postData);
28
29 const cEvent* jsonserver_getEvent(Json::Value& js, int channelNumber, int eventID, int aroundTime);
30 cTimer* jsonserver_findTimer(const char* rChannelID, const char* rName, const char* rStartTime, const char* rStopTime, const char* rWeekDays);
31
32 #endif
33