summaryrefslogtreecommitdiffstats
path: root/src/statcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/statcache.h')
-rw-r--r--src/statcache.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/statcache.h b/src/statcache.h
new file mode 100644
index 0000000..5af9bd9
--- /dev/null
+++ b/src/statcache.h
@@ -0,0 +1,20 @@
+#ifndef foostatcachehfoo
+#define foostatcachehfoo
+
+#include <sys/stat.h>
+
+int stat_cache_get(const char *fn, struct stat *st);
+void stat_cache_set(const char *fn, const struct stat *st);
+void stat_cache_invalidate(const char*fn);
+
+void dir_cache_invalidate(const char*fn);
+void dir_cache_invalidate_parent(const char *fn);
+void dir_cache_begin(const char *fn);
+void dir_cache_finish(const char *fn, int success);
+void dir_cache_add(const char *fn, const char *subdir, int is_dir);
+int dir_cache_enumerate(const char *fn, void (*f) (const char*fn, const char *subdir, int is_dir, void *user), void *user);
+
+void cache_free(void);
+void cache_alloc(void);
+
+#endif