root / mainbox / cache.h @ 88570136
History | View | Annotate | Download (310 Bytes)
1 |
#ifndef CACHE_H
|
---|---|
2 |
#define CACHE_H
|
3 |
|
4 |
#define CACHE_SIZE 256 |
5 |
#define CACHE_MAX_ENTRIES 160 |
6 |
|
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
|