diff options
Diffstat (limited to 'source/blender/makesdna/intern/dna_utils.h')
-rw-r--r-- | source/blender/makesdna/intern/dna_utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/dna_utils.h b/source/blender/makesdna/intern/dna_utils.h index d7cf4212971..1a1f5201310 100644 --- a/source/blender/makesdna/intern/dna_utils.h +++ b/source/blender/makesdna/intern/dna_utils.h @@ -21,6 +21,7 @@ #define __DNA_UTILS_H__ struct MemArena; +struct GHash; int DNA_elem_array_size(const char *str); @@ -39,4 +40,13 @@ char *DNA_elem_id_rename( const char *elem_full_src, const int elem_full_src_len, const uint elem_full_offset_start); +/* When requesting version info, support both directions. */ +enum eDNA_RenameDir { + DNA_RENAME_STATIC_FROM_ALIAS = -1, + DNA_RENAME_ALIAS_FROM_STATIC = 1, +}; +void DNA_alias_maps( + enum eDNA_RenameDir version_dir, + struct GHash **r_struct_map, struct GHash **r_elem_map); + #endif /* __DNA_UTILS_H__ */ |