Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/BLO_readfile.h
| Show All 38 Lines | |||||
| struct BlendThumbnail; | struct BlendThumbnail; | ||||
| struct bScreen; | struct bScreen; | ||||
| struct LinkNode; | struct LinkNode; | ||||
| struct ListBase; | struct ListBase; | ||||
| struct Main; | struct Main; | ||||
| struct MemFile; | struct MemFile; | ||||
| struct ReportList; | struct ReportList; | ||||
| struct Scene; | struct Scene; | ||||
| struct SceneLayer; | struct ViewLayer; | ||||
| struct UserDef; | struct UserDef; | ||||
| struct View3D; | struct View3D; | ||||
| struct bContext; | struct bContext; | ||||
| struct BHead; | struct BHead; | ||||
| struct FileData; | struct FileData; | ||||
| struct wmWindowManager; | struct wmWindowManager; | ||||
| typedef struct BlendHandle BlendHandle; | typedef struct BlendHandle BlendHandle; | ||||
| Show All 9 Lines | typedef struct BlendFileData { | ||||
| struct UserDef *user; | struct UserDef *user; | ||||
| int fileflags; | int fileflags; | ||||
| int globalf; | int globalf; | ||||
| char filename[1024]; /* 1024 = FILE_MAX */ | char filename[1024]; /* 1024 = FILE_MAX */ | ||||
| struct bScreen *curscreen; /* TODO think this isn't needed anymore? */ | struct bScreen *curscreen; /* TODO think this isn't needed anymore? */ | ||||
| struct Scene *curscene; | struct Scene *curscene; | ||||
| struct SceneLayer *cur_render_layer; /* layer to activate in workspaces when reading without UI */ | struct ViewLayer *cur_view_layer; /* layer to activate in workspaces when reading without UI */ | ||||
| eBlenFileType type; | eBlenFileType type; | ||||
| } BlendFileData; | } BlendFileData; | ||||
| typedef struct WorkspaceConfigFileData { | typedef struct WorkspaceConfigFileData { | ||||
| struct Main *main; /* has to be freed when done reading file data */ | struct Main *main; /* has to be freed when done reading file data */ | ||||
| struct ListBase workspaces; | struct ListBase workspaces; | ||||
| Show All 37 Lines | |||||
| bool BLO_has_bfile_extension(const char *str); | bool BLO_has_bfile_extension(const char *str); | ||||
| bool BLO_library_path_explode(const char *path, char *r_dir, char **r_group, char **r_name); | bool BLO_library_path_explode(const char *path, char *r_dir, char **r_group, char **r_name); | ||||
| struct Main *BLO_library_link_begin(struct Main *mainvar, BlendHandle **bh, const char *filepath); | struct Main *BLO_library_link_begin(struct Main *mainvar, BlendHandle **bh, const char *filepath); | ||||
| struct ID *BLO_library_link_named_part(struct Main *mainl, BlendHandle **bh, const short idcode, const char *name); | struct ID *BLO_library_link_named_part(struct Main *mainl, BlendHandle **bh, const short idcode, const char *name); | ||||
| struct ID *BLO_library_link_named_part_ex( | struct ID *BLO_library_link_named_part_ex( | ||||
| struct Main *mainl, BlendHandle **bh, | struct Main *mainl, BlendHandle **bh, | ||||
| const short idcode, const char *name, const short flag, | const short idcode, const char *name, const short flag, | ||||
| struct Scene *scene, struct SceneLayer *scene_layer, | struct Scene *scene, struct ViewLayer *view_layer, | ||||
| const bool use_placeholders, const bool force_indirect); | const bool use_placeholders, const bool force_indirect); | ||||
| void BLO_library_link_end(struct Main *mainl, BlendHandle **bh, short flag, struct Scene *scene, struct SceneLayer *scene_layer); | void BLO_library_link_end(struct Main *mainl, BlendHandle **bh, short flag, struct Scene *scene, struct ViewLayer *view_layer); | ||||
| void BLO_library_link_copypaste(struct Main *mainl, BlendHandle *bh); | void BLO_library_link_copypaste(struct Main *mainl, BlendHandle *bh); | ||||
| 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); | ||||
| BlendFileData *blo_read_blendafterruntime(int file, const char *name, int actualsize, struct ReportList *reports); | BlendFileData *blo_read_blendafterruntime(int file, const char *name, int actualsize, struct ReportList *reports); | ||||
| /* internal function but we need to expose it */ | /* internal function but we need to expose it */ | ||||
| void blo_lib_link_restore( | void blo_lib_link_restore( | ||||
| struct Main *newmain, struct wmWindowManager *curwm, | struct Main *newmain, struct wmWindowManager *curwm, | ||||
| struct Scene *curscene, struct SceneLayer *cur_render_layer); | struct Scene *curscene, struct ViewLayer *cur_render_layer); | ||||
| typedef void (*BLOExpandDoitCallback) (void *fdhandle, struct Main *mainvar, void *idv); | typedef void (*BLOExpandDoitCallback) (void *fdhandle, struct Main *mainvar, void *idv); | ||||
| void BLO_main_expander(BLOExpandDoitCallback expand_doit_func); | void BLO_main_expander(BLOExpandDoitCallback expand_doit_func); | ||||
| void BLO_expand_main(void *fdhandle, struct Main *mainvar); | void BLO_expand_main(void *fdhandle, struct Main *mainvar); | ||||
| /* Update defaults in startup.blend & userprefs.blend, without having to save and embed it */ | /* Update defaults in startup.blend & userprefs.blend, without having to save and embed it */ | ||||
| void BLO_update_defaults_userpref_blend(void); | void BLO_update_defaults_userpref_blend(void); | ||||
| Show All 9 Lines | |||||