repo.or.cz
/
tfsprogs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add file read/write stuff
[tfsprogs.git]
/
cache.h
blob
8739ed4184500dec4a371d29349868d7fd9761fe
1
#ifndef CACHE_H
2
#define CACHE_H
3
4
#include <stdint.h>
5
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
;
13
};
14
15
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
);
20
21
22
#endif
/* cache.h */