summaryrefslogtreecommitdiff
path: root/python/settings.py
diff options
context:
space:
mode:
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)