summaryrefslogtreecommitdiff
path: root/python/settings.py
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2019-05-27 00:51:39 -0400
committerBrian Potchik <brian@vector35.com>2019-05-27 00:51:39 -0400
commit312950417858a9d89446889fdee2e5988a699861 (patch)
tree6cda347356c12d81327ae7b7adcf3b0ddc178645 /python/settings.py
parenta3b1547175eb776498f15ff662ecf309a7af8009 (diff)
Add API to query settings properties.
Diffstat (limited to 'python/settings.py')
-rw-r--r--python/settings.py9
1 files changed, 9 insertions, 0 deletions
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)