summaryrefslogtreecommitdiff
path: root/libpiano/xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpiano/xml.c')
-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;