summaryrefslogtreecommitdiff
path: root/firmware/include/dircache.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2017-01-18 04:39:35 -0500
committerMichael Sevakis <jethead71@rockbox.org>2017-02-10 05:05:23 -0500
commit7373cf518f4d4c47f49693690c2ab8ec29bb8510 (patch)
tree0a3c025749be24561e952078e83c5f2e8b838900 /firmware/include/dircache.h
parentabd75a17d18c0779b59f64a612f9226b62af5823 (diff)
downloadrockbox-7373cf518f4d4c47f49693690c2ab8ec29bb8510.zip
rockbox-7373cf518f4d4c47f49693690c2ab8ec29bb8510.tar.gz
rockbox-7373cf518f4d4c47f49693690c2ab8ec29bb8510.tar.bz2
rockbox-7373cf518f4d4c47f49693690c2ab8ec29bb8510.tar.xz
Restore dircache hookup in the database ramcache.
Do a few other changes to dircache and file code flags to accomodate its demands. Change-Id: I4742a54e8cfbe4d8b9cffb75faaf920dd907cf8a
Diffstat (limited to 'firmware/include/dircache.h')
-rw-r--r--firmware/include/dircache.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/include/dircache.h b/firmware/include/dircache.h
index d73c6f6..2cf838e 100644
--- a/firmware/include/dircache.h
+++ b/firmware/include/dircache.h
@@ -69,6 +69,9 @@ typedef uint32_t dc_serial_t;
/**
****************************************************************************/
+#define IF_DIRCACHE(...) __VA_ARGS__
+#define IFN_DIRCACHE(...)
+
#if CONFIG_PLATFORM & PLATFORM_NATIVE
/* native dircache is lower-level than on a hosted target */
#define DIRCACHE_NATIVE
@@ -169,6 +172,9 @@ enum dircache_search_flags
int dircache_search(unsigned int flags, struct dircache_fileref *dcfrefp,
const char *path);
+int dircache_fileref_cmp(const struct dircache_fileref *dcfrefp1,
+ const struct dircache_fileref *dcfrefp2);
+
/** Debug screen/info stuff **/
@@ -202,6 +208,11 @@ int dircache_save(void);
void dircache_init(size_t last_size) INIT_ATTR;
+#else /* !HAVE_DIRCACHE */
+
+#define IF_DIRCACHE(...)
+#define IFN_DIRCACHE(...) __VA_ARGS__
+
#endif /* HAVE_DIRCACHE */
#endif /* _DIRCACHE_H */