Adds /*<type>*/ comments and a linter check from rz-bindgen to enforce their existence and consistency Also includes the following fixes made when adding the annotations: * removed unused intern_table arguments in pyc_dis.c, pyc_dis.h, asm_pyc.c * removed unused classes argument from place_nodes in agraph.c * removed unused recurse and recurse_bb functions in canalysis.c * removed unused vars field from RzPrint struct * removed unused RzAnalysisType* structs from rz_analysis.h * removed unused list field from RzEgg struct * fixed bug in bp_plugin.c where duplication-checking logic iterates over the wrong list * removed unused q_regs field from RzDebug struct * removed unused backtrace field from RzDebugPlugin struct * removed unused classes_list field from RzBinNXOObj struct * removed unused methods_list and classes_list fields from RzBinZimgObj struct
44 lines
823 B
C
44 lines
823 B
C
// SPDX-FileCopyrightText: 2009-2015 ninjahacker <wardjm@gmail.com>
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
|
|
#ifndef ZIMG_H
|
|
#define ZIMG_H
|
|
|
|
#include <rz_types.h>
|
|
#include <rz_util.h>
|
|
#include <rz_lib.h>
|
|
#include <rz_bin.h>
|
|
|
|
#define RZ_BIN_ZIMG_MAXSTR 256
|
|
|
|
struct zimg_header_t {
|
|
ut8 magic[8];
|
|
ut32 filler[6];
|
|
ut8 arm_magic[4];
|
|
ut32 kernel_start;
|
|
ut32 kernel_end;
|
|
};
|
|
|
|
typedef struct rz_bin_zimg_obj_t {
|
|
int size;
|
|
const char *file;
|
|
RzBuffer *b;
|
|
struct zimg_header_t header;
|
|
ut32 *strings;
|
|
ut64 code_from;
|
|
ut64 code_to;
|
|
Sdb *kv;
|
|
} RzBinZimgObj;
|
|
|
|
struct rz_bin_zimg_str_t {
|
|
char str[RZ_BIN_ZIMG_MAXSTR];
|
|
ut64 offset;
|
|
ut64 ordinal;
|
|
int size;
|
|
int last;
|
|
};
|
|
|
|
struct rz_bin_zimg_obj_t *rz_bin_zimg_new_buf(RzBuffer *buf);
|
|
struct rz_bin_zimg_str_t *rz_bin_zimg_get_strings(struct rz_bin_zimg_obj_t *bin);
|
|
|
|
#endif
|