summaryrefslogtreecommitdiff
path: root/httpresource.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpresource.c')
-rwxr-xr-xhttpresource.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/httpresource.c b/httpresource.c
index b6f6d06..60868ba 100755
--- a/httpresource.c
+++ b/httpresource.c
@@ -79,7 +79,7 @@ using namespace std;
-cHttpResource::cHttpResource(int f, int id, int port, SmartTvServer* factory): cHttpResourceBase(f, id, port, factory),
+cHttpResource::cHttpResource(int f, int id, int port, string a, SmartTvServer* factory): cHttpResourceBase(f, id, port, a, factory),
mLog(), mConnTime(0), mHandleReadCount(0),
mConnected(true), mConnState(WAITING), mReadBuffer(), mMethod(),
// mBlkData(NULL), mBlkPos(0), mBlkLen(0),
@@ -301,6 +301,12 @@ int cHttpResource::processRequest() {
return OKAY;
}
+ if (mPath.compare("/getrecordings") == 0) {
+ mResponse = new cResponseMemBlk(this);
+ ((cResponseMemBlk*)mResponse)->GetRecordings();
+ return OKAY;
+ }
+
if (mPath.compare("/channels.xml") == 0) {
mResponse = new cResponseMemBlk(this);
((cResponseMemBlk*)mResponse)->sendChannelsXml( &statbuf);