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 the cd stuff
[tfsprogs.git]
/
cache.h
blob
d67903dff275d8b127f8ea9ace0bfc6991f42c7d
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
};
13
14
15
/* functions */
16
void
cache_init
(
struct
tfs_sb_info
*);
17
struct
cache_struct
*
get_cache_block
(
struct
tfs_sb_info
*,
uint32_t
);
18
void
print_cache
(
void
);
19
20
21
#endif
/* cache.h */