diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-10 11:11:14 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-10 11:11:14 +0200 |
commit | 941d4f27ef5337c5be5553f93e41aed7745c71e1 (patch) | |
tree | 21ab08f45c8e2bf600b2447aa1b7cc93991765da /libpiano/piano.h | |
parent | c92cbed15b69d823637fb565fefeb6acc3ce178e (diff) | |
download | pianobar-941d4f27ef5337c5be5553f93e41aed7745c71e1.tar.gz pianobar-941d4f27ef5337c5be5553f93e41aed7745c71e1.tar.bz2 pianobar-941d4f27ef5337c5be5553f93e41aed7745c71e1.zip |
Return success/error in PianoRateTrack
Diffstat (limited to 'libpiano/piano.h')
-rw-r--r-- | libpiano/piano.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libpiano/piano.h b/libpiano/piano.h index ac64cd1..5048dc0 100644 --- a/libpiano/piano.h +++ b/libpiano/piano.h @@ -115,6 +115,10 @@ struct PianoHandle { typedef struct PianoHandle PianoHandle_t; +/* FIXME: more error types (http failed, e.g.) later */ +enum PianoReturn {PIANO_RET_OK, PIANO_RET_ERR}; +typedef enum PianoReturn PianoReturn_t; + enum PianoSongRating {PIANO_RATE_BAN, PIANO_RATE_LOVE}; typedef enum PianoSongRating PianoSongRating_t; @@ -126,7 +130,7 @@ void PianoConnect (PianoHandle_t *, char *, char *); void PianoGetStations (PianoHandle_t *ph); void PianoGetPlaylist (PianoHandle_t *ph, char *stationId); -void PianoRateTrack (PianoHandle_t *ph, PianoStation_t *station, +PianoReturn_t PianoRateTrack (PianoHandle_t *ph, PianoStation_t *station, PianoSong_t *song, PianoSongRating_t rating); #endif /* _PIANO_H */ |