Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | rz_event_callback_hook_t |
Typedefs | |
typedef struct rz_event_callback_hook_t | RzEventCallbackHook |
Functions | |
static void | ht_callback_free (HtUPKv *kv) |
RZ_API RzEvent * | rz_event_new (void *user) |
RZ_API void | rz_event_free (RzEvent *ev) |
static RzVector * | get_cbs (RzEvent *ev, int type) |
RZ_API RzEventCallbackHandle | rz_event_hook (RzEvent *ev, int type, RzEventCallback cb, void *user) |
static bool | del_hook (void *user, const ut64 k, const void *v) |
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_callback_hook_t RzEventCallbackHook |
Definition at line 80 of file event.c.
References handle, rz_event_callback_hook_t::handle, i, NULL, rz_return_val_if_fail, rz_vector_enumerate, rz_vector_remove_at(), and v.
Referenced by rz_event_unhook().
Definition at line 47 of file event.c.
References rz_event_t::callbacks, NULL, rz_vector_new(), type, and ut64().
Referenced by rz_event_hook().
|
static |
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().