summaryrefslogtreecommitdiff
path: root/libpiano/piano.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-10 12:09:08 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-10 12:09:08 +0200
commitf9bc1869e6fcba8f681d38dffa51661a3d87b005 (patch)
tree36fc7325f1b4fa603ee7f6c03c217ab30f46c943 /libpiano/piano.h
parent941d4f27ef5337c5be5553f93e41aed7745c71e1 (diff)
downloadpianobar-windows-f9bc1869e6fcba8f681d38dffa51661a3d87b005.tar.gz
pianobar-windows-f9bc1869e6fcba8f681d38dffa51661a3d87b005.tar.bz2
pianobar-windows-f9bc1869e6fcba8f681d38dffa51661a3d87b005.zip
Get rating from playlist
Diffstat (limited to 'libpiano/piano.h')
-rw-r--r--libpiano/piano.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/libpiano/piano.h b/libpiano/piano.h
index 5048dc0..b5d14ba 100644
--- a/libpiano/piano.h
+++ b/libpiano/piano.h
@@ -65,9 +65,11 @@ struct PianoStation {
char *id;
struct PianoStation *next;
};
-
typedef struct PianoStation PianoStation_t;
+enum PianoSongRating {PIANO_RATE_BAN, PIANO_RATE_LOVE, PIANO_RATE_NONE};
+typedef enum PianoSongRating PianoSongRating_t;
+
struct PianoSong {
char *artist;
char **genre;
@@ -82,7 +84,7 @@ struct PianoSong {
char *webId;
/* disabled: musicComUrl */
/* disabled: fanExplorerUrl */
- int rating;
+ PianoSongRating_t rating;
/* disabled: artistExplorerUrl */
/* disabled: artRadio */
char *audioEncoding; /* FIXME: should be enum: mp3 or aacplus */
@@ -119,9 +121,6 @@ typedef struct PianoHandle PianoHandle_t;
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;
-
void PianoInit (PianoHandle_t *);
void PianoDestroy (PianoHandle_t *);
void PianoDestroyPlaylist (PianoHandle_t *ph);