Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | RZ_API static |
#define | RZ_IPI static |
#define | _RZ_API |
Functions | |
RZ_IPI RzCmdStatus | rz_cmd_example_handler (RzCore *core, int argc, const char **argv) |
static bool | rz_cmd_example_init (RzCore *core) |
static bool | rz_cmd_example_fini (RzCore *core) |
Variables | |
static const RzCmdDescArg | cmd_example_args [] |
static const RzCmdDescHelp | cmd_example_help |
RzCorePlugin | rz_core_plugin_example |
_RZ_API RzLibStruct | rizin_plugin |
This file is an example on how to write core plugins for rizin.
Compilation:
pkg-config --cflags --libs rz_core
core_plugin_example.c -sharedInstallation via the RZ_USER_PLUGINS folder:
Example of usage
Definition in file core_plugin_example.c.
#define _RZ_API |
Definition at line 111 of file core_plugin_example.c.
#define RZ_API static |
Definition at line 36 of file core_plugin_example.c.
#define RZ_IPI static |
Definition at line 38 of file core_plugin_example.c.
RZ_IPI RzCmdStatus rz_cmd_example_handler | ( | RzCore * | core, |
int | argc, | ||
const char ** | argv | ||
) |
Definition at line 53 of file core_plugin_example.c.
References argv, rz_core_t::num, RZ_CMD_STATUS_INVALID, RZ_CMD_STATUS_OK, RZ_CMD_STATUS_WRONG_ARGS, RZ_LOG_ERROR, RZ_LOG_WARN, rz_num_math(), and st32.
Referenced by rz_cmd_example_init().
Definition at line 69 of file core_plugin_example.c.
References cd, cmd_example_help, eprintf, rz_core_t::rcmd, cmd_descs_generate::root_cd, rz_cmd_desc_argv_new(), rz_cmd_example_handler(), rz_cmd_get_root(), and rz_warn_if_reached.
|
static |
Definition at line 40 of file core_plugin_example.c.
|
static |
Definition at line 48 of file core_plugin_example.c.
Referenced by rz_cmd_example_init().
_RZ_API RzLibStruct rizin_plugin |
Definition at line 115 of file core_plugin_example.c.
RzCorePlugin rz_core_plugin_example |
Definition at line 98 of file core_plugin_example.c.