diff options
author | Dave Hooper <dave@beermex.com> | 2009-10-28 22:27:38 +0000 |
---|---|---|
committer | Dave Hooper <dave@beermex.com> | 2009-10-28 22:27:38 +0000 |
commit | 494fd9673dc9d1417e357810fe64f36e627cdc05 (patch) | |
tree | 00b525cf2dda5013e8e91eb3df20e9a8ca6debd1 /apps/playlist.h | |
parent | 7b1d12e0671b6db76711387482faf528caca9b55 (diff) | |
download | rockbox-494fd9673dc9d1417e357810fe64f36e627cdc05.tar.gz rockbox-494fd9673dc9d1417e357810fe64f36e627cdc05.zip |
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
Diffstat (limited to 'apps/playlist.h')
-rw-r--r-- | apps/playlist.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 { | |||
53 | PLAYLIST_INSERT_LAST = -3, | 53 | PLAYLIST_INSERT_LAST = -3, |
54 | PLAYLIST_INSERT_FIRST = -4, | 54 | PLAYLIST_INSERT_FIRST = -4, |
55 | PLAYLIST_INSERT_SHUFFLED = -5, | 55 | PLAYLIST_INSERT_SHUFFLED = -5, |
56 | PLAYLIST_REPLACE = -6 | 56 | PLAYLIST_REPLACE = -6, |
57 | PLAYLIST_INSERT_LAST_SHUFFLED = -7 | ||
57 | }; | 58 | }; |
58 | 59 | ||
59 | enum { | 60 | enum { |
@@ -105,6 +106,8 @@ struct playlist_info | |||
105 | bool pending_control_sync; /* control file needs to be synced */ | 106 | bool pending_control_sync; /* control file needs to be synced */ |
106 | 107 | ||
107 | struct mutex control_mutex; /* mutex for control file access */ | 108 | struct mutex control_mutex; /* mutex for control file access */ |
109 | int last_shuffled_start; /* number of tracks when insert last | ||
110 | shuffled command start */ | ||
108 | }; | 111 | }; |
109 | 112 | ||
110 | struct playlist_track_info | 113 | struct playlist_track_info |
@@ -131,6 +134,7 @@ int playlist_get_resume_info(int *resume_index); | |||
131 | int playlist_update_resume_info(const struct mp3entry* id3); | 134 | int playlist_update_resume_info(const struct mp3entry* id3); |
132 | int playlist_get_display_index(void); | 135 | int playlist_get_display_index(void); |
133 | int playlist_amount(void); | 136 | int playlist_amount(void); |
137 | void playlist_set_last_shuffled_start(void); | ||
134 | 138 | ||
135 | /* Exported functions for all playlists. Pass NULL for playlist_info | 139 | /* Exported functions for all playlists. Pass NULL for playlist_info |
136 | structure to work with current playlist. */ | 140 | structure to work with current playlist. */ |