From 735f4537309d4a66e16dd020fa99149a9d5f8d29 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Thu, 17 Nov 2005 19:31:29 +0000 Subject: Added dircache support to playlist. Now playlist filename pointers are automatically accuired from dircache. WPS UI response with dircache enabled should be instant. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7931 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/dircache.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/include/dircache.h') diff --git a/firmware/include/dircache.h b/firmware/include/dircache.h index 48b74e0..11d7335 100644 --- a/firmware/include/dircache.h +++ b/firmware/include/dircache.h @@ -47,6 +47,7 @@ struct dircache_maindata { /* Exported structures. */ struct dircache_entry { struct dircache_entry *next; + struct dircache_entry *up; struct dircache_entry *down; int attribute; long size; @@ -71,6 +72,8 @@ int dircache_build(int last_size); bool dircache_is_enabled(void); int dircache_get_cache_size(void); void dircache_disable(void); +const struct dircache_entry *dircache_get_entry_ptr(const char *filename); +void dircache_copy_path(const struct dircache_entry *entry, char *buf, int size); void dircache_bind(int fd, const char *path); void dircache_update_filesize(int fd, long newsize); -- cgit v1.1