summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2018-11-21 18:43:14 -0500
committerBrian Potchik <brian@vector35.com>2018-11-21 18:43:14 -0500
commit5b9c47a16f30c36e5ba992c72b50984d2be2c4fc (patch)
tree36f1d1ff63720bf0edf8c52bae2572055b487af1 /binaryninjaapi.h
parent419a05cf5227029a5fe69799a7f7466a6b60d849 (diff)
Add ability to serialize/deserialize settings from BinaryViews.
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index f907db01..80fbfe75 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -4253,6 +4253,8 @@ namespace BinaryNinja
bool UpdateProperty(const std::string& id, const std::string& property, const std::vector<std::string>& value);
std::string GetSchema();
+ bool DeserializeSettings(const std::string& contents, Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope);
+ std::string SerializeSettings(Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope);
bool Reset(const std::string& id, Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope);
bool ResetAll(Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope);