From 67f1b3a6a3f90b01134a0a20e993f78d18c37bb0 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 5 Dec 2004 21:09:14 +0000 Subject: [PATCH] add sigar_cache decls --- include/sigar_util.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/sigar_util.h b/include/sigar_util.h index 754f549b..36049eeb 100644 --- a/include/sigar_util.h +++ b/include/sigar_util.h @@ -83,4 +83,11 @@ typedef struct { void (*free_value)(void *ptr); } sigar_cache_t; +sigar_cache_t *sigar_cache_new(int size); + +sigar_cache_entry_t *sigar_cache_get(sigar_cache_t *table, + sigar_uint64_t key); + +void sigar_cache_destroy(sigar_cache_t *table); + #endif /* SIGAR_UTIL_H */