mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Reenable database ramcache and playlist dircache
Playlist dircache references should be back in working order. Reenabling dircache references in the database ramcache is not yet done as it requires quite a bit of rework. Otherwise, the database in RAM is functional again. Some buffer compatibility changes have been made for database commit because the dircache buffer can no longer be stolen, only freed by an API call. Change-Id: Ib57c3e98cb23e798d4439e9da7ebd73826e733a4
This commit is contained in:
parent
a931c76b3a
commit
16a9f84571
4 changed files with 172 additions and 146 deletions
|
|
@ -82,7 +82,9 @@ struct playlist_info
|
|||
bool control_created; /* has control file been created? */
|
||||
int dirlen; /* Length of the path to the playlist file */
|
||||
volatile unsigned long *indices; /* array of indices */
|
||||
volatile int *filenames; /* Array of dircache indices */
|
||||
#ifdef HAVE_DIRCACHE
|
||||
struct dircache_fileref *dcfrefs; /* Dircache entry shortcuts */
|
||||
#endif
|
||||
int max_playlist_size; /* Max number of files in playlist. Mirror of
|
||||
global_settings.max_files_in_playlist */
|
||||
bool in_ram; /* playlist stored in ram (dirplay) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue