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:
authorCampbell Barton <ideasman42@gmail.com>2018-05-05 15:27:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-05 15:41:25 +0300
commitd3b3df037197d46b608eb38a5dbd6f1d2761ec36 (patch)
tree2fe30727f100f5f89415a25971c228ad44fc0994 /source/blender/blenkernel/BKE_idprop.h
parentd83681807e1ef39228620d10fee22003d753a050 (diff)
IDProp API: add native C repr function
Was using Python which wasn't very efficient (even for logging).
Diffstat (limited to 'source/blender/blenkernel/BKE_idprop.h')
-rw-r--r--source/blender/blenkernel/BKE_idprop.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_idprop.h b/source/blender/blenkernel/BKE_idprop.h
index 48a5db93504..8a2cdd7b37c 100644
--- a/source/blender/blenkernel/BKE_idprop.h
+++ b/source/blender/blenkernel/BKE_idprop.h
@@ -145,8 +145,13 @@ void IDP_RelinkProperty(struct IDProperty *prop);
# define IDP_Id(prop) ((ID *) (prop)->data.pointer)
#endif
-/* for printout/logging only */
-char *IDP_reprN(const struct IDProperty *prop);
+/* Format IDProperty as strings */
+char *IDP_reprN(
+ const struct IDProperty *prop, uint *r_len);
+void IDP_repr_fn(
+ const IDProperty *prop,
+ void (*str_append_fn)(void *user_data, const char *str, uint str_len),
+ void *user_data);
void IDP_print(const struct IDProperty *prop);
#endif /* __BKE_IDPROP_H__ */