2023-02-12 09:34:44 +01:00
|
|
|
#ifndef _CACHE_H
|
|
|
|
|
#define _CACHE_H
|
|
|
|
|
|
2023-02-13 23:42:44 +01:00
|
|
|
#define CACHE_SIZE 512
|
|
|
|
|
|
2023-02-12 09:34:44 +01:00
|
|
|
void cache_init(void);
|
|
|
|
|
void cache_destroy(void);
|
2023-02-13 23:42:44 +01:00
|
|
|
const struct font_glyph * cache_search(unsigned int code);
|
|
|
|
|
unsigned int cache_get(void);
|
2023-02-15 02:15:44 +01:00
|
|
|
const struct font_glyph * cache_insert(const struct font_glyph *g, unsigned int idx);
|
2023-02-12 09:34:44 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|