From 29c4896cda6e0933a5acb5402ff9ec4fb9ea7e90 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Thu, 29 Aug 2019 16:50:12 -0400 Subject: Add settings API to query keys and json stringified values. --- binaryninjaapi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'binaryninjaapi.h') 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 Keys(); template T QueryProperty(const std::string& key, const std::string& property); @@ -4560,6 +4561,7 @@ namespace BinaryNinja bool ResetAll(Ref view = nullptr, BNSettingsScope scope = SettingsAutoScope); template T Get(const std::string& key, Ref view = nullptr, BNSettingsScope* scope = nullptr); + std::string GetJson(const std::string& key, Ref view = nullptr, BNSettingsScope* scope = nullptr); bool Set(const std::string& key, bool value, Ref view = nullptr, BNSettingsScope scope = SettingsAutoScope); bool Set(const std::string& key, double value, Ref view = nullptr, BNSettingsScope scope = SettingsAutoScope); -- cgit v1.3.1