diff options
author | thlo <smarttv640@gmail.com> | 2013-10-03 12:34:48 +0200 |
---|---|---|
committer | thlo <smarttv640@gmail.com> | 2013-10-03 12:34:48 +0200 |
commit | da43351ba6ca31c3ad1cab41231ea7ff772b350f (patch) | |
tree | 948c95d51ea231f872f455e5015732b0e0e0123f /httpresource.c | |
parent | aaa2ea1a1d576dcad5397e4bc650a0efcdd860a4 (diff) | |
download | vdr-plugin-smarttvweb-da43351ba6ca31c3ad1cab41231ea7ff772b350f.tar.gz vdr-plugin-smarttvweb-da43351ba6ca31c3ad1cab41231ea7ff772b350f.tar.bz2 |
handling of commands.conf added. smarttvweb.conf parameter changed from reccmds to commands.
Diffstat (limited to 'httpresource.c')
-rwxr-xr-x | httpresource.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/httpresource.c b/httpresource.c index 854cf96..7ab75af 100755 --- a/httpresource.c +++ b/httpresource.c @@ -326,6 +326,17 @@ int cHttpResource::processRequest() { return OKAY; } + if (mPath.compare("/cmds.xml") == 0) { + mResponse = new cResponseMemBlk(this); + ((cResponseMemBlk*)mResponse)->sendCmds(); + return OKAY; + } + if (mPath.compare("/execcmd") == 0) { + mResponse = new cResponseMemBlk(this); + ((cResponseMemBlk*)mResponse)->receiveExecCmdReq(); + return OKAY; + } + if (mPath.compare("/setResume.xml") == 0) { mResponse = new cResponseMemBlk(this); ((cResponseMemBlk*)mResponse)->receiveResume(); @@ -670,6 +681,12 @@ int cHttpResource::handlePost() { return OKAY; } + if (mPath.compare("/execcmd") == 0) { + mResponse = new cResponseMemBlk(this); + ((cResponseMemBlk*)mResponse)->receiveExecCmdReq(); + return OKAY; + } + if (mPath.compare("/deleteTimer.xml") == 0) { mResponse = new cResponseMemBlk(this); ((cResponseMemBlk*)mResponse)->receiveDelTimerReq(); |