summaryrefslogtreecommitdiff
path: root/src/libpiano/piano.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-03-21 12:46:21 +0100
committerLars-Dominik Braun <lars@6xq.net>2011-03-21 12:46:21 +0100
commitbbd317d85069dee9c9cffff609d1d1fd086cbcb7 (patch)
tree776c92f38b866a09c54ae7ccf58ec0748c7a1bf9 /src/libpiano/piano.h
parentb6a0245796794228614c092c63b51bf50970fa08 (diff)
downloadpianobar-windows-bbd317d85069dee9c9cffff609d1d1fd086cbcb7.tar.gz
pianobar-windows-bbd317d85069dee9c9cffff609d1d1fd086cbcb7.tar.bz2
pianobar-windows-bbd317d85069dee9c9cffff609d1d1fd086cbcb7.zip
piano: Add getStation support
Response contains artist/song seeds and feedback data.
Diffstat (limited to 'src/libpiano/piano.h')
-rw-r--r--src/libpiano/piano.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libpiano/piano.h b/src/libpiano/piano.h
index 509be9e..c91b7e9 100644
--- a/src/libpiano/piano.h
+++ b/src/libpiano/piano.h
@@ -71,6 +71,8 @@ typedef struct PianoSong {
char *coverArt;
char *musicId;
char *title;
+ char *seedId;
+ char *feedbackId;
float fileGain;
PianoSongRating_t rating;
PianoAudioFormat_t audioFormat;
@@ -83,6 +85,7 @@ typedef struct PianoSong {
typedef struct PianoArtist {
char *name;
char *musicId;
+ char *seedId;
int score;
struct PianoArtist *next;
} PianoArtist_t;
@@ -113,6 +116,12 @@ typedef struct PianoSearchResult {
PianoArtist_t *artists;
} PianoSearchResult_t;
+typedef struct {
+ PianoSong_t *songSeeds;
+ PianoArtist_t *artistSeeds;
+ PianoSong_t *feedback;
+} PianoStationInfo_t;
+
typedef enum {
/* 0 is reserved: memset (x, 0, sizeof (x)) */
PIANO_REQUEST_LOGIN = 1,
@@ -134,6 +143,7 @@ typedef enum {
PIANO_REQUEST_GET_SEED_SUGGESTIONS = 17,
PIANO_REQUEST_BOOKMARK_SONG = 18,
PIANO_REQUEST_BOOKMARK_ARTIST = 19,
+ PIANO_REQUEST_GET_STATION_INFO = 20,
} PianoRequestType_t;
typedef struct PianoRequest {
@@ -209,6 +219,11 @@ typedef struct {
PianoSearchResult_t searchResult;
} PianoRequestDataGetSeedSuggestions_t;
+typedef struct {
+ PianoStation_t *station;
+ PianoStationInfo_t info;
+} PianoRequestDataGetStationInfo_t;
+
typedef enum {
PIANO_RET_ERR = 0,
PIANO_RET_OK = 1,
@@ -232,6 +247,7 @@ void PianoInit (PianoHandle_t *);
void PianoDestroy (PianoHandle_t *);
void PianoDestroyPlaylist (PianoSong_t *);
void PianoDestroySearchResult (PianoSearchResult_t *);
+void PianoDestroyStationInfo (PianoStationInfo_t *);
PianoReturn_t PianoRequest (PianoHandle_t *, PianoRequest_t *,
PianoRequestType_t);