/*
* 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
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
+/** @file lib/cache.c @brief Object caching */
-#include <config.h>
-#include "types.h"
+#include "common.h"
#include <time.h>
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;
}
}
+/** @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;