15 #define RZ_PROJECT_VERSION 8
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
RZ_API bool rz_project_migrate_v2_v3(RzProject *prj, RzSerializeResultInfo *res)
RZ_API RzProjectErr rz_project_save(RzCore *core, RzProject *prj, const char *file)
RZ_API void rz_project_free(RzProject *prj)
@ RZ_PROJECT_ERR_MIGRATION_FAILED
@ RZ_PROJECT_ERR_COMPRESSION_FAILED
@ RZ_PROJECT_ERR_NEWER_VERSION
@ RZ_PROJECT_ERR_INVALID_CONTENTS
@ RZ_PROJECT_ERR_INVALID_TYPE
@ RZ_PROJECT_ERR_INVALID_VERSION
RZ_API bool rz_project_migrate_v1_v2(RzProject *prj, RzSerializeResultInfo *res)
RZ_API bool rz_project_migrate_v3_v4(RzProject *prj, RzSerializeResultInfo *res)
RZ_API RzProjectErr rz_project_load(RzCore *core, RzProject *prj, bool load_bin_io, RZ_NULLABLE const char *file, RzSerializeResultInfo *res)
RZ_API RZ_NONNULL const char * rz_project_err_message(RzProjectErr err)
RZ_API RzProjectErr rz_project_load_file(RzCore *core, const char *file, bool load_bin_io, RzSerializeResultInfo *res)
RZ_API RzProjectErr rz_project_save_file(RzCore *core, const char *file, bool compress)
enum rz_project_err RzProjectErr
RZ_API RzProject * rz_project_load_file_raw(const char *file)
Load a file into an RzProject but don't actually migrate anything or load it into an RzCore.
RZ_API bool rz_project_migrate(RzProject *prj, unsigned long version, RzSerializeResultInfo *res)
Migrate the given project to the current version in-place.