Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2021-11-10 13:24:59 +0300
committerBastien Montagne <bastien@blender.org>2021-11-23 12:38:51 +0300
commitfbb4a7eb434f57e03fd274b107b466919cdd049a (patch)
tree0c4837d2a47259bfa98a7ee55801801734eaae37 /source/blender/blenkernel/BKE_blendfile_link_append.h
parentf6573560623606301d6e249032f42ca47ae438eb (diff)
BKE link/append: Add optional blendfile handle to libraries.
This enables calling code to deal with the blendfile handle themselves, BKE_blendfile_link then just borrows, uses this handle and does not release it. Needed e.g. for python's libcontext system to use new BKE_blendfile_link_append code. Part of T91414: Unify link/append between WM operators and BPY context manager API, and cleanup usages of `BKE_library_make_local`.
Diffstat (limited to 'source/blender/blenkernel/BKE_blendfile_link_append.h')
-rw-r--r--source/blender/blenkernel/BKE_blendfile_link_append.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_blendfile_link_append.h b/source/blender/blenkernel/BKE_blendfile_link_append.h
index e0e38390a70..2035f69315c 100644
--- a/source/blender/blenkernel/BKE_blendfile_link_append.h
+++ b/source/blender/blenkernel/BKE_blendfile_link_append.h
@@ -23,6 +23,7 @@
extern "C" {
#endif
+struct BlendHandle;
struct ID;
struct Library;
struct LibraryLink_Params;
@@ -50,7 +51,8 @@ void BKE_blendfile_link_append_context_embedded_blendfile_clear(
struct BlendfileLinkAppendContext *lapp_context);
void BKE_blendfile_link_append_context_library_add(struct BlendfileLinkAppendContext *lapp_context,
- const char *libname);
+ const char *libname,
+ struct BlendHandle *blo_handle);
struct BlendfileLinkAppendContextItem *BKE_blendfile_link_append_context_item_add(
struct BlendfileLinkAppendContext *lapp_context,
const char *idname,