summaryrefslogtreecommitdiff
path: root/apps/playlist.h
diff options
context:
space:
mode:
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
39 char *buffer; /* buffer for in-ram playlists */ 39 char *buffer; /* buffer for in-ram playlists */
40 int buffer_size; /* size of buffer */ 40 int buffer_size; /* size of buffer */
41 int buffer_end_pos; /* last position where buffer was written */ 41 int buffer_end_pos; /* last position where buffer was written */
42 short index; /* index of current playing track */ 42 int index; /* index of current playing track */
43 short first_index; /* index of first song in playlist */ 43 int first_index; /* index of first song in playlist */
44 int amount; /* number of tracks in the index */ 44 int amount; /* number of tracks in the index */
45 int last_insert_pos; /* last position we inserted a track */ 45 int last_insert_pos; /* last position we inserted a track */
46 bool shuffle_flush; /* Does shuffle value need to be flushed? */ 46 int seed; /* shuffle seed */
47 bool shuffle_modified; /* has playlist been shuffled with
48 inserted tracks? */
49 bool deleted; /* have any tracks been deleted? */
50 int num_inserted_tracks; /* number of tracks inserted */
51 bool shuffle_flush; /* does shuffle value need to be flushed? */
47 struct mutex control_mutex; /* mutex for control file access */ 52 struct mutex control_mutex; /* mutex for control file access */
48}; 53};
49 54
@@ -75,13 +80,16 @@ int playlist_start(int start_index, int offset);
75bool playlist_check(int steps); 80bool playlist_check(int steps);
76char *playlist_peek(int steps); 81char *playlist_peek(int steps);
77int playlist_next(int steps); 82int playlist_next(int steps);
78int playlist_get_resume_info(short *resume_index); 83int playlist_get_resume_info(int *resume_index);
79int playlist_get_display_index(void); 84int playlist_get_display_index(void);
80int playlist_get_first_index(void); 85int playlist_get_first_index(void);
81int playlist_amount(void); 86int playlist_amount(void);
82char *playlist_name(char *buf, int buf_size); 87char *playlist_name(char *buf, int buf_size);
83int playlist_get_track_info(int index, struct playlist_track_info* info); 88int playlist_get_track_info(int index, struct playlist_track_info* info);
84int playlist_save(char *filename); 89int playlist_save(char *filename);
90int playlist_get_seed(void);
91char *playlist_get_name(char *buf, int buf_size);
92bool playlist_modified(void);
85 93
86enum { 94enum {
87 PLAYLIST_PREPEND = -1, 95 PLAYLIST_PREPEND = -1,