From d758e5a8313c7a00fcde2e6eccf27f1b6d380c9b Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 10 Jan 2009 17:17:29 +0100 Subject: piano: Documentation... --- libpiano/src/crypt.c | 2 +- libpiano/src/main.c | 5 +++++ libpiano/src/xml.c | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'libpiano') diff --git a/libpiano/src/crypt.c b/libpiano/src/crypt.c index 475a1ce..8b2cc0e 100644 --- a/libpiano/src/crypt.c +++ b/libpiano/src/crypt.c @@ -104,7 +104,7 @@ char *PianoIntsToString (const unsigned int *arrInts, size_t arrIntsN) { for (i = 0; i < arrIntsN; i++) { /* map string to 4-byte int */ tmp = (unsigned int *) &strDecoded[i*4]; - /* FIXME: big endian does not need to byteswap */ + /* FIXME: big endian does not need to byteswap? */ *tmp = byteswap32 (arrInts[i]); } return strDecoded; diff --git a/libpiano/src/main.c b/libpiano/src/main.c index 698ce6e..42c51bf 100644 --- a/libpiano/src/main.c +++ b/libpiano/src/main.c @@ -712,6 +712,11 @@ PianoReturn_t PianoSetQuickmix (PianoHandle_t *ph) { return ret; } +/* get station from list by id + * @param search here + * @param search for this + * @return the first station structure matching the given id + */ PianoStation_t *PianoFindStationById (PianoStation_t *stations, const char *searchStation) { while (stations != NULL) { diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c index 9db2644..66e937e 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -87,7 +87,8 @@ void PianoXmlIsFaultCb (const char *key, const xmlNode *value, void *data) { } } } else if (strcmp ("faultCode", key) == 0) { - /* some error can only be identified by looking at their id */ + /* some errors can only be identified by looking at their id */ + /* detect pandora's ip restriction */ if (strcmp ("12", valueStr) == 0) { *ret = PIANO_RET_IP_REJECTED; } -- cgit v1.2.3