From 4d4ae0a8e548c6d87126e95402669bd55ba537ab Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 21 Mar 2011 13:25:27 +0100 Subject: piano: New error REMOVING_TOO_MANY_SEEDS --- src/libpiano/piano.c | 4 ++++ src/libpiano/piano.h | 1 + src/libpiano/xml.c | 2 ++ 3 files changed, 7 insertions(+) (limited to 'src') 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", -- cgit v1.2.3