This commit is contained in:
Alessandro Mauri 2023-02-13 23:42:44 +01:00
parent 7552d2fa2a
commit 4b6f76b6c8
6 changed files with 125 additions and 63 deletions

View file

@ -1,10 +1,13 @@
#ifndef _CACHE_H
#define _CACHE_H
#define CACHE_SIZE 512
void cache_init(void);
void cache_destroy(void);
struct font_glyph * cache_get(unsigned int code);
int cache_insert(struct font_glyph *g);
const struct font_glyph * cache_search(unsigned int code);
unsigned int cache_get(void);
const struct font_glyph * cache_insert(struct font_glyph *g, unsigned int idx);
#endif