From 02023064fc5e112985035a9c0b3dc0957cdfda02 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sun, 11 Aug 2019 23:04:17 -0400 Subject: Eliminate mandatory ephemeral view creation during open with options. --- binaryninjaapi.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index b67ea0a2..20db0aef 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1698,8 +1698,8 @@ namespace BinaryNinja std::vector GetRawMetadata(const std::string& key); uint64_t GetUIntMetadata(const std::string& key); - Ref GetLoadSettings(std::string typeName); - void SetLoadSettings(std::string typeName, Ref settings); + Ref GetLoadSettings(const std::string& typeName); + void SetLoadSettings(const std::string& typeName, Ref settings); BNAnalysisParameters GetParametersForAnalysis(); void SetParametersForAnalysis(BNAnalysisParameters params); @@ -4531,9 +4531,12 @@ namespace BinaryNinja static Ref Instance(const std::string& schemaId = ""); virtual ~Settings() {} + void SetResourceId(const std::string& resourceId = ""); + bool RegisterGroup(const std::string& group, const std::string& title); bool RegisterSetting(const std::string& key, const std::string& properties); bool Contains(const std::string& key); + bool IsEmpty(); template T QueryProperty(const std::string& key, const std::string& property); -- cgit v1.3.1