Blender  V2.93
BKE_blender_copybuffer.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 #pragma once
17 
22 #include "BLI_sys_types.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 struct ID;
29 struct Main;
30 struct ReportList;
31 struct bContext;
32 
33 /* copybuffer (wrapper for BKE_blendfile_write_partial) */
34 void BKE_copybuffer_begin(struct Main *bmain_src);
35 void BKE_copybuffer_tag_ID(struct ID *id);
36 bool BKE_copybuffer_save(struct Main *bmain_src, const char *filename, struct ReportList *reports);
37 bool BKE_copybuffer_read(struct Main *bmain_dst,
38  const char *libname,
39  struct ReportList *reports,
40  const uint64_t id_types_mask);
41 int BKE_copybuffer_paste(struct bContext *C,
42  const char *libname,
43  const short flag,
44  struct ReportList *reports,
45  const uint64_t id_types_mask);
46 
47 #ifdef __cplusplus
48 }
49 #endif
bool BKE_copybuffer_read(struct Main *bmain_dst, const char *libname, struct ReportList *reports, const uint64_t id_types_mask)
bool BKE_copybuffer_save(struct Main *bmain_src, const char *filename, struct ReportList *reports)
int BKE_copybuffer_paste(struct bContext *C, const char *libname, const short flag, struct ReportList *reports, const uint64_t id_types_mask)
void BKE_copybuffer_begin(struct Main *bmain_src)
void BKE_copybuffer_tag_ID(struct ID *id)
#define C
Definition: RandGen.cpp:39
unsigned __int64 uint64_t
Definition: stdint.h:93
Definition: DNA_ID.h:273
Definition: BKE_main.h:116