summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",