summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpiano/src/piano.c4
-rw-r--r--libpiano/src/piano.h1
-rw-r--r--libpiano/src/xml.c2
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",