Write object headers with stored file extents
[yaffs2.git] / yaffs_packedtags1.h
index 50f32e83d50a0516556eedfcaf9e3a30787423fa..3015d58a0743a8ee23b19f89ed3b49834e61314e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
  *
- * Copyright (C) 2002-2010 Aleph One Ltd.
+ * Copyright (C) 2002-2011 Aleph One Ltd.
  *   for Toby Churchill Ltd and Brightstar Engineering
  *
  * Created by Charles Manning <charles@aleph1.co.uk>
 
 #include "yaffs_guts.h"
 
-typedef struct {
-       unsigned chunk_id:20;
-       unsigned serial_number:2;
-       unsigned n_bytes:10;
-       unsigned obj_id:18;
-       unsigned ecc:12;
-       unsigned deleted:1;
-       unsigned unused_stuff:1;
+struct yaffs_packed_tags1 {
+       u32 chunk_id:20;
+       u32 serial_number:2;
+       u32 n_bytes:10;
+       u32 obj_id:18;
+       u32 ecc:12;
+       u32 deleted:1;
+       u32 unused_stuff:1;
        unsigned should_be_ff;
 
-} yaffs_packed_tags1;
+};
 
-void yaffs_pack_tags1(yaffs_packed_tags1 *pt, const yaffs_ext_tags *t);
-void yaffs_unpack_tags1(yaffs_ext_tags *t, const yaffs_packed_tags1 *pt);
+void yaffs_pack_tags1(struct yaffs_packed_tags1 *pt,
+                     const struct yaffs_ext_tags *t);
+void yaffs_unpack_tags1(struct yaffs_ext_tags *t,
+                       const struct yaffs_packed_tags1 *pt);
 #endif