From 312950417858a9d89446889fdee2e5988a699861 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Mon, 27 May 2019 00:51:39 -0400 Subject: Add API to query settings properties. --- python/settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'python/settings.py') diff --git a/python/settings.py b/python/settings.py index 61c1c771..92136460 100644 --- a/python/settings.py +++ b/python/settings.py @@ -66,6 +66,15 @@ class Settings(object): """ return core.BNSettingsRegisterSetting(self.registry_id, id, properties) + def query_property_string_list(self, id, property_name): + length = ctypes.c_ulonglong() + result = core.BNSettingsQueryPropertyStringList(self.registry_id, id, property_name, ctypes.byref(length)) + out_list = [] + for i in range(length.value): + out_list.append(pyNativeStr(result[i])) + core.BNFreeStringList(result, length) + return out_list + def update_property(self, id, setting_property): return core.BNSettingsUpdateProperty(self.registry_id, tr(), id, setting_property) -- cgit v1.3.1