diff options
| author | Brian Potchik <brian@vector35.com> | 2019-08-29 16:50:12 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2019-08-29 16:50:12 -0400 |
| commit | 29c4896cda6e0933a5acb5402ff9ec4fb9ea7e90 (patch) | |
| tree | 6bfb03a6c579e8df31078253d6ad8cdbaa2ec626 /binaryninjaapi.h | |
| parent | 6b0c2d2c4c0af274743f12ee523703d624529383 (diff) | |
Add settings API to query keys and json stringified values.
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 20db0aef..7e18a259 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -4537,6 +4537,7 @@ namespace BinaryNinja bool RegisterSetting(const std::string& key, const std::string& properties); bool Contains(const std::string& key); bool IsEmpty(); + std::vector<std::string> Keys(); template<typename T> T QueryProperty(const std::string& key, const std::string& property); @@ -4560,6 +4561,7 @@ namespace BinaryNinja bool ResetAll(Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope); template<typename T> T Get(const std::string& key, Ref<BinaryView> view = nullptr, BNSettingsScope* scope = nullptr); + std::string GetJson(const std::string& key, Ref<BinaryView> view = nullptr, BNSettingsScope* scope = nullptr); bool Set(const std::string& key, bool value, Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope); bool Set(const std::string& key, double value, Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope); |
