summaryrefslogtreecommitdiff
path: root/libpiano/src/main.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-16 21:12:54 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-16 21:12:54 +0200
commit3116926fefa426e0663f4caee06819163d8a6b82 (patch)
tree0ab24deae0bea04caa3f52c9af5cfa2736cb551f /libpiano/src/main.c
parent87ed2514e36a2411fff7951856c61d0496d01ecf (diff)
downloadpianobar-3116926fefa426e0663f4caee06819163d8a6b82.tar.gz
pianobar-3116926fefa426e0663f4caee06819163d8a6b82.tar.bz2
pianobar-3116926fefa426e0663f4caee06819163d8a6b82.zip
Support rating of songs played by QuickMix
Attention! This breaks libpiano's api compatibility because of a changed argument count in PianoRateTrack
Diffstat (limited to 'libpiano/src/main.c')
-rw-r--r--libpiano/src/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libpiano/src/main.c b/libpiano/src/main.c
index 5ac5964..4cd3aa3 100644
--- a/libpiano/src/main.c
+++ b/libpiano/src/main.c
@@ -297,15 +297,14 @@ PianoReturn_t PianoGetPlaylist (PianoHandle_t *ph, char *stationId) {
* not allowed)
* @public yes
* @param piano handle
- * @param track will be added to this stations loved tracks list
* @param rate this track
* @param your rating
*/
-PianoReturn_t PianoRateTrack (PianoHandle_t *ph, PianoStation_t *station,
- PianoSong_t *song, PianoSongRating_t rating) {
+PianoReturn_t PianoRateTrack (PianoHandle_t *ph, PianoSong_t *song,
+ PianoSongRating_t rating) {
PianoReturn_t ret;
- ret = PianoAddFeedback (ph, station->id, song->musicId,
+ ret = PianoAddFeedback (ph, song->stationId, song->musicId,
song->matchingSeed, song->userSeed, song->focusTraitId, rating);
if (ret == PIANO_RET_OK) {