summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2019-09-11 11:38:45 -0400
committerBrian Potchik <brian@vector35.com>2019-09-11 11:38:45 -0400
commit5d01e8e553280f1f9e7676ea32af183f6e23efd7 (patch)
tree3b271faab8b8cc76600c84caf7553877fcd7958e /python/binaryview.py
parent162ad8604bdbcb1fb36c899e92f5606cd6f231eb (diff)
Add ability to open a database with options.
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 2732a8d7..b55f9aae 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -4749,8 +4749,8 @@ class BinaryView(object):
def add_user_section(self, name, start, length, semantics = SectionSemantics.DefaultSectionSemantics,
type = "", align = 1, entry_size = 1, linked_section = "", info_section = "", info_data = 0):
"""
- ``add_user_section`` creates a user-defined section that can help inform analysis by clarifying what types of
- data exist in what ranges. Note that all data specified must already be mapped by an existing segment.
+ ``add_user_section`` creates a user-defined section that can help inform analysis by clarifying what types of
+ data exist in what ranges. Note that all data specified must already be mapped by an existing segment.
:param str name: name of the section
:param int start: virtual address of the start of the section
@@ -4905,6 +4905,15 @@ class BinaryView(object):
"""
core.BNBinaryViewRemoveMetadata(self.handle, key)
+ def get_load_settings_type_names(self):
+ result = []
+ count = ctypes.c_ulonglong(0)
+ names = core.BNBinaryViewGetLoadSettingsTypeNames(self.handle, count)
+ for i in range(count.value):
+ result.append(names[i])
+ core.BNFreeStringList(names, count)
+ return result
+
def get_load_settings(self, type_name):
settings_handle = core.BNBinaryViewGetLoadSettings(self.handle, type_name)
if settings_handle is None: