summaryrefslogtreecommitdiff
path: root/utils/imxtools/sbtools/rsrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/imxtools/sbtools/rsrc.h')
-rw-r--r--utils/imxtools/sbtools/rsrc.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/rsrc.h b/utils/imxtools/sbtools/rsrc.h
index fc310e348d..3e03d97d73 100644
--- a/utils/imxtools/sbtools/rsrc.h
+++ b/utils/imxtools/sbtools/rsrc.h
@@ -26,6 +26,10 @@
26 26
27#include "misc.h" 27#include "misc.h"
28 28
29/**
30 * Low-Level
31 **/
32
29#define RSRC_SECTOR_SIZE 2048 33#define RSRC_SECTOR_SIZE 2048
30 34
31#define RSRC_TABLE_ENTRY_TYPE(e) ((e) >> 28) 35#define RSRC_TABLE_ENTRY_TYPE(e) ((e) >> 28)
@@ -38,10 +42,25 @@
38#define RSRC_TYPE_AUDIO 4 /* audio entry */ 42#define RSRC_TYPE_AUDIO 4 /* audio entry */
39#define RSRC_TYPE_DATA 5 /* data entry */ 43#define RSRC_TYPE_DATA 5 /* data entry */
40 44
45/**
46 * API
47 **/
48
49struct rsrc_entry_t
50{
51 uint32_t id;
52 uint32_t offset; // contains value of RSRC_TYPE_VALUE
53 int size;
54};
55
41struct rsrc_file_t 56struct rsrc_file_t
42{ 57{
43 void *data; 58 void *data;
44 int size; 59 int size;
60
61 int nr_entries;
62 int capacity;
63 struct rsrc_entry_t *entries;
45}; 64};
46 65
47enum rsrc_error_t 66enum rsrc_error_t