From 494fd9673dc9d1417e357810fe64f36e627cdc05 Mon Sep 17 00:00:00 2001 From: Dave Hooper Date: Wed, 28 Oct 2009 22:27:38 +0000 Subject: Committing FS#10717 by Tomasz Kowalyczyk: add PLAYLIST_INSERT_LAST_SHUFFLED (appends the inserted folder into shuffled order to end of playlist) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23385 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/playlist.h') diff --git a/apps/playlist.h b/apps/playlist.h index 4f7b9cff3a..fa234f6c12 100644 --- a/apps/playlist.h +++ b/apps/playlist.h @@ -53,7 +53,8 @@ enum { PLAYLIST_INSERT_LAST = -3, PLAYLIST_INSERT_FIRST = -4, PLAYLIST_INSERT_SHUFFLED = -5, - PLAYLIST_REPLACE = -6 + PLAYLIST_REPLACE = -6, + PLAYLIST_INSERT_LAST_SHUFFLED = -7 }; enum { @@ -105,6 +106,8 @@ struct playlist_info bool pending_control_sync; /* control file needs to be synced */ struct mutex control_mutex; /* mutex for control file access */ + int last_shuffled_start; /* number of tracks when insert last + shuffled command start */ }; struct playlist_track_info @@ -131,6 +134,7 @@ int playlist_get_resume_info(int *resume_index); int playlist_update_resume_info(const struct mp3entry* id3); int playlist_get_display_index(void); int playlist_amount(void); +void playlist_set_last_shuffled_start(void); /* Exported functions for all playlists. Pass NULL for playlist_info structure to work with current playlist. */ -- cgit v1.2.3