summaryrefslogtreecommitdiff
path: root/libpiano
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-10 21:20:27 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-10 21:20:27 +0200
commitfc349af94466fbfa95c2f4d1c3435eecc11c3f2b (patch)
treef317a99b3235def27ceb84b265207184f30da3fd /libpiano
parent8cc50638669ba0352895ddc6aca56a83332de490 (diff)
downloadpianobar-fc349af94466fbfa95c2f4d1c3435eecc11c3f2b.tar.gz
pianobar-fc349af94466fbfa95c2f4d1c3435eecc11c3f2b.tar.bz2
pianobar-fc349af94466fbfa95c2f4d1c3435eecc11c3f2b.zip
Rename PianoXmlParseRate to -Simple. Other calls return a similar xml document
Diffstat (limited to 'libpiano')
-rw-r--r--libpiano/xml.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpiano/xml.c b/libpiano/xml.c
index 97f56f8..e59e4b4 100644
--- a/libpiano/xml.c
+++ b/libpiano/xml.c
@@ -283,13 +283,15 @@ void PianoXmlParsePlaylist (PianoHandle_t *ph, char *xml) {
xmlCleanupParser();
}
-/* parse addFeedback answer
+/* parse simple answers like this: <?xml version="1.0" encoding="UTF-8"?>
+ * <methodResponse><params><param><value>1</value></param></params>
+ * </methodResponse>
* @author PromyLOPh
* @added 2008-06-10
* @param xml string
* @return
*/
-PianoReturn_t PianoXmlParseRate (char *xml) {
+PianoReturn_t PianoXmlParseSimple (char *xml) {
xmlNode *docRoot = NULL, *curNode = NULL;
xmlDocPtr doc = xmlReadDoc ((xmlChar *) xml, NULL, NULL, 0);
PianoReturn_t ret = PIANO_RET_ERR;