49 .
summary =
"example summary that contains some description",
61 RZ_LOG_ERROR(
"only positive numbers are accepted %d\n", index);
73 eprintf(
"This init was called!\n");
94 eprintf(
"This fini was called!\n");
100 .desc =
"description of the example core plugin",
102 .author =
"somebody",
109 #define _RZ_API __declspec(dllexport)
114 #ifndef RZ_PLUGIN_INCORE
119 .pkgname =
"example_package"
RZ_API RzCmdDesc * rz_cmd_desc_argv_new(RzCmd *cmd, RzCmdDesc *parent, const char *name, RzCmdArgvCb cb, const RzCmdDescHelp *help)
RZ_API RzCmdDesc * rz_cmd_get_root(RzCmd *cmd)
Get the root command descriptor.
RzCorePlugin rz_core_plugin_example
_RZ_API RzLibStruct rizin_plugin
static bool rz_cmd_example_fini(RzCore *core)
static const RzCmdDescHelp cmd_example_help
static const RzCmdDescArg cmd_example_args[]
static bool rz_cmd_example_init(RzCore *core)
RZ_IPI RzCmdStatus rz_cmd_example_handler(RzCore *core, int argc, const char **argv)
static static fork const void static count static fd const char const char static newpath char char argv
#define rz_warn_if_reached()
enum rz_cmd_status_t RzCmdStatus
@ RZ_CMD_ARG_TYPE_NUM
Argument is a number.
@ RZ_CMD_STATUS_OK
command handler exited in the right way
@ RZ_CMD_STATUS_WRONG_ARGS
command handler could not handle the arguments passed to it
@ RZ_CMD_STATUS_INVALID
command could not be executed (e.g. shell level error, bad expression, etc.)
#define RZ_LOG_WARN(fmtstr,...)
#define RZ_LOG_ERROR(fmtstr,...)
RZ_API ut64 rz_num_math(RzNum *num, const char *str)