TeoCCl library  0.1.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
lru_cache.h
Go to the documentation of this file.
1 
7 #ifndef LRU_CACHE_H
8 #define LRU_CACHE_H
9 
10 #include <stdlib.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef struct ccl_lru_cache ccl_lru_cache_t;
17 
18 ccl_lru_cache_t *cclLruInit(const size_t size);
20 void cclLruRefer(ccl_lru_cache_t *lru, void *data, size_t data_len);
21 void cclLruForeach(ccl_lru_cache_t *lru, void (*fn)(const void *const data));
22 
23 #ifdef __cplusplus
24 }
25 #endif
26 
27 #endif
void cclLruRefer(ccl_lru_cache_t *lru, void *data, size_t data_len)
Definition: lru_cache.c:28
ccl_lru_cache_t * cclLruInit(const size_t size)
Definition: lru_cache.c:18
void cclLruDestroy(ccl_lru_cache_t *lru)
Definition: lru_cache.c:56
struct ccl_lru_cache ccl_lru_cache_t
Definition: lru_cache.h:16
void cclLruForeach(ccl_lru_cache_t *lru, void(*fn)(const void *const data))
Definition: lru_cache.c:45