diff options
Diffstat (limited to 'firmware/include/dircache.h')
-rw-r--r-- | firmware/include/dircache.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/include/dircache.h b/firmware/include/dircache.h index d73c6f6e81..2cf838e539 100644 --- a/firmware/include/dircache.h +++ b/firmware/include/dircache.h | |||
@@ -69,6 +69,9 @@ typedef uint32_t dc_serial_t; | |||
69 | /** | 69 | /** |
70 | ****************************************************************************/ | 70 | ****************************************************************************/ |
71 | 71 | ||
72 | #define IF_DIRCACHE(...) __VA_ARGS__ | ||
73 | #define IFN_DIRCACHE(...) | ||
74 | |||
72 | #if CONFIG_PLATFORM & PLATFORM_NATIVE | 75 | #if CONFIG_PLATFORM & PLATFORM_NATIVE |
73 | /* native dircache is lower-level than on a hosted target */ | 76 | /* native dircache is lower-level than on a hosted target */ |
74 | #define DIRCACHE_NATIVE | 77 | #define DIRCACHE_NATIVE |
@@ -169,6 +172,9 @@ enum dircache_search_flags | |||
169 | int dircache_search(unsigned int flags, struct dircache_fileref *dcfrefp, | 172 | int dircache_search(unsigned int flags, struct dircache_fileref *dcfrefp, |
170 | const char *path); | 173 | const char *path); |
171 | 174 | ||
175 | int dircache_fileref_cmp(const struct dircache_fileref *dcfrefp1, | ||
176 | const struct dircache_fileref *dcfrefp2); | ||
177 | |||
172 | 178 | ||
173 | /** Debug screen/info stuff **/ | 179 | /** Debug screen/info stuff **/ |
174 | 180 | ||
@@ -202,6 +208,11 @@ int dircache_save(void); | |||
202 | 208 | ||
203 | void dircache_init(size_t last_size) INIT_ATTR; | 209 | void dircache_init(size_t last_size) INIT_ATTR; |
204 | 210 | ||
211 | #else /* !HAVE_DIRCACHE */ | ||
212 | |||
213 | #define IF_DIRCACHE(...) | ||
214 | #define IFN_DIRCACHE(...) __VA_ARGS__ | ||
215 | |||
205 | #endif /* HAVE_DIRCACHE */ | 216 | #endif /* HAVE_DIRCACHE */ |
206 | 217 | ||
207 | #endif /* _DIRCACHE_H */ | 218 | #endif /* _DIRCACHE_H */ |