root / mainbox / cache.h @ 2dde134c
History | View | Annotate | Download (310 Bytes)
1 | cc7646f9 | Tom Mullins | #ifndef CACHE_H
|
---|---|---|---|
2 | #define CACHE_H
|
||
3 | |||
4 | #define CACHE_SIZE 256 |
||
5 | 88570136 | Tom Mullins | #define CACHE_MAX_ENTRIES 160 |
6 | cc7646f9 | Tom Mullins | |
7 | typedef void (*cache_func)(unsigned int key); |
||
8 | |||
9 | void cache_foreach(cache_func f);
|
||
10 | void cache_clear();
|
||
11 | int cache_lookup(unsigned int key, unsigned int *value); |
||
12 | void cache_update(unsigned int key, unsigned int value); |
||
13 | |||
14 | #endif |