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