diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-12-03 09:00:56 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2022-12-06 23:40:02 -0500 |
commit | 152a2389471bb2aaf0c25acaa2f610feb1b3113c (patch) | |
tree | bdfd847734b6696d0e13505eb35a8af2e056abe6 /apps/playlist.h | |
parent | a89f279fd4dfb0ecbb61d39b3e11122ebb99d94c (diff) | |
download | rockbox-152a238947.tar.gz rockbox-152a238947.zip |
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
Diffstat (limited to 'apps/playlist.h')
-rw-r--r-- | apps/playlist.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/playlist.h b/apps/playlist.h index ab2afefddd..1ab330e513 100644 --- a/apps/playlist.h +++ b/apps/playlist.h @@ -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 |