mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-10 07:21:55 +00:00
ae04a73774
* Quote to prevent cmd injection * Added -q,-j,-h and -v options * Remove unneeded includes Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/* radare - LGPL - Copyright 2008-2020 - pancake */
|
|
|
|
#ifndef R2_MAIN_H
|
|
#define R2_MAIN_H
|
|
|
|
#include <r_types.h>
|
|
#include <r_getopt.h>
|
|
|
|
R_LIB_VERSION_HEADER(r_main);
|
|
|
|
typedef struct r_main_t {
|
|
const char *name;
|
|
int (*main)(int argc, const char **argv);
|
|
// stdin/stdout
|
|
} RMain;
|
|
|
|
typedef int (*RMainCallback)(int argc, const char **argv);
|
|
|
|
R_API RMain *r_main_new(const char *name);
|
|
R_API void r_main_free(RMain *m);
|
|
R_API int r_main_run(RMain *m, int argc, const char **argv);
|
|
|
|
R_API int r_main_version_print(const char *program);
|
|
R_API int r_main_rax2(int argc, const char **argv);
|
|
R_API int r_main_rarun2(int argc, const char **argv);
|
|
R_API int r_main_rahash2(int argc, const char **argv);
|
|
R_API int r_main_rabin2(int argc, const char **argv);
|
|
R_API int r_main_radare2(int argc, const char **argv);
|
|
R_API int r_main_rasm2(int argc, const char **argv);
|
|
R_API int r_main_r2agent(int argc, const char **argv);
|
|
R_API int r_main_rafind2(int argc, const char **argv);
|
|
R_API int r_main_radiff2(int argc, const char **argv);
|
|
R_API int r_main_ragg2(int argc, const char **argv);
|
|
R_API int r_main_rasign2(int argc, const char **argv);
|
|
|
|
#endif
|