diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-10 21:20:27 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-10 21:20:27 +0200 |
commit | fc349af94466fbfa95c2f4d1c3435eecc11c3f2b (patch) | |
tree | f317a99b3235def27ceb84b265207184f30da3fd | |
parent | 8cc50638669ba0352895ddc6aca56a83332de490 (diff) | |
download | pianobar-fc349af94466fbfa95c2f4d1c3435eecc11c3f2b.tar.gz pianobar-fc349af94466fbfa95c2f4d1c3435eecc11c3f2b.tar.bz2 pianobar-fc349af94466fbfa95c2f4d1c3435eecc11c3f2b.zip |
Rename PianoXmlParseRate to -Simple. Other calls return a similar xml document
-rw-r--r-- | libpiano/xml.c | 6 |
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; |