Dircache: Return the size of the result string in dircache_copy_path() so that callers don't need to call strlen on it.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30034 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-06-20 20:12:15 +00:00
parent 38da400e58
commit e063725534
4 changed files with 11 additions and 8 deletions

View file

@ -100,7 +100,7 @@ int dircache_get_reserve_used(void);
int dircache_get_build_ticks(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);
size_t dircache_copy_path(const struct dircache_entry *entry, char *buf, size_t size);
void dircache_bind(int fd, const char *path);
void dircache_update_filesize(int fd, long newsize, long startcluster);