utils/isohybrid.c: Encode GPT partition names as UTF-16LE
[syslinux.git] / core / include / cache.h
bloba0b82d6b452d98eee645da5b2bc9556ef39541c1
1 #ifndef _CACHE_H
2 #define _CACHE_H
4 #include <stdint.h>
5 #include <com32.h>
6 #include "disk.h"
7 #include "fs.h"
9 /* The cache structure */
10 struct cache {
11 block_t block;
12 struct cache *prev;
13 struct cache *next;
14 void *data;
17 /* functions defined in cache.c */
18 void cache_init(struct device *, int);
19 const void *get_cache(struct device *, block_t);
20 struct cache *_get_cache_block(struct device *, block_t);
21 void cache_lock_block(struct cache *);
22 size_t cache_read(struct fs_info *, void *, uint64_t, size_t);
24 #endif /* cache.h */