add file read/write stuff
[tfsprogs.git] / cache.h
blob8739ed4184500dec4a371d29349868d7fd9761fe
1 #ifndef CACHE_H
2 #define CACHE_H
4 #include <stdint.h>
6 /* The cache structure */
7 struct cache_struct {
8 uint32_t block;
9 struct cache_struct *prev;
10 struct cache_struct *next;
11 void *data;
12 int outdate;
16 /* functions */
17 void cache_init(struct tfs_sb_info *);
18 struct cache_struct *get_cache_block(struct tfs_sb_info *, uint32_t);
19 void print_cache(void);
22 #endif /* cache.h */