diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-05-08 15:35:35 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-05-08 15:35:35 +0200 |
commit | 97e2e779b196621117bfb73c4be61ae9a0b2be30 (patch) | |
tree | dd56f538c13b0a963b1b6e86892efadce4b0ba54 /libpiano | |
parent | 3072c5acdbb50f7571e5a72c8acb9146042968fb (diff) | |
download | pianobar-97e2e779b196621117bfb73c4be61ae9a0b2be30.tar.gz pianobar-97e2e779b196621117bfb73c4be61ae9a0b2be30.tar.bz2 pianobar-97e2e779b196621117bfb73c4be61ae9a0b2be30.zip |
piano: New error QUICKMIX_NOT_PLAYABLE
Trigger this error: Delete all stations (you can't delete the quickmix)
and select your quickmix station.
Diffstat (limited to 'libpiano')
-rw-r--r-- | libpiano/src/piano.c | 4 | ||||
-rw-r--r-- | libpiano/src/piano.h | 1 | ||||
-rw-r--r-- | libpiano/src/xml.c | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/libpiano/src/piano.c b/libpiano/src/piano.c index d9ccb67..6e687b4 100644 --- a/libpiano/src/piano.c +++ b/libpiano/src/piano.c @@ -984,6 +984,10 @@ const char *PianoErrorToStr (PianoReturn_t ret) { return "Playlist end."; break; + case PIANO_RET_QUICKMIX_NOT_PLAYABLE: + return "Quickmix not playable."; + break; + default: return "No error message available."; break; diff --git a/libpiano/src/piano.h b/libpiano/src/piano.h index 4feccd9..fb97949 100644 --- a/libpiano/src/piano.h +++ b/libpiano/src/piano.h @@ -217,6 +217,7 @@ typedef enum { PIANO_RET_OUT_OF_MEMORY = 12, PIANO_RET_OUT_OF_SYNC = 13, PIANO_RET_PLAYLIST_END = 14, + PIANO_RET_QUICKMIX_NOT_PLAYABLE = 15, } PianoReturn_t; void PianoInit (PianoHandle_t *); diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c index 53eeca5..33fe557 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -85,6 +85,8 @@ static void PianoXmlIsFaultCb (const char *key, const ezxml_t value, *ret = PIANO_RET_OUT_OF_SYNC; } else if (strcmp ("PLAYLIST_END", matchStart) == 0) { *ret = PIANO_RET_PLAYLIST_END; + } else if (strcmp ("QUICKMIX_NOT_PLAYABLE", matchStart) == 0) { + *ret = PIANO_RET_QUICKMIX_NOT_PLAYABLE; } else { *ret = PIANO_RET_ERR; printf (PACKAGE ": Unknown error %s in %s\n", |