Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | rz_space_t |
struct | rz_space_event_t |
struct | rz_spaces_t |
Macros | |
#define | RZ_SPACES_MAX 512 |
#define | rz_spaces_foreach(sp, it, s) rz_rbtree_foreach ((sp)->spaces, (it), (s), RzSpace, rb) |
Typedefs | |
typedef struct rz_space_t | RzSpace |
typedef struct rz_space_event_t | RzSpaceEvent |
typedef struct rz_spaces_t | RzSpaces |
typedef RBIter | RzSpaceIter |
Enumerations | |
enum | RzSpaceEventType { RZ_SPACE_EVENT_COUNT = 1 , RZ_SPACE_EVENT_RENAME , RZ_SPACE_EVENT_UNSET } |
Definition at line 105 of file rz_spaces.h.
#define RZ_SPACES_MAX 512 |
Definition at line 4 of file rz_spaces.h.
typedef struct rz_space_t RzSpace |
typedef struct rz_space_event_t RzSpaceEvent |
typedef RBIter RzSpaceIter |
Definition at line 104 of file rz_spaces.h.
typedef struct rz_spaces_t RzSpaces |
enum RzSpaceEventType |
Enumerator | |
---|---|
RZ_SPACE_EVENT_COUNT | |
RZ_SPACE_EVENT_RENAME | |
RZ_SPACE_EVENT_UNSET |
Definition at line 33 of file rz_spaces.h.
RZ_API bool rz_serialize_spaces_load | ( | RZ_NONNULL Sdb * | db, |
RZ_NONNULL RzSpaces * | spaces, | ||
bool | load_name, | ||
RZ_NULLABLE RzSerializeResultInfo * | res | ||
) |
load_name | whether to overwrite the name in spaces with the value from db |
Definition at line 54 of file serialize_spaces.c.
References rz_json_t::children, foreach_space_cb(), free(), KEY_NAME, KEY_SPACES, KEY_SPACESTACK, rz_space_t::name, rz_json_t::next, NULL, RZ_JSON_ARRAY, rz_json_free(), rz_json_parse(), RZ_JSON_STRING, rz_list_append(), RZ_SERIALIZE_ERR, rz_spaces_get(), rz_spaces_pop(), rz_spaces_purge(), sdb_foreach(), sdb_get(), sdb_ns(), spaces(), rz_json_t::str_value, and rz_json_t::type.
Referenced by rz_serialize_analysis_meta_load(), and rz_serialize_flag_load().
RZ_API void rz_serialize_spaces_save | ( | RZ_NONNULL Sdb * | db, |
RZ_NONNULL RzSpaces * | spaces | ||
) |
Definition at line 22 of file serialize_spaces.c.
References KEY_NAME, KEY_SPACES, KEY_SPACESTACK, rz_space_t::name, pj_a(), pj_end(), pj_free(), pj_new(), pj_s(), pj_string(), rz_rbtree_foreach, sdb_ns(), sdb_set(), and spaces().
Referenced by rz_serialize_analysis_meta_save(), and rz_serialize_flag_save().
Definition at line 96 of file spaces.c.
References free(), NULL, RZ_NEW0, rz_rbtree_insert(), rz_return_val_if_fail, rz_spaces_get(), s, sp, space_cmp(), and strdup().
Referenced by foreach_space_cb(), rz_meta_space_handler(), and rz_spaces_set().
Definition at line 167 of file spaces.c.
References rz_space_event_t::count, rz_space_event_t::data, rz_space_event_t::res, rz_event_send(), RZ_SPACE_EVENT_COUNT, rz_spaces_get(), s, and sp.
Referenced by rz_core_spaces_print().
Definition at line 91 of file rz_spaces.h.
References sp.
Referenced by meta_set(), rz_core_meta_print(), rz_core_meta_print_list_at(), rz_core_spaces_print(), rz_meta_del(), rz_meta_get_all_at(), rz_meta_get_all_in(), rz_meta_get_all_intersect(), rz_meta_get_at(), rz_meta_get_in(), and rz_meta_get_string().
Definition at line 59 of file spaces.c.
References NULL, rz_event_free(), RZ_FREE, rz_list_free(), rz_rbtree_free(), sp, and space_node_free().
Referenced by rz_analysis_free(), rz_flag_free(), rz_flag_unset_all(), rz_spaces_free(), and rz_spaces_init().
Definition at line 82 of file spaces.c.
References container_of, n, name_space_cmp(), NULL, rz_rbtree_find(), and sp.
Referenced by meta_load_cb(), rz_core_reg_set_by_role_or_name(), rz_serialize_spaces_load(), rz_spaces_add(), rz_spaces_count(), rz_spaces_pop(), rz_spaces_rename(), and spaces_unset_single().
Definition at line 16 of file spaces.c.
References fail, NULL, rz_event_new(), rz_list_new(), rz_return_val_if_fail, rz_spaces_fini(), sp, and strdup().
Referenced by new_spaces(), rz_analysis_new(), and rz_spaces_new().
Definition at line 7 of file spaces.c.
References free(), NULL, RZ_NEW0, rz_spaces_init(), and sp.
Definition at line 185 of file spaces.c.
References NULL, rz_list_pop(), rz_spaces_get(), rz_spaces_set(), s, and sp.
Referenced by rz_core_bin_apply_symbols(), and rz_serialize_spaces_load().
Definition at line 70 of file spaces.c.
References NULL, rz_list_purge(), rz_rbtree_free(), sp, and space_node_free().
Referenced by rz_serialize_spaces_load().
Definition at line 177 of file spaces.c.
References rz_list_push(), rz_return_val_if_fail, rz_spaces_set(), and sp.
Referenced by rz_core_bin_apply_symbols().
Definition at line 196 of file spaces.c.
References rz_space_event_t::data, free(), name_space_cmp(), NULL, rz_space_event_t::rename, rz_event_send(), rz_rbtree_delete(), rz_rbtree_insert(), RZ_SPACE_EVENT_RENAME, rz_spaces_get(), s, sp, space_cmp(), and strdup().
Referenced by rz_meta_space_rename_handler().
Definition at line 122 of file spaces.c.
References rz_spaces_add(), and sp.
Referenced by rz_spaces_pop(), and rz_spaces_push().
Definition at line 141 of file spaces.c.
References free(), n, rz_list_append(), rz_list_free(), rz_list_newf(), rz_spaces_foreach, s, sp, spaces_unset_single(), and strdup().
Referenced by rz_meta_space_remove_all_handler(), and rz_meta_space_remove_handler().