X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/763d5e6ad88ef3ba1cd1d7742d060e4f1e54c6b8..74a94bd06358ca24b4a3a1acaa524c7235f38664:/lib/cache.c diff --git a/lib/cache.c b/lib/cache.c index 1379f66..c6624e8 100644 --- a/lib/cache.c +++ b/lib/cache.c @@ -97,6 +97,10 @@ void cache_clean(const struct cache_type *type) { hash_foreach(h, clean_callback, (void *)type); } +size_t cache_count(void) { + return h ? hash_count(h) : 0; +} + /* Local Variables: c-basic-offset:2