diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libpiano/piano.c | 4 | ||||
-rw-r--r-- | src/libpiano/piano.h | 1 | ||||
-rw-r--r-- | src/libpiano/xml.c | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c index 2c2a8d8..342e4ec 100644 --- a/src/libpiano/piano.c +++ b/src/libpiano/piano.c @@ -1233,6 +1233,10 @@ const char *PianoErrorToStr (PianoReturn_t ret) { return "Excessive activity."; break; + case PIANO_RET_DAILY_SKIP_LIMIT_REACHED: + return "Daily skip limit reached."; + break; + default: return "No error message available."; break; diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h index aed8b75..d582844 100644 --- a/src/libpiano/piano.h +++ b/src/libpiano/piano.h @@ -254,6 +254,7 @@ typedef enum { PIANO_RET_QUICKMIX_NOT_PLAYABLE = 15, PIANO_RET_REMOVING_TOO_MANY_SEEDS = 16, PIANO_RET_EXCESSIVE_ACTIVITY = 17, + PIANO_RET_DAILY_SKIP_LIMIT_REACHED = 18, } PianoReturn_t; void PianoInit (PianoHandle_t *); diff --git a/src/libpiano/xml.c b/src/libpiano/xml.c index a327e82..d194963 100644 --- a/src/libpiano/xml.c +++ b/src/libpiano/xml.c @@ -96,6 +96,8 @@ static void PianoXmlIsFaultCb (const char *key, const ezxml_t value, *ret = PIANO_RET_REMOVING_TOO_MANY_SEEDS; } else if (strcmp ("EXCESSIVE_ACTIVITY", matchStart) == 0) { *ret = PIANO_RET_EXCESSIVE_ACTIVITY; + } else if (strcmp ("DAILY_SKIP_LIMIT_REACHED", matchStart) == 0) { + *ret = PIANO_RET_DAILY_SKIP_LIMIT_REACHED; } else { *ret = PIANO_RET_ERR; printf (PACKAGE ": Unknown error %s in %s\n", |