From 6ce466ea2c3b0a4f07f6c64e34b3be72a92c08e8 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Wed, 29 Mar 2006 09:38:45 +0000 Subject: More safety checks to dircache to block updates until cache is ready. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9339 a1c6a512-1295-4272-9138-f99709370657 --- firmware/include/dircache.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/include') diff --git a/firmware/include/dircache.h b/firmware/include/dircache.h index 48f29806e3..4141254de6 100644 --- a/firmware/include/dircache.h +++ b/firmware/include/dircache.h @@ -46,6 +46,12 @@ struct dircache_maindata { struct dircache_entry *root_entry; }; +#define MAX_PENDING_BINDINGS 2 +struct fdbind_queue { + char path[MAX_PATH]; + int fd; +}; + /* Exported structures. */ struct dircache_entry { struct dircache_entry *next; -- cgit v1.2.3