summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
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 /binaryninjaapi.h
parenta3b1547175eb776498f15ff662ecf309a7af8009 (diff)
Add API to query settings properties.
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 064dd213..e9277d65 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -4314,6 +4314,8 @@ namespace BinaryNinja
bool RegisterGroup(const std::string& group, const std::string& title);
bool RegisterSetting(const std::string& id, const std::string& properties);
+ template<typename T> T QueryProperty(const std::string& id, const std::string& property);
+
bool UpdateProperty(const std::string& id, const std::string& property);
bool UpdateProperty(const std::string& id, const std::string& property, bool value);
bool UpdateProperty(const std::string& id, const std::string& property, double value);
@@ -4345,6 +4347,7 @@ namespace BinaryNinja
};
// explicit specializations
+ template<> std::vector<std::string> Settings::QueryProperty<std::vector<std::string>>(const std::string& id, const std::string& property);
template<> bool Settings::Get<bool>(const std::string& id, Ref<BinaryView> view, BNSettingsScope* scope);
template<> double Settings::Get<double>(const std::string& id, Ref<BinaryView> view, BNSettingsScope* scope);
template<> int64_t Settings::Get<int64_t>(const std::string& id, Ref<BinaryView> view, BNSettingsScope* scope);