diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-01-10 17:17:29 +0100 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-01-10 17:17:29 +0100 |
commit | d758e5a8313c7a00fcde2e6eccf27f1b6d380c9b (patch) | |
tree | 988a756c0699ec710b1d9094ff69fb8bf2d3a09c /libpiano | |
parent | 14691417b05401957a72ec0ed35b9eed3ddd8e87 (diff) | |
download | pianobar-windows-d758e5a8313c7a00fcde2e6eccf27f1b6d380c9b.tar.gz pianobar-windows-d758e5a8313c7a00fcde2e6eccf27f1b6d380c9b.tar.bz2 pianobar-windows-d758e5a8313c7a00fcde2e6eccf27f1b6d380c9b.zip |
piano: Documentation...
Diffstat (limited to 'libpiano')
-rw-r--r-- | libpiano/src/crypt.c | 2 | ||||
-rw-r--r-- | libpiano/src/main.c | 5 | ||||
-rw-r--r-- | libpiano/src/xml.c | 3 |
3 files changed, 8 insertions, 2 deletions
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; } |