Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | KEY_NAME "name" |
#define | KEY_SPACESTACK "spacestack" |
#define | KEY_SPACES "spaces" |
Functions | |
RZ_API void | rz_serialize_spaces_save (RZ_NONNULL Sdb *db, RZ_NONNULL RzSpaces *spaces) |
static bool | foreach_space_cb (void *user, const char *k, const char *v) |
RZ_API bool | rz_serialize_spaces_load (RZ_NONNULL Sdb *db, RZ_NONNULL RzSpaces *spaces, bool load_name, RZ_NULLABLE RzSerializeResultInfo *res) |
#define KEY_NAME "name" |
Definition at line 18 of file serialize_spaces.c.
#define KEY_SPACES "spaces" |
Definition at line 20 of file serialize_spaces.c.
#define KEY_SPACESTACK "spacestack" |
Definition at line 19 of file serialize_spaces.c.
Definition at line 48 of file serialize_spaces.c.
References k, rz_spaces_add(), and spaces().
Referenced by rz_serialize_spaces_load().
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().