Rizin
unix-like reverse engineering framework and cli tools
oab.h
Go to the documentation of this file.
1 /* This file is part of libmspack.
2  * © 2013 Intel Corporation
3  *
4  * libmspack is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License (LGPL) version 2.1
6  *
7  * For further details, see the file COPYING.LIB distributed with libmspack
8  */
9 
10 #ifndef MSPACK_OAB_H
11 #define MSPACK_OAB_H 1
12 
13 #include <system.h>
14 
15 /* generic OAB definitions */
16 
17 /* OAB compression definitions */
18 
20  struct msoab_compressor base;
22  /* todo */
23 };
24 
25 /* OAB decompression definitions */
26 
28  struct msoab_decompressor base;
30  int buf_size;
31  /* todo */
32 };
33 
34 #define oabhead_VersionHi (0x0000)
35 #define oabhead_VersionLo (0x0004)
36 #define oabhead_BlockMax (0x0008)
37 #define oabhead_TargetSize (0x000c)
38 #define oabhead_SIZEOF (0x0010)
39 
40 #define oabblk_Flags (0x0000)
41 #define oabblk_CompSize (0x0004)
42 #define oabblk_UncompSize (0x0008)
43 #define oabblk_CRC (0x000c)
44 #define oabblk_SIZEOF (0x0010)
45 
46 #define patchhead_VersionHi (0x0000)
47 #define patchhead_VersionLo (0x0004)
48 #define patchhead_BlockMax (0x0008)
49 #define patchhead_SourceSize (0x000c)
50 #define patchhead_TargetSize (0x0010)
51 #define patchhead_SourceCRC (0x0014)
52 #define patchhead_TargetCRC (0x0018)
53 #define patchhead_SIZEOF (0x001c)
54 
55 #define patchblk_PatchSize (0x0000)
56 #define patchblk_TargetSize (0x0004)
57 #define patchblk_SourceSize (0x0008)
58 #define patchblk_CRC (0x000c)
59 #define patchblk_SIZEOF (0x0010)
60 
61 #endif
struct msoab_compressor base
Definition: oab.h:20
struct mspack_system * system
Definition: oab.h:21
struct msoab_decompressor base
Definition: oab.h:28
struct mspack_system * system
Definition: oab.h:29