From c154e1f9400f6a8838405f4a4fd41dbc6f2fcba3 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Mon, 3 Jul 2017 17:58:04 -0400 Subject: Add setting removal APIs, allow negative integers --- binaryninjaapi.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 3eb8b82e..f5850ad0 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -2868,9 +2868,9 @@ namespace BinaryNinja { public: static bool GetBool(const std::string& settingGroup, const std::string& name, bool defaultValue); - static uint64_t GetInteger(const std::string& settingGroup, const std::string& name, uint64_t defaultValue=0); + static int64_t GetInteger(const std::string& settingGroup, const std::string& name, int64_t defaultValue=0); static std::string GetString(const std::string& settingGroup, const std::string& name, const std::string& defaultValue=""); - static std::vector GetIntegerList(const std::string& settingGroup, const std::string& name, const std::vector& defaultValue={}); + static std::vector GetIntegerList(const std::string& settingGroup, const std::string& name, const std::vector& defaultValue={}); static std::vector GetStringList(const std::string& settingGroup, const std::string& name, const std::vector& defaultValue={}); static double GetDouble(const std::string& settingGroup, const std::string& name, double defaultValue=0.0); @@ -2888,7 +2888,7 @@ namespace BinaryNinja bool autoFlush=true); static bool Set(const std::string& settingGroup, const std::string& name, - uint64_t value, + int64_t value, bool autoFlush=true); static bool Set(const std::string& settingGroup, const std::string& name, @@ -2896,7 +2896,7 @@ namespace BinaryNinja bool autoFlush=true); static bool Set(const std::string& settingGroup, const std::string& name, - const std::vector& value, + const std::vector& value, bool autoFlush=true); static bool Set(const std::string& settingGroup, const std::string& name, @@ -2906,6 +2906,9 @@ namespace BinaryNinja const std::string& name, double value, bool autoFlush=true); + + static bool RemoveSettingGroup(const std::string& settingGroup, bool autoFlush=true); + static bool RemoveSetting(const std::string& settingGroup, const std::string& setting, bool autoFlush=true); static bool FlushSettings(); }; -- cgit v1.3.1