comparison ffstools/tiffs-rd/struct.h @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
1 /* actual TIFFS on-media structure */
2 struct inode_flash {
3 u16 len;
4 u8 reserved1;
5 u8 type;
6 u16 descend;
7 u16 sibling;
8 u32 dataptr;
9 u16 sequence;
10 u16 updates;
11 };
12
13 struct journal_entry {
14 u8 status;
15 u8 objtype;
16 u16 this_ino;
17 u16 link_ptr;
18 u16 replacee;
19 u32 location;
20 u16 size;
21 u16 repli; /* ??? */
22 };
23
24 /* our own distilled info struct */
25 struct inode_info {
26 int ino;
27 /* info from the inode record */
28 int type;
29 int descend;
30 int sibling;
31 u16 len;
32 u32 rawloc;
33 u32 offset;
34 u8 *dataptr;
35 /* filled by treewalk */
36 int nparents;
37 int parent;
38 /* filled by misc */
39 u8 *byte_after_name;
40 };
41
42 /* chunk location and size info */
43 struct chunkinfo {
44 u8 *start;
45 u8 *end;
46 size_t len;
47 };