summaryrefslogtreecommitdiff
path: root/libpiano/src/xml.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-08-13 12:11:44 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-08-13 12:11:44 +0200
commit95d3383fd3996c8a181c04379f6ff57a685933d3 (patch)
treef54d44129e7f3f287d796066152ecbf29cca088b /libpiano/src/xml.c
parentbfda4e40cce3aa986e4fe8d3881a689cd6ef411f (diff)
downloadpianobar-95d3383fd3996c8a181c04379f6ff57a685933d3.tar.gz
pianobar-95d3383fd3996c8a181c04379f6ff57a685933d3.tar.bz2
pianobar-95d3383fd3996c8a181c04379f6ff57a685933d3.zip
piano: Describe narrative functions added in last commit
Diffstat (limited to 'libpiano/src/xml.c')
-rw-r--r--libpiano/src/xml.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c
index 6d4dad8..4d945e7 100644
--- a/libpiano/src/xml.c
+++ b/libpiano/src/xml.c
@@ -745,6 +745,11 @@ PianoReturn_t PianoXmlParseTranformStation (const char *searchXml) {
return PIANO_RET_OK;
}
+/* parses "why did you play ...?" answer
+ * @param xml
+ * @param returns the answer
+ * @return _OK or error
+ */
PianoReturn_t PianoXmlParseNarrative (const char *xml, char **retNarrative) {
xmlNode *docRoot;
xmlDocPtr doc;
@@ -754,6 +759,7 @@ PianoReturn_t PianoXmlParseNarrative (const char *xml, char **retNarrative) {
return ret;
}
+ /* <methodResponse> <params> <param> <value> $textnode */
xmlNode *val = docRoot->children->children->children->children;
*retNarrative = strdup ((char *) val->content);