summaryrefslogtreecommitdiff
path: root/libpiano/src/piano.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-08-18 09:53:30 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-08-18 09:53:30 +0200
commit354ac4e9edd7db050e2b71a34a01c5b8b3100607 (patch)
treebf099ac141357e663bf6dd92f2aba205c92ad54f /libpiano/src/piano.h
parentf43699482a0a5921cb4cdc4bf110242278209ada (diff)
downloadpianobar-354ac4e9edd7db050e2b71a34a01c5b8b3100607.tar.gz
pianobar-354ac4e9edd7db050e2b71a34a01c5b8b3100607.tar.bz2
pianobar-354ac4e9edd7db050e2b71a34a01c5b8b3100607.zip
piano: New error code OUT_OF_SYNC
Error code indicates that the system's time is "out of sync". Maybe the "sync" response timestamp should be checked *before* errors like this happen... Thanks to Jason for pointing this out.
Diffstat (limited to 'libpiano/src/piano.h')
-rw-r--r--libpiano/src/piano.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpiano/src/piano.h b/libpiano/src/piano.h
index 7d7554a..3bb9108 100644
--- a/libpiano/src/piano.h
+++ b/libpiano/src/piano.h
@@ -104,7 +104,8 @@ typedef enum {PIANO_RET_OK, PIANO_RET_ERR, PIANO_RET_XML_INVALID,
PIANO_RET_NET_ERROR, PIANO_RET_NOT_AUTHORIZED,
PIANO_RET_PROTOCOL_INCOMPATIBLE, PIANO_RET_READONLY_MODE,
PIANO_RET_STATION_CODE_INVALID, PIANO_RET_IP_REJECTED,
- PIANO_RET_STATION_NONEXISTENT, PIANO_RET_OUT_OF_MEMORY} PianoReturn_t;
+ PIANO_RET_STATION_NONEXISTENT, PIANO_RET_OUT_OF_MEMORY,
+ PIANO_RET_OUT_OF_SYNC} PianoReturn_t;
void PianoInit (PianoHandle_t *);
void PianoDestroy (PianoHandle_t *);