forked from len0rd/rockbox
Now dircache should work on players requiring long aligned memory
accesses. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8502 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1446b210eb
commit
de281db7e7
3 changed files with 36 additions and 5 deletions
|
|
@ -41,6 +41,7 @@ struct travel_data {
|
|||
struct dircache_maindata {
|
||||
long magic;
|
||||
long size;
|
||||
long entry_count;
|
||||
struct dircache_entry *root_entry;
|
||||
};
|
||||
|
||||
|
|
@ -61,6 +62,7 @@ struct dircache_entry {
|
|||
typedef struct {
|
||||
bool busy;
|
||||
struct dircache_entry *entry;
|
||||
struct dircache_entry *internal_entry;
|
||||
struct dircache_entry secondary_entry;
|
||||
DIR *regulardir;
|
||||
} DIRCACHED;
|
||||
|
|
@ -70,6 +72,7 @@ int dircache_load(const char *path);
|
|||
int dircache_save(const char *path);
|
||||
int dircache_build(int last_size);
|
||||
bool dircache_is_enabled(void);
|
||||
int dircache_get_entry_count(void);
|
||||
int dircache_get_cache_size(void);
|
||||
int dircache_get_reserve_used(void);
|
||||
int dircache_get_build_ticks(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue