Move the internals read_super() functions near the declaration of
[yaffs2.git] / yaffs_packedtags2.h
1 // This is used to pack YAFFS2 tags, not YAFFS1tags.
2
3 #ifndef __YAFFS_PACKEDTAGS2_H__
4 #define __YAFFS_PACKEDTAGS2_H__
5
6
7 #include "yaffs_guts.h"
8 #include "yaffs_ecc.h"
9
10
11 typedef struct
12 {   
13     unsigned sequenceNumber;
14     unsigned objectId;    
15     unsigned chunkId;
16     unsigned byteCount;    
17 } yaffs_PackedTags2TagsPart;
18
19 typedef struct
20 {
21     yaffs_PackedTags2TagsPart t;
22     yaffs_ECCOther ecc;
23 } yaffs_PackedTags2;
24
25
26 void yaffs_PackTags2(yaffs_PackedTags2 *pt, const  yaffs_ExtendedTags *t);
27 void yaffs_UnpackTags2(yaffs_ExtendedTags *t, yaffs_PackedTags2 *pt);
28 #endif
29
30