From 16a9f84571276a13f4cfd5c66db8cd63ce4e2e7f Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 17 Jan 2017 14:45:07 -0500 Subject: 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 --- apps/playlist.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/playlist.h') diff --git a/apps/playlist.h b/apps/playlist.h index a331838fde..6048001ff7 100644 --- a/apps/playlist.h +++ b/apps/playlist.h @@ -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) */ -- cgit v1.2.3