summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2019-08-11 23:04:17 -0400
committerBrian Potchik <brian@vector35.com>2019-08-11 23:04:17 -0400
commit02023064fc5e112985035a9c0b3dc0957cdfda02 (patch)
tree9fb0048fd2ecac09311cb4dc153f7a43be03f669 /binaryninjaapi.h
parent472cbb7a1cb3b51846abd3bda810c5dcc644acd7 (diff)
Eliminate mandatory ephemeral view creation during open with options.
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h7
1 files changed, 5 insertions, 2 deletions
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<uint8_t> GetRawMetadata(const std::string& key);
uint64_t GetUIntMetadata(const std::string& key);
- Ref<Settings> GetLoadSettings(std::string typeName);
- void SetLoadSettings(std::string typeName, Ref<Settings> settings);
+ Ref<Settings> GetLoadSettings(const std::string& typeName);
+ void SetLoadSettings(const std::string& typeName, Ref<Settings> settings);
BNAnalysisParameters GetParametersForAnalysis();
void SetParametersForAnalysis(BNAnalysisParameters params);
@@ -4531,9 +4531,12 @@ namespace BinaryNinja
static Ref<Settings> 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<typename T> T QueryProperty(const std::string& key, const std::string& property);