diff options
| author | Rusty Wagner <rusty@vector35.com> | 2020-01-13 20:35:50 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2020-02-04 13:59:10 -0500 |
| commit | c34ac521dd6022d522053712833943c699bedb3f (patch) | |
| tree | 2a3e345b65ee506cb6380c317d427157f536d04a /type.cpp | |
| parent | bb1fe1d4b3956f92810c107a35355d2622209c99 (diff) | |
Add registered name to type objects
Diffstat (limited to 'type.cpp')
| -rw-r--r-- | type.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -913,6 +913,15 @@ QualifiedName Type::GetStructureName() const } +Ref<NamedTypeReference> Type::GetRegisteredName() const +{ + BNNamedTypeReference* name = BNGetRegisteredTypeName(m_object); + if (!name) + return nullptr; + return new NamedTypeReference(name); +} + + Ref<Type> Type::WithReplacedStructure(Structure* from, Structure* to) { BNType* result = BNTypeWithReplacedStructure(m_object, from->GetObject(), to->GetObject()); |
