diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-05-25 19:51:45 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-05-25 19:51:52 -0400 |
| commit | d7cb0b3acc0621aa69061d0d1199ac33c664e58f (patch) | |
| tree | 9a0cda4bd39ca7ba7d88821ba7d2ee17db47c41d /type.cpp | |
| parent | 18c3e2e49ceef496d272f6bcbf81b0d768f29acb (diff) | |
Modify how structures are created in the type system, expose additional structure APIs
Diffstat (limited to 'type.cpp')
| -rw-r--r-- | type.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -784,9 +784,9 @@ Structure::Structure() } -Structure::Structure(BNStructureType type, bool isUnion, bool packed) +Structure::Structure(BNStructureType type, bool packed) { - m_object = BNCreateStructureWithOptions(type, isUnion, packed); + m_object = BNCreateStructureWithOptions(type, packed); } @@ -858,9 +858,15 @@ bool Structure::IsUnion() const } -void Structure::SetUnion(bool u) +void Structure::SetStructureType(BNStructureType t) { - BNSetStructureUnion(m_object, u); + BNSetStructureType(m_object, t); +} + + +BNStructureType Structure::GetStructureType() const +{ + return BNGetStructureType(m_object); } |
