summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-05-25 19:51:45 -0400
committerPeter LaFosse <peter@vector35.com>2017-05-25 19:51:52 -0400
commitd7cb0b3acc0621aa69061d0d1199ac33c664e58f (patch)
tree9a0cda4bd39ca7ba7d88821ba7d2ee17db47c41d /type.cpp
parent18c3e2e49ceef496d272f6bcbf81b0d768f29acb (diff)
Modify how structures are created in the type system, expose additional structure APIs
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/type.cpp b/type.cpp
index 5dd00cbd..6e55bb69 100644
--- a/type.cpp
+++ b/type.cpp
@@ -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);
}