diff options
Diffstat (limited to 'apps/playlist.h')
-rw-r--r-- | apps/playlist.h | 16 |
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); | |||
75 | bool playlist_check(int steps); | 80 | bool playlist_check(int steps); |
76 | char *playlist_peek(int steps); | 81 | char *playlist_peek(int steps); |
77 | int playlist_next(int steps); | 82 | int playlist_next(int steps); |
78 | int playlist_get_resume_info(short *resume_index); | 83 | int playlist_get_resume_info(int *resume_index); |
79 | int playlist_get_display_index(void); | 84 | int playlist_get_display_index(void); |
80 | int playlist_get_first_index(void); | 85 | int playlist_get_first_index(void); |
81 | int playlist_amount(void); | 86 | int playlist_amount(void); |
82 | char *playlist_name(char *buf, int buf_size); | 87 | char *playlist_name(char *buf, int buf_size); |
83 | int playlist_get_track_info(int index, struct playlist_track_info* info); | 88 | int playlist_get_track_info(int index, struct playlist_track_info* info); |
84 | int playlist_save(char *filename); | 89 | int playlist_save(char *filename); |
90 | int playlist_get_seed(void); | ||
91 | char *playlist_get_name(char *buf, int buf_size); | ||
92 | bool playlist_modified(void); | ||
85 | 93 | ||
86 | enum { | 94 | enum { |
87 | PLAYLIST_PREPEND = -1, | 95 | PLAYLIST_PREPEND = -1, |