diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-05 15:42:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-05 15:42:15 +0300 |
commit | 29aa531e5137b9c16b04857a7b66385e78486342 (patch) | |
tree | cdec8833f0f3f96b40dd0e44e970c24ce7f131a2 /source/blender/blenkernel/BKE_idprop.h | |
parent | f91e9529dacb21ef709e7fd1ef8f989731a5a2f3 (diff) | |
parent | d3b3df037197d46b608eb38a5dbd6f1d2761ec36 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/blenkernel/BKE_idprop.h')
-rw-r--r-- | source/blender/blenkernel/BKE_idprop.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_idprop.h b/source/blender/blenkernel/BKE_idprop.h index c686fa41e7e..94630eaa7b0 100644 --- a/source/blender/blenkernel/BKE_idprop.h +++ b/source/blender/blenkernel/BKE_idprop.h @@ -152,8 +152,13 @@ void IDP_Reset(IDProperty *prop, const IDProperty *reference); # 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); #ifdef __cplusplus |