From 5d01e8e553280f1f9e7676ea32af183f6e23efd7 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 11 Sep 2019 11:38:45 -0400 Subject: Add ability to open a database with options. --- python/binaryview.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'python/binaryview.py') 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: -- cgit v1.3.1