Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | SUB(ns, call) RZ_SERIALIZE_SUB_DO(db, subdb, res, ns, call, return false;) |
Enumerations | |
enum | FileRet { FILE_SUCCESS , FILE_DOES_NOT_EXIST , FILE_LOAD_FAIL } |
Functions | |
static void | file_save (RZ_NONNULL Sdb *db, RZ_NONNULL RzCore *core, RZ_NULLABLE const char *prj_file) |
static bool | file_load (RZ_NONNULL Sdb *db, RZ_NONNULL RzCore *core, RZ_NULLABLE const char *prj_file, RZ_NULLABLE RzSerializeResultInfo *res) |
RZ_API void | rz_serialize_core_save (RZ_NONNULL Sdb *db, RZ_NONNULL RzCore *core, RZ_NULLABLE const char *prj_file) |
RZ_API bool | rz_serialize_core_load (RZ_NONNULL Sdb *db, RZ_NONNULL RzCore *core, bool load_bin_io, RZ_NULLABLE const char *prj_file, RZ_NULLABLE RzSerializeResultInfo *res) |
static char * | prj_dir_abs (const char *prj_file) |
static char * | prj_relative_make (const char *prj_dir, const char *abs_file) |
static char * | prj_relative_restore (const char *prj_dir, const char *rel_file) |
static FileRet | try_load_file (RZ_NONNULL RzCore *core, const char *file, RZ_NULLABLE RzSerializeResultInfo *res) |
Variables | |
static const char *const | config_exclude [] |
#define SUB | ( | ns, | |
call | |||
) | RZ_SERIALIZE_SUB_DO(db, subdb, res, ns, call, return false;) |
enum FileRet |
Enumerator | |
---|---|
FILE_SUCCESS | |
FILE_DOES_NOT_EXIST | |
FILE_LOAD_FAIL |
Definition at line 196 of file serialize_core.c.
|
static |
Definition at line 217 of file serialize_core.c.
References FILE_DOES_NOT_EXIST, FILE_SUCCESS, free(), prj_dir_abs(), prj_relative_restore(), r, rz_bin_file_delete_all(), rz_core_file_close_fd(), rz_io_close_all(), RZ_SERIALIZE_ERR, sdb_const_get(), and try_load_file().
Referenced by rz_serialize_core_load().
|
static |
Definition at line 154 of file serialize_core.c.
References desc, eprintf, free(), prj_dir_abs(), prj_relative_make(), rz_file_abspath(), rz_io_desc_get(), rz_return_if_fail, and sdb_set().
Referenced by rz_serialize_core_save().
|
static |
Definition at line 120 of file serialize_core.c.
References free(), NULL, r, rz_file_abspath(), and rz_file_dirname().
Referenced by file_load(), and file_save().
Definition at line 131 of file serialize_core.c.
References free(), NULL, rz_file_path_local_to_unix(), and rz_file_relpath().
Referenced by file_save().
Definition at line 144 of file serialize_core.c.
References free(), NULL, rz_file_abspath_rel(), and rz_file_path_unix_to_local().
Referenced by file_load().
RZ_API bool rz_serialize_core_load | ( | RZ_NONNULL Sdb * | db, |
RZ_NONNULL RzCore * | core, | ||
bool | load_bin_io, | ||
RZ_NULLABLE const char * | prj_file, | ||
RZ_NULLABLE RzSerializeResultInfo * | res | ||
) |
Definition at line 69 of file serialize_core.c.
References config_exclude, file_load(), NULL, rz_core_block_size(), rz_serialize_analysis_load(), rz_serialize_config_load(), rz_serialize_debug_load(), RZ_SERIALIZE_ERR, rz_serialize_flag_load(), sdb_get(), cmd_descs_generate::str, SUB, and ut64().
Referenced by rz_project_load().
RZ_API void rz_serialize_core_save | ( | RZ_NONNULL Sdb * | db, |
RZ_NONNULL RzCore * | core, | ||
RZ_NULLABLE const char * | prj_file | ||
) |
Definition at line 23 of file serialize_core.c.
References file_save(), PFMT32x, PFMT64x, rz_serialize_analysis_save(), rz_serialize_config_save(), rz_serialize_debug_save(), rz_serialize_flag_save(), sdb_ns(), sdb_set(), and snprintf.
Referenced by rz_project_save().
|
static |
Definition at line 202 of file serialize_core.c.
References fh, FILE_DOES_NOT_EXIST, FILE_LOAD_FAIL, FILE_SUCCESS, rz_core_bin_load(), rz_core_file_open(), rz_file_is_regular(), RZ_PERM_RX, RZ_SERIALIZE_ERR, and UT64_MAX.
Referenced by file_load().
Definition at line 42 of file serialize_core.c.
Referenced by rz_serialize_core_load().