X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_packedtags2.h;h=f3296697bc0c51712f2e6f0ee19474a2282ede15;hp=e869a8af2831074a4a26a1aed3fe7889f10f6d67;hb=8cbfc1e273db791447911631e80c0495c6171ca8;hpb=976dbeae825b18e6759f3903073a6784248cc244 diff --git a/yaffs_packedtags2.h b/yaffs_packedtags2.h index e869a8a..f329669 100644 --- a/yaffs_packedtags2.h +++ b/yaffs_packedtags2.h @@ -21,23 +21,27 @@ #include "yaffs_guts.h" #include "yaffs_ecc.h" -typedef struct { +struct yaffs_packed_tags2_tags_only { unsigned seq_number; unsigned obj_id; unsigned chunk_id; unsigned n_bytes; -} yaffs_packed_tags2_tags_only; +}; -typedef struct { - yaffs_packed_tags2_tags_only t; - yaffs_ecc_other ecc; -} yaffs_packed_tags2; +struct yaffs_packed_tags2 { + struct yaffs_packed_tags2_tags_only t; + struct yaffs_ecc_other ecc; +}; /* Full packed tags with ECC, used for oob tags */ -void yaffs_pack_tags2(yaffs_packed_tags2 *pt, const struct yaffs_ext_tags *t, int tags_ecc); -void yaffs_unpack_tags2(struct yaffs_ext_tags *t, yaffs_packed_tags2 *pt, int tags_ecc); +void yaffs_pack_tags2(struct yaffs_packed_tags2 *pt, + const struct yaffs_ext_tags *t, int tags_ecc); +void yaffs_unpack_tags2(struct yaffs_ext_tags *t, struct yaffs_packed_tags2 *pt, + int tags_ecc); /* Only the tags part (no ECC for use with inband tags */ -void yaffs_pack_tags2_tags_only(yaffs_packed_tags2_tags_only *pt, const struct yaffs_ext_tags *t); -void yaffs_unpack_tags2_tags_only(struct yaffs_ext_tags *t, yaffs_packed_tags2_tags_only *pt); +void yaffs_pack_tags2_tags_only(struct yaffs_packed_tags2_tags_only *pt, + const struct yaffs_ext_tags *t); +void yaffs_unpack_tags2_tags_only(struct yaffs_ext_tags *t, + struct yaffs_packed_tags2_tags_only *pt); #endif