diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-08-17 16:16:41 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-08-17 16:16:41 +0200 |
commit | 8beb2162be16ac4311ffdd397f0337e5ad0934d4 (patch) | |
tree | 873143969babe18c3398aeb0872cd8170880047f /libpiano/src/xml.c | |
parent | f60ead4306546d28eeb7fc07e82e9b61707c4a89 (diff) | |
download | pianobar-8beb2162be16ac4311ffdd397f0337e5ad0934d4.tar.gz pianobar-8beb2162be16ac4311ffdd397f0337e5ad0934d4.tar.bz2 pianobar-8beb2162be16ac4311ffdd397f0337e5ad0934d4.zip |
piano: New return value _NOT_AUTHORIZED
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 4d945e7..25cd8f8 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -62,6 +62,9 @@ void PianoXmlIsFaultCb (const char *key, const xmlNode *value, void *data) { } else if (strcmp ("AUTH_INVALID_USERNAME_PASSWORD", matchStr) == 0) { *ret = PIANO_RET_AUTH_USER_PASSWORD_INVALID; + } else if (strcmp ("LISTENER_NOT_AUTHORIZED", + matchStr) == 0) { + *ret = PIANO_RET_NOT_AUTHORIZED; } else { *ret = PIANO_RET_ERR; printf (PACKAGE ": Unknown error %s in %s\n", |