summaryrefslogtreecommitdiffstats
path: root/apps/playlist.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2004-01-14 00:13:04 +0000
committerBjörn Stenberg <bjorn@haxx.se>2004-01-14 00:13:04 +0000
commita108ec2ebd237835a688ae5c82c90e07607219ae (patch)
tree17c0af92368ee76d16cfdc2162aadbb7f103d926 /apps/playlist.h
parent50b6358272eaf1f255bcb430766e6fc9e26810d3 (diff)
downloadrockbox-a108ec2ebd237835a688ae5c82c90e07607219ae.tar.gz
rockbox-a108ec2ebd237835a688ae5c82c90e07607219ae.tar.bz2
rockbox-a108ec2ebd237835a688ae5c82c90e07607219ae.zip
Added Benjamin Metzlers bookmarking feature (patch #669440)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4227 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.h')
-rw-r--r--apps/playlist.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/apps/playlist.h b/apps/playlist.h
index 82d67bf0bb..020d3332cb 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -39,11 +39,16 @@ struct playlist_info
char *buffer; /* buffer for in-ram playlists */
int buffer_size; /* size of buffer */
int buffer_end_pos; /* last position where buffer was written */
- short index; /* index of current playing track */
- short first_index; /* index of first song in playlist */
+ int index; /* index of current playing track */
+ int first_index; /* index of first song in playlist */
int amount; /* number of tracks in the index */
int last_insert_pos; /* last position we inserted a track */
- bool shuffle_flush; /* Does shuffle value need to be flushed? */
+ int seed; /* shuffle seed */
+ bool shuffle_modified; /* has playlist been shuffled with
+ inserted tracks? */
+ bool deleted; /* have any tracks been deleted? */
+ int num_inserted_tracks; /* number of tracks inserted */
+ bool shuffle_flush; /* does shuffle value need to be flushed? */
struct mutex control_mutex; /* mutex for control file access */
};
@@ -75,13 +80,16 @@ int playlist_start(int start_index, int offset);
bool playlist_check(int steps);
char *playlist_peek(int steps);
int playlist_next(int steps);
-int playlist_get_resume_info(short *resume_index);
+int playlist_get_resume_info(int *resume_index);
int playlist_get_display_index(void);
int playlist_get_first_index(void);
int playlist_amount(void);
char *playlist_name(char *buf, int buf_size);
int playlist_get_track_info(int index, struct playlist_track_info* info);
int playlist_save(char *filename);
+int playlist_get_seed(void);
+char *playlist_get_name(char *buf, int buf_size);
+bool playlist_modified(void);
enum {
PLAYLIST_PREPEND = -1,