diff options
Diffstat (limited to 'apps/playlist.h')
-rw-r--r-- | apps/playlist.h | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/apps/playlist.h b/apps/playlist.h index 2eca7355e4..0ecc7ccf77 100644 --- a/apps/playlist.h +++ b/apps/playlist.h | |||
@@ -74,22 +74,16 @@ struct playlist_control_cache { | |||
74 | struct playlist_info | 74 | struct playlist_info |
75 | { | 75 | { |
76 | bool current; /* current playing playlist */ | 76 | bool current; /* current playing playlist */ |
77 | char filename[MAX_PATH]; /* path name of m3u playlist on disk */ | ||
78 | char control_filename[MAX_PATH]; /* full path of control file */ | ||
79 | bool utf8; /* playlist is in .m3u8 format */ | 77 | bool utf8; /* playlist is in .m3u8 format */ |
78 | bool control_created; /* has control file been created? */ | ||
79 | bool in_ram; /* playlist stored in ram (dirplay) */ | ||
80 | int fd; /* descriptor of the open playlist file */ | 80 | int fd; /* descriptor of the open playlist file */ |
81 | int control_fd; /* descriptor of the open control file */ | 81 | int control_fd; /* descriptor of the open control file */ |
82 | bool control_created; /* has control file been created? */ | ||
83 | int dirlen; /* Length of the path to the playlist file */ | ||
84 | volatile unsigned long *indices; /* array of indices */ | ||
85 | #ifdef HAVE_DIRCACHE | ||
86 | struct dircache_fileref *dcfrefs; /* Dircache entry shortcuts */ | ||
87 | #endif | ||
88 | int max_playlist_size; /* Max number of files in playlist. Mirror of | 82 | int max_playlist_size; /* Max number of files in playlist. Mirror of |
89 | global_settings.max_files_in_playlist */ | 83 | global_settings.max_files_in_playlist */ |
90 | bool in_ram; /* playlist stored in ram (dirplay) */ | 84 | int num_inserted_tracks; /* number of tracks inserted */ |
85 | volatile unsigned long *indices; /* array of indices */ | ||
91 | int buffer_handle; /* handle to the below buffer (-1 if non-buflib) */ | 86 | int buffer_handle; /* handle to the below buffer (-1 if non-buflib) */ |
92 | |||
93 | volatile char *buffer;/* buffer for in-ram playlists */ | 87 | volatile char *buffer;/* buffer for in-ram playlists */ |
94 | int buffer_size; /* size of buffer */ | 88 | int buffer_size; /* size of buffer */ |
95 | int buffer_end_pos; /* last position where buffer was written */ | 89 | int buffer_end_pos; /* last position where buffer was written */ |
@@ -97,22 +91,25 @@ struct playlist_info | |||
97 | int first_index; /* index of first song in playlist */ | 91 | int first_index; /* index of first song in playlist */ |
98 | int amount; /* number of tracks in the index */ | 92 | int amount; /* number of tracks in the index */ |
99 | int last_insert_pos; /* last position we inserted a track */ | 93 | int last_insert_pos; /* last position we inserted a track */ |
100 | int seed; /* shuffle seed */ | ||
101 | bool shuffle_modified; /* has playlist been shuffled with | ||
102 | inserted tracks? */ | ||
103 | bool deleted; /* have any tracks been deleted? */ | 94 | bool deleted; /* have any tracks been deleted? */ |
104 | int num_inserted_tracks; /* number of tracks inserted */ | ||
105 | bool started; /* has playlist been started? */ | 95 | bool started; /* has playlist been started? */ |
106 | 96 | bool pending_control_sync; /* control file needs to be synced */ | |
97 | bool shuffle_modified; /* has playlist been shuffled with | ||
98 | inserted tracks? */ | ||
99 | int last_shuffled_start; /* number of tracks when insert last | ||
100 | shuffled command start */ | ||
101 | int seed; /* shuffle seed */ | ||
107 | /* cache of playlist control commands waiting to be flushed to | 102 | /* cache of playlist control commands waiting to be flushed to |
108 | to disk */ | 103 | to disk */ |
109 | struct playlist_control_cache control_cache[PLAYLIST_MAX_CACHE]; | 104 | struct playlist_control_cache control_cache[PLAYLIST_MAX_CACHE]; |
110 | int num_cached; /* number of cached entries */ | 105 | int num_cached; /* number of cached entries */ |
111 | bool pending_control_sync; /* control file needs to be synced */ | 106 | struct mutex mutex; /* mutex for control file access */ |
112 | 107 | #ifdef HAVE_DIRCACHE | |
113 | struct mutex *control_mutex; /* mutex for control file access */ | 108 | struct dircache_fileref *dcfrefs; /* Dircache entry shortcuts */ |
114 | int last_shuffled_start; /* number of tracks when insert last | 109 | #endif |
115 | shuffled command start */ | 110 | int dirlen; /* Length of the path to the playlist file */ |
111 | char filename[MAX_PATH]; /* path name of m3u playlist on disk */ | ||
112 | char control_filename[MAX_PATH]; /* full path of control file */ | ||
116 | }; | 113 | }; |
117 | 114 | ||
118 | struct playlist_track_info | 115 | struct playlist_track_info |