diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-19 12:11:12 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-19 12:11:12 +0200 |
commit | 00cfc5e626abc51df4b728a064697616cf7aae02 (patch) | |
tree | 1ca714e58e7bc8b479b7c08e163c1e26917492c4 /libpiano/src/xml.c | |
parent | 98813251e60234aac43ef41090980f2771ce2360 (diff) | |
download | pianobar-00cfc5e626abc51df4b728a064697616cf7aae02.tar.gz pianobar-00cfc5e626abc51df4b728a064697616cf7aae02.tar.bz2 pianobar-00cfc5e626abc51df4b728a064697616cf7aae02.zip |
Rate "shared stations" correctly by transforming them to private stations
Diffstat (limited to 'libpiano/src/xml.c')
-rw-r--r-- | libpiano/src/xml.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c index 91bb120..d0faca6 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -212,6 +212,8 @@ void PianoXmlParseStationsCb (char *key, xmlNode *value, void *data) { station->id = strdup (valueStr); } else if (strcmp ("isQuickMix", key) == 0) { station->isQuickMix = (strcmp (valueStr, "1") == 0); + } else if (strcmp ("isCreator", key) == 0) { + station->isCreator = (strcmp (valueStr, "1") == 0); } } @@ -659,3 +661,21 @@ PianoReturn_t PianoXmlParseGenreExplorer (PianoHandle_t *ph, return PIANO_RET_OK; } + +/* dummy function, only checks for errors + * @param xml doc + * @return _OK or error + */ +PianoReturn_t PianoXmlParseTranformStation (char *searchXml) { + xmlNode *docRoot; + xmlDocPtr doc; + PianoReturn_t ret; + + if ((ret = PianoXmlInitDoc (searchXml, &doc, &docRoot)) != PIANO_RET_OK) { + return ret; + } + + xmlFreeDoc (doc); + + return PIANO_RET_OK; +} |