Blender  V2.93
BLO_writefile.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
27 struct BlendThumbnail;
28 struct Main;
29 struct MemFile;
30 struct ReportList;
31 
32 /* -------------------------------------------------------------------- */
41 typedef enum eBLO_WritePathRemap {
51 
60  const struct BlendThumbnail *thumb;
61 };
62 
63 extern bool BLO_write_file(struct Main *mainvar,
64  const char *filepath,
65  const int write_flags,
66  const struct BlendFileWriteParams *params,
67  struct ReportList *reports);
68 
69 extern bool BLO_write_file_mem(struct Main *mainvar,
70  struct MemFile *compare,
71  struct MemFile *current,
72  int write_flags);
73 
unsigned int uint
Definition: BLI_sys_types.h:83
bool BLO_write_file(struct Main *mainvar, const char *filepath, const int write_flags, const struct BlendFileWriteParams *params, struct ReportList *reports)
Definition: writefile.c:1128
eBLO_WritePathRemap
Definition: BLO_writefile.h:41
@ BLO_WRITE_PATH_REMAP_NONE
Definition: BLO_writefile.h:43
@ BLO_WRITE_PATH_REMAP_RELATIVE_ALL
Definition: BLO_writefile.h:47
@ BLO_WRITE_PATH_REMAP_ABSOLUTE
Definition: BLO_writefile.h:49
@ BLO_WRITE_PATH_REMAP_RELATIVE
Definition: BLO_writefile.h:45
bool BLO_write_file_mem(struct Main *mainvar, struct MemFile *compare, struct MemFile *current, int write_flags)
Definition: writefile.c:1276
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
const struct BlendThumbnail * thumb
Definition: BLO_writefile.h:60
eBLO_WritePathRemap remap_mode
Definition: BLO_writefile.h:54
Definition: BKE_main.h:116