diff options
author | Jacques Lucke <jacques@blender.org> | 2020-08-21 13:45:33 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-08-21 13:45:41 +0300 |
commit | 933f0caec65fdbbfbee9ca5f4f2a0b207b619a05 (patch) | |
tree | e3f745c69ec8285a9f9fb2a38b498a4a091549d0 /source/blender/blenkernel/BKE_idprop.h | |
parent | 27f0a19bdc09c785d4ef5f7ac2bcd97018bed489 (diff) |
Blenloader: move IDProperty read/write code to blenkernel
This is part of T76372.
Diffstat (limited to 'source/blender/blenkernel/BKE_idprop.h')
-rw-r--r-- | source/blender/blenkernel/BKE_idprop.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_idprop.h b/source/blender/blenkernel/BKE_idprop.h index 58629cde6ec..c71602e10b2 100644 --- a/source/blender/blenkernel/BKE_idprop.h +++ b/source/blender/blenkernel/BKE_idprop.h @@ -30,6 +30,10 @@ extern "C" { struct ID; struct IDProperty; +struct BlendWriter; +struct BlendDataReader; +struct BlendLibReader; +struct BlendExpander; typedef union IDPropertyTemplate { int i; @@ -196,6 +200,14 @@ void IDP_repr_fn(const IDProperty *prop, void *user_data); void IDP_print(const struct IDProperty *prop); +void IDP_BlendWrite(struct BlendWriter *writer, const struct IDProperty *prop); +void IDP_BlendDataRead_impl(struct BlendDataReader *reader, + IDProperty **prop, + const char *caller_func_id); +#define IDP_BlendDataRead(reader, prop) IDP_BlendDataRead_impl(reader, prop, __func__) +void IDP_BlendLibRead(struct BlendLibReader *reader, IDProperty *prop); +void IDP_BlendExpand(struct BlendExpander *expander, IDProperty *prop); + #ifdef __cplusplus } #endif |