X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/14ad73b94d56fb8558eabfef431c34e12de00478..eb5dc014179415a0e5476e986519ac96c36221f9:/lib/cache.c diff --git a/lib/cache.c b/lib/cache.c index bc6bc81..faca540 100644 --- a/lib/cache.c +++ b/lib/cache.c @@ -84,6 +84,7 @@ const void *cache_get(const struct cache_type *type, const char *key) { return 0; } +/** @brief Call used by from cache_expire() */ static int expiry_callback(const char *key, void *value, void *u) { const struct cache_entry *c = value; const time_t *now = u; @@ -105,6 +106,7 @@ void cache_expire(void) { } } +/** @brief Callback used by cache_clean() */ static int clean_callback(const char *key, void *value, void *u) { const struct cache_entry *c = value; const struct cache_type *type = u;