Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
RZ_API bool | rz_io_plugin_add (RzIO *io, RZ_BORROW RzIOPlugin *plugin) |
RZ_API bool | rz_io_plugin_init (RzIO *io) |
RZ_API RzIOPlugin * | rz_io_plugin_get_default (RzIO *io, const char *filename, bool many) |
RZ_API RzIOPlugin * | rz_io_plugin_resolve (RzIO *io, const char *filename, bool many) |
RZ_API RzIOPlugin * | rz_io_plugin_byname (RzIO *io, const char *name) |
RZ_API int | rz_io_plugin_read (RzIODesc *desc, ut8 *buf, int len) |
RZ_API int | rz_io_plugin_write (RzIODesc *desc, const ut8 *buf, int len) |
RZ_API int | rz_io_plugin_read_at (RzIODesc *desc, ut64 addr, ut8 *buf, int len) |
RZ_API int | rz_io_plugin_write_at (RzIODesc *desc, ut64 addr, const ut8 *buf, int len) |
Variables | |
static volatile RzIOPlugin * | default_plugin = NULL |
static RzIOPlugin * | io_static_plugins [] = { RZ_IO_STATIC_PLUGINS } |
RZ_API bool rz_io_plugin_add | ( | RzIO * | io, |
RZ_BORROW RzIOPlugin * | plugin | ||
) |
Definition at line 12 of file io_plugin.c.
References memcpy(), rz_io_plugin_t::name, rz_io_t::plugins, rz_list_append(), and RZ_NEW0.
Referenced by rz_core_init(), and rz_io_plugin_init().
RZ_API RzIOPlugin* rz_io_plugin_byname | ( | RzIO * | io, |
const char * | name | ||
) |
Definition at line 68 of file io_plugin.c.
References rz_io_plugin_t::name, rz_io_t::plugins, and rz_io_plugin_get_default().
RZ_API RzIOPlugin* rz_io_plugin_get_default | ( | RzIO * | io, |
const char * | filename, | ||
bool | many | ||
) |
Definition at line 47 of file io_plugin.c.
References rz_io_plugin_t::check, default_plugin, and NULL.
Referenced by rz_io_plugin_byname(), and rz_io_plugin_resolve().
Definition at line 32 of file io_plugin.c.
References free(), i, io_static_plugins, rz_io_t::plugins, RZ_ARRAY_SIZE, rz_io_plugin_add(), and rz_list_newf().
Referenced by rz_io_init().
Definition at line 79 of file io_plugin.c.
References desc, len, and RZ_PERM_R.
Referenced by rz_io_desc_read(), and rz_io_plugin_read_at().
Definition at line 103 of file io_plugin.c.
References addr, desc, len, rz_io_desc_is_chardevice(), rz_io_desc_seek(), rz_io_plugin_read(), and RZ_IO_SEEK_SET.
RZ_API RzIOPlugin* rz_io_plugin_resolve | ( | RzIO * | io, |
const char * | filename, | ||
bool | many | ||
) |
Definition at line 54 of file io_plugin.c.
References rz_io_plugin_t::check, rz_io_t::plugins, and rz_io_plugin_get_default().
Referenced by dmp_open(), rz_io_desc_open(), and rz_io_open_many().
Definition at line 89 of file io_plugin.c.
References desc, len, RZ_EVENT_IO_WRITE, rz_event_send(), rz_io_desc_seek(), RZ_IO_SEEK_CUR, RZ_PERM_W, and ut64().
Referenced by rz_io_desc_write(), and rz_io_plugin_write_at().
Definition at line 110 of file io_plugin.c.
References addr, desc, len, rz_io_desc_is_chardevice(), rz_io_desc_seek(), rz_io_plugin_write(), and RZ_IO_SEEK_SET.
|
static |
Definition at line 8 of file io_plugin.c.
Referenced by rz_io_plugin_get_default().
|
static |
Definition at line 10 of file io_plugin.c.
Referenced by rz_io_plugin_init().