diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2013-07-02 17:13:47 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2013-07-02 17:13:47 +0200 |
commit | f6df7d7e510f2d8879ec54dce32fee2b691dc32d (patch) | |
tree | 8a68d1586c3290093e9a6002ac8f071dbaf749e3 /src/libpiano/piano.h | |
parent | a1e73fc8d72a5253cae29c9bab5b260ad297c5e2 (diff) | |
download | pianobar-f6df7d7e510f2d8879ec54dce32fee2b691dc32d.tar.gz pianobar-f6df7d7e510f2d8879ec54dce32fee2b691dc32d.tar.bz2 pianobar-f6df7d7e510f2d8879ec54dce32fee2b691dc32d.zip |
piano: Check for libgcrypt errors
Fixes mysterious segfaults from issue #369 and #293.
Diffstat (limited to 'src/libpiano/piano.h')
-rw-r--r-- | src/libpiano/piano.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h index dc05250..04f33b5 100644 --- a/src/libpiano/piano.h +++ b/src/libpiano/piano.h @@ -250,6 +250,7 @@ typedef enum { PIANO_RET_OUT_OF_MEMORY = 4, PIANO_RET_INVALID_LOGIN = 5, PIANO_RET_QUALITY_UNAVAILABLE = 6, + PIANO_RET_GCRY_ERR = 7, /* pandora error codes */ PIANO_RET_P_INTERNAL = PIANO_RET_OFFSET+0, @@ -297,7 +298,7 @@ typedef enum { PIANO_RET_P_RATE_LIMIT = PIANO_RET_OFFSET+1039, } PianoReturn_t; -void PianoInit (PianoHandle_t *, const char *, +PianoReturn_t PianoInit (PianoHandle_t *, const char *, const char *, const char *, const char *, const char *); void PianoDestroy (PianoHandle_t *); |