summaryrefslogtreecommitdiff
path: root/libpiano/src/piano.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-17 15:53:01 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-17 15:53:01 +0200
commit7c96aa41979b1c1b0b4c582c8ac31b7ff779b737 (patch)
tree125ea492c67f2bbf0d3e2b81e935de2c2376dc5d /libpiano/src/piano.h
parent6b0824285abab829cf97de770c9051a60255106e (diff)
downloadpianobar-7c96aa41979b1c1b0b4c582c8ac31b7ff779b737.tar.gz
pianobar-7c96aa41979b1c1b0b4c582c8ac31b7ff779b737.tar.bz2
pianobar-7c96aa41979b1c1b0b4c582c8ac31b7ff779b737.zip
piano: Initial global genre stations support
Pandora provides a xml list of genre stations. Read this list and insert its data into our PianoHandle tree if requested.
Diffstat (limited to 'libpiano/src/piano.h')
-rw-r--r--libpiano/src/piano.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/libpiano/src/piano.h b/libpiano/src/piano.h
index 3d909f8..07b9791 100644
--- a/libpiano/src/piano.h
+++ b/libpiano/src/piano.h
@@ -121,6 +121,15 @@ struct PianoArtist {
typedef struct PianoArtist PianoArtist_t;
+
+struct PianoGenreCategory {
+ char *name;
+ PianoStation_t *stations;
+ struct PianoGenreCategory *next;
+};
+
+typedef struct PianoGenreCategory PianoGenreCategory_t;
+
struct PianoHandle {
CURL *curlHandle;
char routeId[9];
@@ -128,6 +137,7 @@ struct PianoHandle {
/* linked lists */
PianoStation_t *stations;
PianoSong_t *playlist;
+ PianoGenreCategory_t *genreStations;
};
typedef struct PianoHandle PianoHandle_t;
@@ -149,8 +159,6 @@ void PianoInit (PianoHandle_t *);
void PianoDestroy (PianoHandle_t *);
void PianoDestroyPlaylist (PianoHandle_t *ph);
void PianoDestroySearchResult (PianoSearchResult_t *searchResult);
-void PianoDestroyStation (PianoStation_t *station);
-void PianoDestroyStations (PianoHandle_t *ph);
PianoReturn_t PianoConnect (PianoHandle_t *ph, char *user, char *password,
char secureLogin);
@@ -174,5 +182,6 @@ PianoReturn_t PianoSongTired (PianoHandle_t *ph, PianoSong_t *song);
PianoReturn_t PianoSetQuickmix (PianoHandle_t *ph);
PianoStation_t *PianoFindStationById (PianoStation_t *stations,
char *searchStation);
+PianoReturn_t PianoGetGenreStations (PianoHandle_t *ph);
#endif /* _PIANO_H */