Rizin
unix-like reverse engineering framework and cli tools
zimg.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2009-2015 ninjahacker <wardjm@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef ZIMG_H
5 #define ZIMG_H
6 
7 #include <rz_types.h>
8 #include <rz_util.h>
9 #include <rz_lib.h>
10 #include <rz_bin.h>
11 
12 #define RZ_BIN_ZIMG_MAXSTR 256
13 
14 struct zimg_header_t {
15  ut8 magic[8];
20 };
21 
22 typedef struct rz_bin_zimg_obj_t {
23  int size;
24  const char *file;
26  struct zimg_header_t header;
32  Sdb *kv;
34 
39  int size;
40  int last;
41 };
42 
45 
46 #endif
uint32_t ut32
voidpf void * buf
Definition: ioapi.h:138
uint8_t ut8
Definition: lh5801.h:11
Definition: malloc.c:26
Sdb * kv
Definition: zimg.h:32
ut64 code_from
Definition: zimg.h:30
ut64 code_to
Definition: zimg.h:31
RzList * methods_list
Definition: zimg.h:28
struct zimg_header_t header
Definition: zimg.h:26
RzBuffer * b
Definition: zimg.h:25
ut32 * strings
Definition: zimg.h:27
RzList * imports_list
Definition: zimg.h:29
const char * file
Definition: zimg.h:24
ut64 ordinal
Definition: zimg.h:38
char str[RZ_BIN_ZIMG_MAXSTR]
Definition: zimg.h:36
ut64 offset
Definition: zimg.h:37
Definition: sdb.h:63
ut32 kernel_start
Definition: zimg.h:18
ut32 filler[6]
Definition: zimg.h:16
ut8 arm_magic[4]
Definition: zimg.h:17
ut32 kernel_end
Definition: zimg.h:19
ut8 magic[8]
Definition: zimg.h:15
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
struct rz_bin_zimg_obj_t RzBinZimgObj
#define RZ_BIN_ZIMG_MAXSTR
Definition: zimg.h:12
struct rz_bin_zimg_obj_t * rz_bin_zimg_new_buf(RzBuffer *buf)
Definition: zimg.c:8
struct rz_bin_zimg_str_t * rz_bin_zimg_get_strings(struct rz_bin_zimg_obj_t *bin)