From 97e2e779b196621117bfb73c4be61ae9a0b2be30 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 8 May 2010 15:35:35 +0200 Subject: piano: New error QUICKMIX_NOT_PLAYABLE Trigger this error: Delete all stations (you can't delete the quickmix) and select your quickmix station. --- libpiano/src/piano.c | 4 ++++ libpiano/src/piano.h | 1 + libpiano/src/xml.c | 2 ++ 3 files changed, 7 insertions(+) (limited to 'libpiano') 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", -- cgit v1.2.3