diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-01-20 12:09:34 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-01-20 12:10:40 +0100 |
commit | c2ab253a32ae7652e7ae59ea43b68a53e0ee68e4 (patch) | |
tree | 6313c5c2547abf9a7ae619974f2b38dc359c48bc /src/libpiano | |
parent | d44f61b583a112e23a9af405968b11514979fedf (diff) | |
download | pianobar-windows-c2ab253a32ae7652e7ae59ea43b68a53e0ee68e4.tar.gz pianobar-windows-c2ab253a32ae7652e7ae59ea43b68a53e0ee68e4.tar.bz2 pianobar-windows-c2ab253a32ae7652e7ae59ea43b68a53e0ee68e4.zip |
piano: DAILY_SKIP_LIMIT_REACHED added
See #214
Diffstat (limited to 'src/libpiano')
-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", |