Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/BLO_readfile.h
| Show All 12 Lines | |||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| * | * | ||||
| * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. | * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include "BLI_listbase.h" | |||||
| #include "BLI_sys_types.h" | #include "BLI_sys_types.h" | ||||
| /** \file | /** \file | ||||
| * \ingroup blenloader | * \ingroup blenloader | ||||
| * \brief external readfile function prototypes. | * \brief external readfile function prototypes. | ||||
| */ | */ | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| ▲ Show 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | struct ID *BLO_library_link_named_part(struct Main *mainl, | ||||
| const char *name, | const char *name, | ||||
| const struct LibraryLink_Params *params); | const struct LibraryLink_Params *params); | ||||
| void BLO_library_link_end(struct Main *mainl, | void BLO_library_link_end(struct Main *mainl, | ||||
| BlendHandle **bh, | BlendHandle **bh, | ||||
| const struct LibraryLink_Params *params); | const struct LibraryLink_Params *params); | ||||
| int BLO_library_link_copypaste(struct Main *mainl, BlendHandle *bh, const uint64_t id_types_mask); | int BLO_library_link_copypaste(struct Main *mainl, BlendHandle *bh, const uint64_t id_types_mask); | ||||
| /** | |||||
| * Struct for temporarily loading datablocks from a blend file. | |||||
| */ | |||||
| typedef struct TempLibraryContext { | |||||
| struct Main *temp_main; | |||||
| struct BlendHandle *blendhandle; | |||||
| struct LibraryLink_Params liblink_params; | |||||
| struct Library *lib; | |||||
| /* The ID datablock that was loaded. Is NULL if loading failed. */ | |||||
| struct ID *temp_id; | |||||
| } TempLibraryContext; | |||||
| TempLibraryContext *BLO_library_temp_load_id(struct Main *real_main, | |||||
| const char *blend_file_path, | |||||
| const short idcode, | |||||
| const char *idname, | |||||
| struct ReportList *reports); | |||||
| void BLO_library_temp_free(TempLibraryContext *temp_lib_ctx); | |||||
| /** \} */ | /** \} */ | ||||
| void *BLO_library_read_struct(struct FileData *fd, struct BHead *bh, const char *blockname); | void *BLO_library_read_struct(struct FileData *fd, struct BHead *bh, const char *blockname); | ||||
| /* internal function but we need to expose it */ | /* internal function but we need to expose it */ | ||||
| void blo_lib_link_restore(struct Main *oldmain, | void blo_lib_link_restore(struct Main *oldmain, | ||||
| struct Main *newmain, | struct Main *newmain, | ||||
| struct wmWindowManager *curwm, | struct wmWindowManager *curwm, | ||||
| Show All 27 Lines | |||||