diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-07-01 16:41:36 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-07-02 16:57:30 -0400 |
| commit | 88ec179d9519221744240e347bc94da09bbc2157 (patch) | |
| tree | 4f9b5837340a0f87fae69a5c29fcf3467a15d775 /binaryninjaapi.h | |
| parent | 10c88f331e8d74e7c9aad3c67518fb4eb8386da9 (diff) | |
expose Settings 'Set' APIs to C++
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index f2fa1e07..3eb8b82e 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -2881,6 +2881,32 @@ namespace BinaryNinja static bool IsIntegerList(const std::string& settingGroup, const std::string& name); static bool IsStringList(const std::string& settingGroup, const std::string& name); static bool IsDouble(const std::string& settingGroup, const std::string& name); + + static bool Set(const std::string& settingGroup, + const std::string& name, + bool value, + bool autoFlush=true); + static bool Set(const std::string& settingGroup, + const std::string& name, + uint64_t value, + bool autoFlush=true); + static bool Set(const std::string& settingGroup, + const std::string& name, + const std::string& value, + bool autoFlush=true); + static bool Set(const std::string& settingGroup, + const std::string& name, + const std::vector<uint64_t>& value, + bool autoFlush=true); + static bool Set(const std::string& settingGroup, + const std::string& name, + const std::vector<std::string>& value, + bool autoFlush=true); + static bool Set(const std::string& settingGroup, + const std::string& name, + double value, + bool autoFlush=true); + static bool FlushSettings(); }; typedef BNMetadataType MetadataType; |
