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
22 lines
750 B
C
22 lines
750 B
C
// SPDX-FileCopyrightText: 2017 xarkes <antide.petit@gmail.com>
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
#ifndef _AR_H
|
|
#define _AR_H
|
|
#include <rz_util.h>
|
|
|
|
typedef struct RZARFP {
|
|
char *name;
|
|
ut64 start;
|
|
ut64 end;
|
|
RzBuffer *buf;
|
|
bool shared_buf;
|
|
} RzArFp;
|
|
|
|
/* Offset passed is always the real io->off of the inspected file,
|
|
* the functions automatically translate it to relative offset within the archive */
|
|
RZ_API RzArFp *ar_open_file(const char *arname, int perm, const char *filename);
|
|
RZ_API RzList /*<RzArFp *>*/ *ar_open_all(const char *arname, int perm);
|
|
RZ_API void ar_close(RzArFp *f);
|
|
RZ_API int ar_read_at(RzArFp *f, ut64 off, void *buf, int count);
|
|
RZ_API int ar_write_at(RzArFp *f, ut64 off, void *buf, int count);
|
|
#endif // _AR_H
|