summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-03-21 13:25:27 +0100
committerLars-Dominik Braun <lars@6xq.net>2011-03-21 14:54:34 +0100
commit4d4ae0a8e548c6d87126e95402669bd55ba537ab (patch)
treeb2ae94abf1263a200364515d60bf1335a60a049f /src
parent89b04e6d798bb30b4d6a36c46bba3d624be4b559 (diff)
downloadpianobar-windows-4d4ae0a8e548c6d87126e95402669bd55ba537ab.tar.gz
pianobar-windows-4d4ae0a8e548c6d87126e95402669bd55ba537ab.tar.bz2
pianobar-windows-4d4ae0a8e548c6d87126e95402669bd55ba537ab.zip
piano: New error REMOVING_TOO_MANY_SEEDS
Diffstat (limited to 'src')
-rw-r--r--src/libpiano/piano.c4
-rw-r--r--src/libpiano/piano.h1
-rw-r--r--src/libpiano/xml.c2
3 files changed, 7 insertions, 0 deletions
diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c
index 49cbf27..e85c388 100644
--- a/src/libpiano/piano.c
+++ b/src/libpiano/piano.c
@@ -1215,6 +1215,10 @@ const char *PianoErrorToStr (PianoReturn_t ret) {
return "Quickmix not playable.";
break;
+ case PIANO_RET_REMOVING_TOO_MANY_SEEDS:
+ return "Last seed cannot be removed.";
+ break;
+
default:
return "No error message available.";
break;
diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h
index 9ca7827..6ef8f1e 100644
--- a/src/libpiano/piano.h
+++ b/src/libpiano/piano.h
@@ -248,6 +248,7 @@ typedef enum {
PIANO_RET_OUT_OF_SYNC = 13,
PIANO_RET_PLAYLIST_END = 14,
PIANO_RET_QUICKMIX_NOT_PLAYABLE = 15,
+ PIANO_RET_REMOVING_TOO_MANY_SEEDS = 16,
} PianoReturn_t;
void PianoInit (PianoHandle_t *);
diff --git a/src/libpiano/xml.c b/src/libpiano/xml.c
index 19871c1..cae9328 100644
--- a/src/libpiano/xml.c
+++ b/src/libpiano/xml.c
@@ -88,6 +88,8 @@ static void PianoXmlIsFaultCb (const char *key, const ezxml_t value,
*ret = PIANO_RET_PLAYLIST_END;
} else if (strcmp ("QUICKMIX_NOT_PLAYABLE", matchStart) == 0) {
*ret = PIANO_RET_QUICKMIX_NOT_PLAYABLE;
+ } else if (strcmp ("REMOVING_TOO_MANY_SEEDS", matchStart) == 0) {
+ *ret = PIANO_RET_REMOVING_TOO_MANY_SEEDS;
} else {
*ret = PIANO_RET_ERR;
printf (PACKAGE ": Unknown error %s in %s\n",