diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-08-20 10:47:31 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-08-20 10:47:31 +0200 |
commit | 858ecd45441218b20c2592a0f27ff247e9425bba (patch) | |
tree | 4fa578585b017af5b0a816a25df62711c74c9a81 /libpiano/src/xml.c | |
parent | ea106accd3e4557bb3553838f11e051858de236f (diff) | |
download | pianobar-858ecd45441218b20c2592a0f27ff247e9425bba.tar.gz pianobar-858ecd45441218b20c2592a0f27ff247e9425bba.tar.bz2 pianobar-858ecd45441218b20c2592a0f27ff247e9425bba.zip |
piano: New error INCOMPATIBLE_VERSION
Raised when pandora bumps their protocol url/version
Diffstat (limited to 'libpiano/src/xml.c')
-rw-r--r-- | libpiano/src/xml.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c index 25cd8f8..f43d4a8 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -65,6 +65,9 @@ void PianoXmlIsFaultCb (const char *key, const xmlNode *value, void *data) { } else if (strcmp ("LISTENER_NOT_AUTHORIZED", matchStr) == 0) { *ret = PIANO_RET_NOT_AUTHORIZED; + } else if (strcmp ("INCOMPATIBLE_VERSION", + matchStr) == 0) { + *ret = PIANO_RET_PROTOCOL_INCOMPATIBLE; } else { *ret = PIANO_RET_ERR; printf (PACKAGE ": Unknown error %s in %s\n", |