BKE_blender_copybuffer.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * ***** BEGIN GPL LICENSE BLOCK *****
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version 2
  7. * of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software Foundation,
  16. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. *
  18. * ***** END GPL LICENSE BLOCK *****
  19. */
  20. #ifndef __BKE_BLENDER_COPYBUFFER_H__
  21. #define __BKE_BLENDER_COPYBUFFER_H__
  22. /** \file BKE_blender_copybuffer.h
  23. * \ingroup bke
  24. */
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. struct bContext;
  29. struct ReportList;
  30. struct Main;
  31. struct ID;
  32. /* copybuffer (wrapper for BKE_blendfile_write_partial) */
  33. void BKE_copybuffer_begin(struct Main *bmain_src);
  34. void BKE_copybuffer_tag_ID(struct ID *id);
  35. bool BKE_copybuffer_save(struct Main *bmain_src, const char *filename, struct ReportList *reports);
  36. bool BKE_copybuffer_read(struct Main *bmain_dst, const char *libname, struct ReportList *reports);
  37. bool BKE_copybuffer_paste(struct bContext *C, const char *libname, const short flag, struct ReportList *reports);
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* __BKE_BLENDER_COPYBUFFER_H__ */