Blender  V3.3
BKE_blendfile.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #pragma once
3 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 struct BlendFileData;
13 struct BlendFileReadParams;
14 struct BlendFileReadReport;
15 struct ID;
16 struct Main;
17 struct MemFile;
18 struct ReportList;
19 struct UserDef;
20 struct bContext;
21 
27 bool BKE_blendfile_is_readable(const char *path, struct ReportList *reports);
28 
38  struct BlendFileData *bfd,
39  const struct BlendFileReadParams *params,
40  struct BlendFileReadReport *reports,
41  /* Extra args. */
42  bool startup_update_defaults,
43  const char *startup_app_template);
44 
46  struct BlendFileData *bfd,
47  const struct BlendFileReadParams *params,
48  struct BlendFileReadReport *reports);
49 
53 struct BlendFileData *BKE_blendfile_read(const char *filepath,
54  const struct BlendFileReadParams *params,
55  struct BlendFileReadReport *reports);
56 
60 struct BlendFileData *BKE_blendfile_read_from_memory(const void *filebuf,
61  int filelength,
62  const struct BlendFileReadParams *params,
63  struct ReportList *reports);
64 
70  struct MemFile *memfile,
71  const struct BlendFileReadParams *params,
72  struct ReportList *reports);
78 
82 struct UserDef *BKE_blendfile_userdef_read(const char *filepath, struct ReportList *reports);
83 struct UserDef *BKE_blendfile_userdef_read_from_memory(const void *filebuf,
84  int filelength,
85  struct ReportList *reports);
87 
92 bool BKE_blendfile_userdef_write(const char *filepath, struct ReportList *reports);
100 bool BKE_blendfile_userdef_write_app_template(const char *filepath, struct ReportList *reports);
101 
102 bool BKE_blendfile_userdef_write_all(struct ReportList *reports);
103 
105  const void *filebuf,
106  int filelength,
107  struct ReportList *reports);
108 bool BKE_blendfile_workspace_config_write(struct Main *bmain,
109  const char *filepath,
110  struct ReportList *reports);
112 
113 /* Partial blend file writing. */
114 
115 void BKE_blendfile_write_partial_tag_ID(struct ID *id, bool set);
116 void BKE_blendfile_write_partial_begin(struct Main *bmain_src);
121 bool BKE_blendfile_write_partial(struct Main *bmain_src,
122  const char *filepath,
123  int write_flags,
124  int remap_mode,
125  struct ReportList *reports);
126 void BKE_blendfile_write_partial_end(struct Main *bmain_src);
127 
128 #ifdef __cplusplus
129 }
130 #endif
void BKE_blendfile_write_partial_begin(struct Main *bmain_src)
Definition: blendfile.c:872
struct UserDef * BKE_blendfile_userdef_read(const char *filepath, struct ReportList *reports)
Definition: blendfile.c:600
struct BlendFileData * BKE_blendfile_read_from_memfile(struct Main *bmain, struct MemFile *memfile, const struct BlendFileReadParams *params, struct ReportList *reports)
Definition: blendfile.c:556
struct WorkspaceConfigFileData * BKE_blendfile_workspace_config_read(const char *filepath, const void *filebuf, int filelength, struct ReportList *reports)
Definition: blendfile.c:807
struct BlendFileData * BKE_blendfile_read(const char *filepath, const struct BlendFileReadParams *params, struct BlendFileReadReport *reports)
Definition: blendfile.c:514
bool BKE_blendfile_userdef_write(const char *filepath, struct ReportList *reports)
Definition: blendfile.c:712
bool BKE_blendfile_is_readable(const char *path, struct ReportList *reports)
Definition: blendfile.c:68
bool BKE_blendfile_workspace_config_write(struct Main *bmain, const char *filepath, struct ReportList *reports)
Definition: blendfile.c:839
struct BlendFileData * BKE_blendfile_read_from_memory(const void *filebuf, int filelength, const struct BlendFileReadParams *params, struct ReportList *reports)
Definition: blendfile.c:537
struct UserDef * BKE_blendfile_userdef_from_defaults(void)
Definition: blendfile.c:642
void BKE_blendfile_read_setup_ex(struct bContext *C, struct BlendFileData *bfd, const struct BlendFileReadParams *params, struct BlendFileReadReport *reports, bool startup_update_defaults, const char *startup_app_template)
Definition: blendfile.c:482
void BKE_blendfile_write_partial_end(struct Main *bmain_src)
Definition: blendfile.c:984
bool BKE_blendfile_userdef_write_app_template(const char *filepath, struct ReportList *reports)
Definition: blendfile.c:732
void BKE_blendfile_read_setup(struct bContext *C, struct BlendFileData *bfd, const struct BlendFileReadParams *params, struct BlendFileReadReport *reports)
Definition: blendfile.c:506
void BKE_blendfile_read_make_empty(struct bContext *C)
Definition: blendfile.c:582
void BKE_blendfile_workspace_config_data_free(struct WorkspaceConfigFileData *workspace_config)
Definition: blendfile.c:860
bool BKE_blendfile_write_partial(struct Main *bmain_src, const char *filepath, int write_flags, int remap_mode, struct ReportList *reports)
Definition: blendfile.c:902
bool BKE_blendfile_userdef_write_all(struct ReportList *reports)
Definition: blendfile.c:748
struct UserDef * BKE_blendfile_userdef_read_from_memory(const void *filebuf, int filelength, struct ReportList *reports)
Definition: blendfile.c:619
void BKE_blendfile_write_partial_tag_ID(struct ID *id, bool set)
Definition: blendfile.c:877
#define C
Definition: RandGen.cpp:25
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
char filepath[1024]
Definition: BLO_readfile.h:61
Definition: DNA_ID.h:368
Definition: BKE_main.h:121