forked from len0rd/rockbox
Preparation for runtimedb hookup on archos: don't pass software playback system specific structures.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7345 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
363bc490ff
commit
a88d076ac4
3 changed files with 6 additions and 6 deletions
|
@ -314,8 +314,8 @@ void rundb_unbuffer_track(struct mp3entry *id, bool last_track) {
|
|||
}
|
||||
}
|
||||
|
||||
void rundb_track_change(struct track_info *ti) {
|
||||
ti->id3.playcount++;
|
||||
void rundb_track_change(struct mp3entry *id) {
|
||||
id->playcount++;
|
||||
}
|
||||
|
||||
void rundb_buffer_track(struct mp3entry *id, bool last_track) {
|
||||
|
|
|
@ -159,7 +159,7 @@ extern struct codec_api ci;
|
|||
static int new_track;
|
||||
|
||||
/* Callback function to call when current track has really changed. */
|
||||
void (*track_changed_callback)(struct track_info *ti);
|
||||
void (*track_changed_callback)(struct mp3entry *id3);
|
||||
void (*track_buffer_callback)(struct mp3entry *id3, bool last_track);
|
||||
void (*track_unbuffer_callback)(struct mp3entry *id3, bool last_track);
|
||||
|
||||
|
@ -520,7 +520,7 @@ void audio_set_track_unbuffer_event(void (*handler)(struct mp3entry *id3,
|
|||
track_unbuffer_callback = handler;
|
||||
}
|
||||
|
||||
void audio_set_track_changed_event(void (*handler)(struct track_info *ti))
|
||||
void audio_set_track_changed_event(void (*handler)(struct mp3entry *id3))
|
||||
{
|
||||
track_changed_callback = handler;
|
||||
}
|
||||
|
@ -1476,7 +1476,7 @@ void audio_thread(void)
|
|||
|
||||
case AUDIO_TRACK_CHANGED:
|
||||
if (track_changed_callback)
|
||||
track_changed_callback(cur_ti);
|
||||
track_changed_callback(&cur_ti->id3);
|
||||
playlist_update_resume_info(audio_current_track());
|
||||
break ;
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ struct track_info {
|
|||
};
|
||||
|
||||
/* Functions */
|
||||
void audio_set_track_changed_event(void (*handler)(struct track_info *ti));
|
||||
void audio_set_track_changed_event(void (*handler)(struct mp3entry *id3));
|
||||
void audio_set_track_buffer_event(void (*handler)(struct mp3entry *id3,
|
||||
bool last_track));
|
||||
void audio_set_track_unbuffer_event(void (*handler)(struct mp3entry *id3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue