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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-06-13 18:42:31 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-06-13 18:42:31 +0300
commitf02e04f1338a84ed1a02734854c83244b9fd0002 (patch)
treee8e9a7c9b8ca96ef4272978086422bbb6cbe4a28 /source/blender/blenkernel/BKE_library.h
parent6becdf5d001bdad59b2d191d2ebff5f5da115014 (diff)
Add utility function to get size of given ID type
Optionally it'll also give name used for memory allocation.
Diffstat (limited to 'source/blender/blenkernel/BKE_library.h')
-rw-r--r--source/blender/blenkernel/BKE_library.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_library.h b/source/blender/blenkernel/BKE_library.h
index 6649cfbb585..e74f33d9260 100644
--- a/source/blender/blenkernel/BKE_library.h
+++ b/source/blender/blenkernel/BKE_library.h
@@ -50,6 +50,7 @@ struct bContext;
struct PointerRNA;
struct PropertyRNA;
+size_t BKE_libblock_get_alloc_info(short type, const char **name);
void *BKE_libblock_alloc_notest(short type);
void *BKE_libblock_alloc(struct Main *bmain, short type, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
void BKE_libblock_init_empty(struct ID *id);