Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | FlagLoadCtx |
Enumerations | |
enum | FlagField { FLAG_FIELD_REALNAME , FLAG_FIELD_DEMANGLED , FLAG_FIELD_OFFSET , FLAG_FIELD_SIZE , FLAG_FIELD_SPACE , FLAG_FIELD_COLOR , FLAG_FIELD_COMMENT , FLAG_FIELD_ALIAS } |
Functions | |
RZ_API void | rz_serialize_flag_zones_save (RZ_NONNULL Sdb *db, RZ_NONNULL RzList *zones) |
static bool | zone_load_cb (void *user, const char *k, const char *v) |
RZ_API bool | rz_serialize_flag_zones_load (RZ_NONNULL Sdb *db, RZ_NONNULL RzList *zones, RZ_NULLABLE RzSerializeResultInfo *res) |
static bool | flag_save_cb (RzFlagItem *flag, void *user) |
RZ_API void | rz_serialize_flag_save (RZ_NONNULL Sdb *db, RZ_NONNULL RzFlag *flag) |
static bool | flag_load_cb (void *user, const char *k, const char *v) |
static bool | load_flags (RZ_NONNULL Sdb *flags_db, RZ_NONNULL RzFlag *flag) |
RZ_API bool | rz_serialize_flag_load (RZ_NONNULL Sdb *db, RZ_NONNULL RzFlag *flag, RZ_NULLABLE RzSerializeResultInfo *res) |
enum FlagField |
Enumerator | |
---|---|
FLAG_FIELD_REALNAME | |
FLAG_FIELD_DEMANGLED | |
FLAG_FIELD_OFFSET | |
FLAG_FIELD_SIZE | |
FLAG_FIELD_SPACE | |
FLAG_FIELD_COLOR | |
FLAG_FIELD_COMMENT | |
FLAG_FIELD_ALIAS |
Definition at line 136 of file serialize_flag.c.
Definition at line 152 of file serialize_flag.c.
References rz_flag_item_t::alias, rz_flag_item_t::color, rz_flag_item_t::comment, rz_flag_item_t::demangled, FLAG_FIELD_ALIAS, FLAG_FIELD_COLOR, FLAG_FIELD_COMMENT, FLAG_FIELD_DEMANGLED, FLAG_FIELD_OFFSET, FLAG_FIELD_SIZE, FLAG_FIELD_SPACE, free(), if(), rz_flag_item_t::offset, rz_flag_item_t::realname, RZ_JSON_BOOLEAN, RZ_JSON_INTEGER, RZ_JSON_OBJECT, rz_json_parse(), RZ_JSON_STRING, RZ_KEY_PARSER_JSON, rz_flag_item_t::size, rz_flag_item_t::space, strdup(), rz_json_t::type, and v.
Referenced by load_flags().
|
static |
Definition at line 92 of file serialize_flag.c.
References rz_flag_item_t::alias, rz_flag_item_t::color, rz_flag_item_t::comment, rz_flag_item_t::demangled, rz_flag_item_t::name, rz_space_t::name, rz_flag_item_t::offset, pj_end(), pj_free(), pj_kb(), pj_kn(), pj_ks(), pj_new(), pj_o(), pj_string(), rz_flag_item_t::realname, sdb_set(), rz_flag_item_t::size, and rz_flag_item_t::space.
Referenced by rz_serialize_flag_save().
|
static |
Definition at line 252 of file serialize_flag.c.
References FLAG_FIELD_ALIAS, FLAG_FIELD_COLOR, FLAG_FIELD_COMMENT, FLAG_FIELD_DEMANGLED, FLAG_FIELD_OFFSET, FLAG_FIELD_REALNAME, FLAG_FIELD_SIZE, FLAG_FIELD_SPACE, flag_load_cb(), r, rz_key_parser_add(), rz_key_parser_free(), rz_key_parser_new(), and sdb_foreach().
Referenced by rz_serialize_flag_load().
RZ_API bool rz_serialize_flag_load | ( | RZ_NONNULL Sdb * | db, |
RZ_NONNULL RzFlag * | flag, | ||
RZ_NULLABLE RzSerializeResultInfo * | res | ||
) |
Definition at line 270 of file serialize_flag.c.
References load_flags(), NULL, rz_flag_unset_all(), rz_flag_zone_reset(), RZ_SERIALIZE_ERR, rz_serialize_flag_zones_load(), rz_serialize_spaces_load(), sdb_const_get(), sdb_copy(), sdb_ns(), cmd_descs_generate::str, and true.
Referenced by rz_serialize_core_load().
RZ_API void rz_serialize_flag_save | ( | RZ_NONNULL Sdb * | db, |
RZ_NONNULL RzFlag * | flag | ||
) |
Definition at line 123 of file serialize_flag.c.
References flag_save_cb(), PFMT64d, rz_flag_foreach(), rz_serialize_flag_zones_save(), rz_serialize_spaces_save(), sdb_copy(), sdb_ns(), sdb_set(), and snprintf.
Referenced by rz_serialize_core_save().
RZ_API bool rz_serialize_flag_zones_load | ( | RZ_NONNULL Sdb * | db, |
RZ_NONNULL RzList * | zones, | ||
RZ_NULLABLE RzSerializeResultInfo * | res | ||
) |
Definition at line 82 of file serialize_flag.c.
References r, rz_list_purge(), rz_return_val_if_fail, RZ_SERIALIZE_ERR, sdb_foreach(), and zone_load_cb().
Referenced by rz_serialize_flag_load().
RZ_API void rz_serialize_flag_zones_save | ( | RZ_NONNULL Sdb * | db, |
RZ_NONNULL RzList * | zones | ||
) |
Definition at line 24 of file serialize_flag.c.
References rz_flag_zone_item_t::from, rz_flag_zone_item_t::name, pj_end(), pj_free(), pj_kn(), pj_new(), pj_o(), pj_string(), sdb_set(), and rz_flag_zone_item_t::to.
Referenced by rz_serialize_flag_save().
Definition at line 41 of file serialize_flag.c.
References rz_json_t::children, free(), rz_flag_zone_item_t::from, k, rz_json_t::key, list(), rz_flag_zone_item_t::name, rz_json_t::next, rz_json_t::num, rz_json_free(), RZ_JSON_INTEGER, RZ_JSON_OBJECT, rz_json_parse(), rz_list_append(), RZ_NEW0, strdup(), rz_flag_zone_item_t::to, rz_json_t::type, and v.
Referenced by rz_serialize_flag_zones_load().