111 buf[0] = (bhead->
code >> 24) & 0xFF;
112 buf[1] = (bhead->
code >> 16) & 0xFF;
113 buf[2] = (bhead->
code >> 8) & 0xFF;
114 buf[3] = (bhead->
code >> 0) & 0xFF;
116 buf[0] = buf[0] ? buf[0] :
' ';
117 buf[1] = buf[1] ? buf[1] :
' ';
118 buf[2] = buf[2] ? buf[2] :
' ';
119 buf[3] = buf[3] ? buf[3] :
' ';
122 "['%.4s', '%s', %d, %ld ],\n",
126 (
long int)(bhead->
len +
sizeof(
BHead)));
143 const bool use_assets_only,
152 if (bhead->
code == ofblocktype) {
182 int *r_tot_info_items)
190 if (bhead->
code == ofblocktype) {
213 *r_tot_info_items = tot;
237 if (bhead->
code == ofblocktype) {
239 switch (
GS(idname)) {
265 if (prv->
rect[0] && prv->
w[0] && prv->
h[0]) {
275 new_prv->
w[0] = new_prv->
h[0] = 0;
279 if (prv->
rect[1] && prv->
w[1] && prv->
h[1]) {
289 new_prv->
w[1] = new_prv->
h[1] = 0;
422 const char *filename,
void BKE_previewimg_finish(struct PreviewImage *prv, const int size)
bool BKE_idtype_idcode_is_linkable(const short idcode)
bool BKE_idtype_idcode_is_valid(const short idcode)
const char * BKE_idtype_idcode_to_name(const short idcode)
void BKE_main_free(struct Main *mainvar)
GSet * BLI_gset_ptr_new(const char *info)
void BLI_gset_free(GSet *gs, GSetKeyFreeFP keyfreefp)
bool BLI_gset_add(GSet *gs, void *key)
void void BLI_linklist_prepend(LinkNode **listp, void *ptr) ATTR_NONNULL(1)
#define STRNCPY(dst, src)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_NONNULL()
Compatibility-like things for windows.
defines for blend-file codes.
external readfile function prototypes.
@ BLO_READ_SKIP_UNDO_OLD_MAIN
struct BlendHandle BlendHandle
void * BLO_library_read_struct(struct FileData *fd, struct BHead *bh, const char *blockname)
blenloader genfile private function prototypes
int DNA_struct_find_nr(const struct SDNA *sdna, const char *str)
Read Guarded memory(de)allocation.
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
void *(* MEM_mallocN)(size_t len, const char *str)
BlendFileData * BLO_read_from_memory(const void *mem, int memsize, eBLOReadSkip skip_flags, ReportList *reports)
BlendFileData * BLO_read_from_memfile(Main *oldmain, const char *filename, MemFile *memfile, const struct BlendFileReadParams *params, ReportList *reports)
LinkNode * BLO_blendhandle_get_datablock_info(BlendHandle *bh, int ofblocktype, int *r_tot_info_items)
BlendHandle * BLO_blendhandle_from_file(const char *filepath, ReportList *reports)
BlendFileData * BLO_read_from_file(const char *filepath, eBLOReadSkip skip_flags, ReportList *reports)
BlendHandle * BLO_blendhandle_from_memory(const void *mem, int memsize)
LinkNode * BLO_blendhandle_get_linkable_groups(BlendHandle *bh)
void BLO_blendhandle_print_sizes(BlendHandle *bh, void *fp)
LinkNode * BLO_blendhandle_get_previews(BlendHandle *bh, int ofblocktype, int *r_tot_prev)
LinkNode * BLO_blendhandle_get_datablock_names(BlendHandle *bh, int ofblocktype, const bool use_assets_only, int *r_tot_names)
void BLO_blendhandle_close(BlendHandle *bh)
void BLO_blendfiledata_free(BlendFileData *bfd)
BlendFileData * blo_read_file_internal(FileData *fd, const char *filepath)
FileData * blo_filedata_from_file(const char *filepath, ReportList *reports)
void blo_clear_proxy_pointers_from_lib(Main *oldmain)
BHead * blo_bhead_first(FileData *fd)
AssetMetaData * blo_bhead_id_asset_data_address(const FileData *fd, const BHead *bhead)
FileData * blo_filedata_from_memory(const void *mem, int memsize, ReportList *reports)
void blo_split_main(ListBase *mainlist, Main *main)
BHead * blo_bhead_next(FileData *fd, BHead *thisblock)
void blo_cache_storage_init(FileData *fd, Main *bmain)
void blo_make_old_idmap_from_main(FileData *fd, Main *bmain)
const char * blo_bhead_id_name(const FileData *fd, const BHead *bhead)
FileData * blo_filedata_from_memfile(MemFile *memfile, const struct BlendFileReadParams *params, ReportList *reports)
BHead * blo_bhead_prev(FileData *UNUSED(fd), BHead *thisblock)
void blo_filedata_free(FileData *fd)
void blo_cache_storage_old_bmain_clear(FileData *fd, Main *bmain_old)
BHead * blo_read_asset_data_block(FileData *fd, BHead *bhead, AssetMetaData **r_asset_data)
void blo_add_library_pointer_map(ListBase *old_mainlist, FileData *fd)
void blo_join_main(ListBase *mainlist)
struct AssetMetaData * asset_data
struct ReportList * reports