44 #include "dna_type_offsets.h"
97 #define BLO_get_struct_id(writer, struct_name) SDNA_TYPE_FROM_STRUCT(struct_name)
102 #define BLO_write_struct(writer, struct_name, data_ptr) \
103 BLO_write_struct_by_id(writer, BLO_get_struct_id(writer, struct_name), data_ptr)
109 const void *data_ptr);
110 #define BLO_write_struct_at_address(writer, struct_name, address, data_ptr) \
111 BLO_write_struct_at_address_by_id( \
112 writer, BLO_get_struct_id(writer, struct_name), address, data_ptr)
116 BlendWriter *writer,
int filecode,
int struct_id,
const void *address,
const void *data_ptr);
117 #define BLO_write_struct_at_address_with_filecode( \
118 writer, filecode, struct_name, address, data_ptr) \
119 BLO_write_struct_at_address_by_id_with_filecode( \
120 writer, filecode, BLO_get_struct_id(writer, struct_name), address, data_ptr)
124 const char *struct_name,
126 const void *data_ptr);
130 const void *data_ptr);
131 #define BLO_write_struct_array(writer, struct_name, array_size, data_ptr) \
132 BLO_write_struct_array_by_id( \
133 writer, BLO_get_struct_id(writer, struct_name), array_size, data_ptr)
137 BlendWriter *writer,
int struct_id,
int array_size,
const void *address,
const void *data_ptr);
138 #define BLO_write_struct_array_at_address(writer, struct_name, array_size, address, data_ptr) \
139 BLO_write_struct_array_at_address_by_id( \
140 writer, BLO_get_struct_id(writer, struct_name), array_size, address, data_ptr)
144 const char *struct_name,
147 #define BLO_write_struct_list(writer, struct_name, list_ptr) \
148 BLO_write_struct_list_by_id(writer, BLO_get_struct_id(writer, struct_name), list_ptr)
153 const void *id_address,
154 const struct ID *
id);
155 #define BLO_write_id_struct(writer, struct_name, id_address, id) \
156 blo_write_id_struct(writer, BLO_get_struct_id(writer, struct_name), id_address, id)
197 #define BLO_read_data_address(reader, ptr_p) \
198 *((void **)ptr_p) = BLO_read_get_new_data_address((reader), *(ptr_p))
199 #define BLO_read_packed_address(reader, ptr_p) \
200 *((void **)ptr_p) = BLO_read_get_new_packed_address((reader), *(ptr_p))
230 #define BLO_read_id_address(reader, lib, id_ptr_p) \
231 *((void **)id_ptr_p) = (void *)BLO_read_get_new_id_address((reader), (lib), (ID *)*(id_ptr_p))
247 #define BLO_expand(expander, id) BLO_expand_id(expander, (struct ID *)id)
size_t ATTR_PRINTF_FORMAT(3, 4)
void BLO_write_double_array(BlendWriter *writer, uint num, const double *data_ptr)
void BLO_read_float3_array(BlendDataReader *reader, int array_size, float **ptr_p)
void BLO_write_uint32_array(BlendWriter *writer, uint num, const uint32_t *data_ptr)
void BLO_write_float3_array(BlendWriter *writer, uint num, const float *data_ptr)
void BLO_write_struct_list_by_id(BlendWriter *writer, int struct_id, struct ListBase *list)
void BLO_write_struct_at_address_by_id_with_filecode(BlendWriter *writer, int filecode, int struct_id, const void *address, const void *data_ptr)
void BLO_reportf_wrap(struct ReportList *reports, ReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
struct Main * BLO_read_lib_get_main(BlendLibReader *reader)
void * BLO_read_get_new_packed_address(BlendDataReader *reader, const void *old_address)
void * BLO_read_get_new_data_address_no_us(BlendDataReader *reader, const void *old_address)
ID * BLO_read_get_new_id_address(BlendLibReader *reader, struct Library *lib, struct ID *id)
void BLO_write_struct_by_name(BlendWriter *writer, const char *struct_name, const void *data_ptr)
void BLO_write_int32_array(BlendWriter *writer, uint num, const int32_t *data_ptr)
struct ReportList * BLO_read_data_reports(BlendDataReader *reader)
void BLO_read_double_array(BlendDataReader *reader, int array_size, double **ptr_p)
bool BLO_read_data_is_undo(BlendDataReader *reader)
void BLO_read_float_array(BlendDataReader *reader, int array_size, float **ptr_p)
void BLO_read_int32_array(BlendDataReader *reader, int array_size, int32_t **ptr_p)
void(* BlendReadListFn)(BlendDataReader *reader, void *data)
void BLO_write_struct_list_by_name(BlendWriter *writer, const char *struct_name, struct ListBase *list)
void BLO_read_list(BlendDataReader *reader, struct ListBase *list)
void BLO_write_struct_array_by_id(BlendWriter *writer, int struct_id, int array_size, const void *data_ptr)
bool BLO_read_lib_is_undo(BlendLibReader *reader)
void BLO_read_glob_list(BlendDataReader *reader, struct ListBase *list)
void * BLO_read_get_new_data_address(BlendDataReader *reader, const void *old_address)
void BLO_read_list_cb(BlendDataReader *reader, struct ListBase *list, BlendReadListFn callback)
void BLO_read_uint32_array(BlendDataReader *reader, int array_size, uint32_t **ptr_p)
void BLO_read_data_globmap_add(BlendDataReader *reader, void *oldaddr, void *newaddr)
void BLO_write_float_array(BlendWriter *writer, uint num, const float *data_ptr)
void BLO_write_string(BlendWriter *writer, const char *data_ptr)
int BLO_get_struct_id_by_name(BlendWriter *writer, const char *struct_name)
void BLO_write_struct_array_by_name(BlendWriter *writer, const char *struct_name, int array_size, const void *data_ptr)
bool BLO_read_requires_endian_switch(BlendDataReader *reader)
void BLO_expand_id(BlendExpander *expander, struct ID *id)
void BLO_write_raw(BlendWriter *writer, size_t size_in_bytes, const void *data_ptr)
void BLO_write_struct_at_address_by_id(BlendWriter *writer, int struct_id, const void *address, const void *data_ptr)
void BLO_read_pointer_array(BlendDataReader *reader, void **ptr_p)
void BLO_write_struct_array_at_address_by_id(BlendWriter *writer, int struct_id, int array_size, const void *address, const void *data_ptr)
bool BLO_write_is_undo(BlendWriter *writer)
struct ReportList * BLO_read_lib_reports(BlendLibReader *reader)
void BLO_write_struct_by_id(BlendWriter *writer, int struct_id, const void *data_ptr)
void blo_write_id_struct(BlendWriter *writer, int struct_id, const void *id_address, const struct ID *id)
void BLO_write_pointer_array(BlendWriter *writer, uint num, const void *data_ptr)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
DEGForeachIDComponentCallback callback