chiark / gitweb /
missing samples_written assign
[disorder] / lib / cache.c
index 1379f666008067a38894fc321a650aee877c2d1f..c6624e89d0f4b6ba04a0f2b39670bd64601de4a2 100644 (file)
@@ -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