|
Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_util/rz_serialize.h>#include <rz_list.h>#include <rz_vector.h>#include <rz_analysis.h>#include <sdb.h>Go to the source code of this file.
Classes | |
| struct | analysis_sdb |
Functions | |
| static bool | typelinks_load_sdb (RzAnalysis *analysis, Sdb *sdb) |
| static void | save_typelink (const RzAnalysis *analysis, Sdb *sdb, const RzType *type, ut64 addr) |
| static bool | export_typelink_cb (void *user, ut64 k, const void *v) |
| static bool | typelinks_export_sdb (RZ_NONNULL Sdb *db, RZ_NONNULL const RzAnalysis *analysis) |
| RZ_API void | rz_serialize_typelinks_save (RZ_NONNULL Sdb *db, RZ_NONNULL const RzAnalysis *analysis) |
| Saves the type links into SDB. More... | |
| RZ_API bool | rz_serialize_typelinks_load (RZ_NONNULL Sdb *db, RZ_NONNULL RzAnalysis *analysis, RZ_NULLABLE RzSerializeResultInfo *res) |
| Loads the type links from SDB. More... | |
Definition at line 48 of file serialize_typelink.c.
References k, s, save_typelink(), type, and v.
Referenced by typelinks_export_sdb().
| RZ_API bool rz_serialize_typelinks_load | ( | RZ_NONNULL Sdb * | db, |
| RZ_NONNULL RzAnalysis * | analysis, | ||
| RZ_NULLABLE RzSerializeResultInfo * | res | ||
| ) |
Loads the type links from SDB.
| db | A SDB database object |
| analysis | RzAnalysis instance |
| res | A structure where the result is stored |
Definition at line 80 of file serialize_typelink.c.
References analysis_sdb::analysis, rz_return_val_if_fail, and typelinks_load_sdb().
Referenced by rz_serialize_analysis_typelinks_load().
| RZ_API void rz_serialize_typelinks_save | ( | RZ_NONNULL Sdb * | db, |
| RZ_NONNULL const RzAnalysis * | analysis | ||
| ) |
Saves the type links into SDB.
| db | A SDB database object |
| analysis | RzAnalysis instance |
Definition at line 68 of file serialize_typelink.c.
References analysis_sdb::analysis, rz_return_if_fail, and typelinks_export_sdb().
Referenced by rz_serialize_analysis_typelinks_save().
|
static |
Definition at line 30 of file serialize_typelink.c.
References addr, key, PFMT64x, rz_return_if_fail, rz_str_newf(), rz_type_as_string(), sdb_set(), type, and rz_analysis_t::typedb.
Referenced by export_typelink_cb().
|
static |
Definition at line 55 of file serialize_typelink.c.
References analysis_sdb::analysis, export_typelink_cb(), rz_return_val_if_fail, and rz_analysis_t::type_links.
Referenced by rz_serialize_typelinks_save().
|
static |
Definition at line 10 of file serialize_typelink.c.
References addr, free(), ls_foreach, NULL, rz_type_db_t::parser, rz_num_get(), rz_return_val_if_fail, rz_type_parse_string_single(), sdb_foreach_list(), sdbkv_key(), sdbkv_value(), type, rz_analysis_t::type_links, rz_analysis_t::typedb, and ut64().
Referenced by rz_serialize_typelinks_load().