From c17e785395246007a177b69347213384094befc5 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 12 Jun 2008 20:55:24 +0200 Subject: lib: Misc documentation fixes --- libpiano/main.c | 6 +++--- libpiano/xml.c | 12 +++++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'libpiano') diff --git a/libpiano/main.c b/libpiano/main.c index 4d186a9..3e77490 100644 --- a/libpiano/main.c +++ b/libpiano/main.c @@ -168,7 +168,6 @@ void PianoDestroy (PianoHandle_t *ph) { * @return nothing */ void PianoConnect (PianoHandle_t *ph, char *user, char *password) { - /* sync */ char url[PIANO_URL_BUFFER_SIZE]; char *requestStr = PianoEncryptString ("" "misc.sync" @@ -415,8 +414,9 @@ PianoReturn_t PianoDeleteStation (PianoHandle_t *ph, PianoStation_t *station) { return ret; } -/* search for music (artist or track), needed to create new station, don't - * forget to free the search result +/* search for music (artist or track), needed to create new station; don't + * forget to free the search result; beware! searchResult will be nulled + * by PianoXmlParseSearch * @author PromyLOPh * @added 2008-06-11 * @public yes diff --git a/libpiano/xml.c b/libpiano/xml.c index 3862cb5..de3f150 100644 --- a/libpiano/xml.c +++ b/libpiano/xml.c @@ -246,6 +246,12 @@ void PianoXmlParseStations (PianoHandle_t *ph, char *xml) { xmlCleanupParser(); } +/* parses playlist; used when searching too + * @author PromyLOPh + * @added 2008-06-12 + * @param piano handle + * @param xml document + */ void PianoXmlParsePlaylist (PianoHandle_t *ph, char *xml) { /* FIXME: copy & waste */ xmlNode *docRoot = NULL, *curNode = NULL; @@ -339,7 +345,7 @@ void PianoXmlParseSearchArtistCb (char *key, xmlNode *value, void *data) { } /* callback for xml struct parser used in PianoXmlParseSearch, "switch" for - * PianoXmlParseSearchArtistCb and XXX + * PianoXmlParseSearchArtistCb and PianoXmlParsePlaylistCb * @author PromyLOPh * @added 2008-06-12 */ @@ -399,7 +405,7 @@ void PianoXmlParseSearchCb (char *key, xmlNode *value, void *data) { } } -/* parse search result +/* parse search result; searchResult is nulled before use * @author PromyLOPh * @added 2008-06-12 * @param xml document @@ -428,7 +434,7 @@ void PianoXmlParseSearch (char *searchXml, xmlCleanupParser(); } -/* encode reserved chars +/* encode reserved xml chars * @author PromyLOPh * @added 2008-06-10 * @param encode this -- cgit v1.2.3