X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/14ad73b94d56fb8558eabfef431c34e12de00478..49e57291d78de2b583d6f2197ae6f9d9ff05e456:/lib/cache.c diff --git a/lib/cache.c b/lib/cache.c index bc6bc81..f812dc6 100644 --- a/lib/cache.c +++ b/lib/cache.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder - * Copyright (C) 2006 Richard Kettlewell + * Copyright (C) 2006-2008 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,8 +19,7 @@ */ /** @file lib/cache.c @brief Object caching */ -#include -#include "types.h" +#include "common.h" #include @@ -84,6 +83,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 +105,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;