summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2019-04-05 21:55:47 -0400
committerPeter LaFosse <peter@vector35.com>2019-04-07 18:19:49 -0400
commite34e52c2f797c9b97b592abb311e3a5bc2194b4a (patch)
tree713307be0740705debbd5a3ca62abc6234b510d8 /python/binaryview.py
parent5de327770ec8c3f1aca9c774d850442edb9a3610 (diff)
Add API for geting a list of type names without the associated objects
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 373823c8..c92a9120 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -1197,6 +1197,17 @@ class BinaryView(object):
return result
@property
+ def type_names(self):
+ """List of defined type names (read-only)"""
+ count = ctypes.c_ulonglong(0)
+ name_list = core.BNGetAnalysisTypeNames(self.handle, count, "")
+ result = []
+ for i in range(0, count.value):
+ result.append(types.QualifiedName._from_core_struct(name_list[i]))
+ core.BNFreeTypeNameList(name_list, count.value)
+ return result
+
+ @property
def segments(self):
"""List of segments (read-only)"""
count = ctypes.c_ulonglong(0)