forked from len0rd/rockbox
playlist add mutex to public functions
mutexes are in just trying to refactor the rest and make it a smaller and more robust system --Done Change-Id: If64807c3e0ee1966f7593795f26f1f538caf831b
This commit is contained in:
parent
a89f279fd4
commit
152a238947
2 changed files with 437 additions and 346 deletions
755
apps/playlist.c
755
apps/playlist.c
File diff suppressed because it is too large
Load diff
|
@ -27,6 +27,7 @@
|
|||
#include "file.h"
|
||||
#include "kernel.h"
|
||||
#include "metadata.h"
|
||||
#include "rbpaths.h"
|
||||
|
||||
#define PLAYLIST_ATTR_QUEUED 0x01
|
||||
#define PLAYLIST_ATTR_INSERTED 0x02
|
||||
|
@ -103,13 +104,14 @@ struct playlist_info
|
|||
to disk */
|
||||
struct playlist_control_cache control_cache[PLAYLIST_MAX_CACHE];
|
||||
int num_cached; /* number of cached entries */
|
||||
struct mutex *control_mutex; /* mutex for control file access */
|
||||
struct mutex mutex; /* mutex for control file access */
|
||||
#ifdef HAVE_DIRCACHE
|
||||
struct dircache_fileref *dcfrefs; /* Dircache entry shortcuts */
|
||||
#endif
|
||||
int dirlen; /* Length of the path to the playlist file */
|
||||
char filename[MAX_PATH]; /* path name of m3u playlist on disk */
|
||||
char control_filename[MAX_PATH]; /* full path of control file */
|
||||
/* full path of control file (with extra room for extensions) */
|
||||
char control_filename[sizeof(PLAYLIST_CONTROL_FILE) + 8];
|
||||
};
|
||||
|
||||
struct playlist_track_info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue