From 88ec179d9519221744240e347bc94da09bbc2157 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Sat, 1 Jul 2017 16:41:36 -0400 Subject: expose Settings 'Set' APIs to C++ --- binaryninjaapi.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'binaryninjaapi.h') 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& value, + bool autoFlush=true); + static bool Set(const std::string& settingGroup, + const std::string& name, + const std::vector& 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; -- cgit v1.3.1