diff options
Diffstat (limited to 'libpiano/piano.h')
-rw-r--r-- | libpiano/piano.h | 9 |
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); |