Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | rz_event_t |
struct | rz_event_callback_handle_t |
struct | rz_event_meta_t |
struct | rz_event_class_t |
struct | rz_event_class_rename_t |
struct | rz_event_class_attr_t |
struct | rz_event_class_attr_set_t |
struct | rz_event_class_attr_rename_t |
struct | rz_event_debug_process_finished_t |
Typedefs | |
typedef struct rz_event_t | RzEvent |
typedef struct rz_event_callback_handle_t | RzEventCallbackHandle |
typedef void(* | RzEventCallback) (RzEvent *ev, int type, void *user, void *data) |
typedef struct rz_event_meta_t | RzEventMeta |
typedef struct rz_event_class_t | RzEventClass |
typedef struct rz_event_class_rename_t | RzEventClassRename |
typedef struct rz_event_class_attr_t | RzEventClassAttr |
typedef struct rz_event_class_attr_set_t | RzEventClassAttrSet |
typedef struct rz_event_class_attr_rename_t | RzEventClassAttrRename |
typedef struct rz_event_debug_process_finished_t | RzEventDebugProcessFinished |
Functions | |
RZ_API RzEvent * | rz_event_new (void *user) |
RZ_API void | rz_event_free (RzEvent *ev) |
RZ_API RzEventCallbackHandle | rz_event_hook (RzEvent *ev, int type, RzEventCallback cb, void *user) |
RZ_API void | rz_event_unhook (RzEvent *ev, RzEventCallbackHandle handle) |
RZ_API void | rz_event_send (RzEvent *ev, int type, void *data) |
typedef struct rz_event_t RzEvent |
Definition at line 28 of file rz_event.h.
typedef struct rz_event_callback_handle_t RzEventCallbackHandle |
typedef struct rz_event_class_t RzEventClass |
typedef struct rz_event_class_attr_t RzEventClassAttr |
typedef struct rz_event_class_attr_rename_t RzEventClassAttrRename |
typedef struct rz_event_class_attr_set_t RzEventClassAttrSet |
typedef struct rz_event_class_rename_t RzEventClassRename |
typedef struct rz_event_debug_process_finished_t RzEventDebugProcessFinished |
typedef struct rz_event_meta_t RzEventMeta |
enum RzEventType |
Definition at line 30 of file rz_event.h.
Definition at line 37 of file event.c.
References rz_event_t::all_callbacks, rz_event_t::callbacks, free(), rz_event_t::pending_unhook, and rz_vector_fini().
Referenced by rz_bin_free(), rz_bin_new(), rz_core_fini(), rz_event_new(), rz_io_fini(), and rz_spaces_fini().
RZ_API RzEventCallbackHandle rz_event_hook | ( | RzEvent * | ev, |
int | type, | ||
RzEventCallback | cb, | ||
void * | user | ||
) |
Definition at line 58 of file event.c.
References rz_event_t::all_callbacks, cb, rz_event_callback_hook_t::cb, get_cbs(), handle, rz_event_callback_hook_t::handle, rz_event_t::next_handle, RZ_EVENT_ALL, rz_return_val_if_fail, rz_vector_push(), type, and rz_event_callback_hook_t::user.
Referenced by new_spaces(), rz_analysis_new(), and rz_core_init().
Definition at line 17 of file event.c.
References rz_event_t::all_callbacks, rz_event_t::callbacks, err, ht_callback_free(), rz_event_t::next_handle, NULL, rz_event_t::pending_unhook, rz_event_free(), RZ_NEW0, rz_vector_init(), and rz_event_t::user.
Referenced by rz_bin_new(), rz_core_init(), rz_io_init(), and rz_spaces_init().
Definition at line 115 of file event.c.
References rz_event_t::all_callbacks, rz_event_t::callbacks, rz_event_callback_hook_t::cb, rz_event_t::incall, NULL, rz_event_t::pending_unhook, rz_event_unhook(), rz_return_if_fail, rz_vector_clear(), rz_vector_foreach, type, rz_event_callback_hook_t::user, and ut64().
Referenced by map_del(), rz_analysis_class_create(), rz_analysis_class_delete(), rz_analysis_class_delete_attr_raw(), rz_analysis_class_rename(), rz_analysis_class_rename_attr_raw(), rz_analysis_class_set_attr_raw(), rz_bin_file_delete(), rz_bin_file_delete_all(), rz_debug_wait(), rz_io_cache_write(), rz_io_desc_cache_write(), rz_io_desc_close(), rz_io_map_fini(), rz_io_plugin_write(), rz_spaces_count(), rz_spaces_rename(), and spaces_unset_single().
RZ_API void rz_event_unhook | ( | RzEvent * | ev, |
RzEventCallbackHandle | handle | ||
) |
Definition at line 95 of file event.c.
References rz_event_t::all_callbacks, rz_event_t::callbacks, del_hook(), handle, rz_event_t::incall, NULL, rz_event_t::pending_unhook, RZ_EVENT_ALL, rz_return_if_fail, rz_vector_push(), and ut64().
Referenced by rz_event_send().