forked from len0rd/rockbox
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
This commit is contained in:
parent
bc8a4e4b8c
commit
735f453730
8 changed files with 336 additions and 75 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue