diff options
author | thlo <smarttv640@gmail.com> | 2014-02-23 00:44:11 +0100 |
---|---|---|
committer | thlo <smarttv640@gmail.com> | 2014-02-23 00:44:11 +0100 |
commit | f804c01420eb0aeca30bfe4178e712ba6528d15c (patch) | |
tree | d8d230cb17c7c74b48aeeb62b1798c45983a5914 | |
parent | 7e59cb9c6fdd212098851d1f3208533f29fbdb17 (diff) | |
download | vdr-plugin-smarttvweb-f804c01420eb0aeca30bfe4178e712ba6528d15c.tar.gz vdr-plugin-smarttvweb-f804c01420eb0aeca30bfe4178e712ba6528d15c.tar.bz2 |
moved cmds to serverName.xml.
-rwxr-xr-x | responsememblk.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/responsememblk.c b/responsememblk.c index 4bb4523..e847f38 100755 --- a/responsememblk.c +++ b/responsememblk.c @@ -1838,6 +1838,9 @@ void cResponseMemBlk::sendServerNameXml () { *mResponseMessage += "<ipaddress>" + own_host.str() +"</ipaddress>\n"; + snprintf(f, sizeof(f), "<cmds>%s</cmds>\n", ((mRequest->mFactory->getConfig()->getCmds()) ? "true" : "false")); + *mResponseMessage += f; + *mResponseMessage += "</servername>\n"; sendHeaders(200, "OK", NULL, "application/xml", mResponseMessage->size(), -1); } @@ -1886,10 +1889,6 @@ int cResponseMemBlk::sendVdrStatusXml (struct stat *statbuf) { snprintf(f, sizeof(f), "<percent>%d</percent>", percent); *mResponseMessage += f; *mResponseMessage += "</diskspace>\n"; - - snprintf(f, sizeof(f), "<cmds>%s</cmds>\n", ((mRequest->mFactory->getConfig()->getCmds()) ? "true" : "false")); - *mResponseMessage += f; - *mResponseMessage += "</vdrstatus>\n"; |