summaryrefslogtreecommitdiff
path: root/httpresource.c
diff options
context:
space:
mode:
authorthlo <t.lohmar@gmx.de>2013-09-14 18:11:01 +0200
committerthlo <t.lohmar@gmx.de>2013-09-14 18:11:01 +0200
commit971c1891c0f02e98859956ed8ef821cc5e53eed0 (patch)
tree60ea6d142d10c65f79fd1f788fab00e00197664d /httpresource.c
parentab15172eb00855899da98c9b2b9b028a4d306789 (diff)
parentb0bc0c365594276f6f14fec785e4fb8a37ad79c5 (diff)
downloadvdr-plugin-smarttvweb-971c1891c0f02e98859956ed8ef821cc5e53eed0.tar.gz
vdr-plugin-smarttvweb-971c1891c0f02e98859956ed8ef821cc5e53eed0.tar.bz2
Merge branch 'master' of git-vdr@projects.vdr-developer.org:vdr-plugin-smarttvweb.git
Diffstat (limited to 'httpresource.c')
-rwxr-xr-xhttpresource.c34
1 files changed, 32 insertions, 2 deletions
diff --git a/httpresource.c b/httpresource.c
index fcb7f82..76f7956 100755
--- a/httpresource.c
+++ b/httpresource.c
@@ -352,6 +352,14 @@ int cHttpResource::processRequest() {
}
//thlo for testing purpose
+/*
+ if (mPath.compare("/modifyTimer") == 0) {
+ mResponse = new cResponseMemBlk(this);
+ ((cResponseMemBlk*)mResponse)->receiveModTimerReq();
+ return OKAY;
+ }
+*/
+ //thlo for testing purpose
if (mPath.compare("/addTimer") == 0) {
mResponse = new cResponseMemBlk(this);
((cResponseMemBlk*)mResponse)->receiveAddTimerReq();
@@ -359,6 +367,14 @@ int cHttpResource::processRequest() {
}
#endif
+
+ if (mPath.compare("/deleteFile") == 0) {
+ mResponse = new cResponseMemBlk(this);
+ ((cResponseMemBlk*)mResponse)->receiveDelFileReq();
+ return OKAY;
+ }
+
+
if (mPath.compare("/serverName.xml") == 0) {
mResponse = new cResponseMemBlk(this);
((cResponseMemBlk*)mResponse)->sendServerNameXml( );
@@ -453,13 +469,22 @@ int cHttpResource::processRequest() {
}
}
- if (mPath.find("/web/") == 0) {
+ if (mPath.find("/web/", 0, 5) == 0) {
mPath = mFactory->getConfigDir() + mPath;
*(mLog->log())<< DEBUGPREFIX
<< " Found web request. serving " << mPath << endl;
ok_to_serve = true;
}
+ if (mPath.find("/live/", 0, 6) == 0) {
+ *(mLog->log())<< DEBUGPREFIX
+ << " Found live request. serving " << mPath << endl;
+ //mResponse = new cResponseLive(this, mPath.substr(6));
+ //((cResponseVdrDir*)mResponse)->sendMediaSegment( &statbuf);
+ return OKAY;
+
+ }
+
if (mPath.compare(0, strlen(VideoDirectory), VideoDirectory) == 0) {
*(mLog->log())<< DEBUGPREFIX
<< " Found video dir request. serving " << mPath << endl;
@@ -624,12 +649,17 @@ int cHttpResource::handlePost() {
}
if (mPath.compare("/deleteYtUrl") == 0) {
-
mResponse = new cResponseMemBlk(this);
((cResponseMemBlk*)mResponse)->receiveDelYtUrl();
return OKAY;
}
+ if (mPath.compare("/deleteFile") == 0) {
+ mResponse = new cResponseMemBlk(this);
+ ((cResponseMemBlk*)mResponse)->receiveDelFileReq();
+ return OKAY;
+ }
+
if (mPath.compare("/deleteRecording.xml") == 0) {
mResponse = new cResponseMemBlk(this);
((cResponseMemBlk*)mResponse)->receiveDelRecReq();