summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2017-07-03 17:58:04 -0400
committerPeter LaFosse <peter@vector35.com>2017-07-03 17:58:04 -0400
commitc154e1f9400f6a8838405f4a4fd41dbc6f2fcba3 (patch)
treea8d6b6164fd31dc442962d263c826d27b8349a26 /binaryninjaapi.h
parent88ec179d9519221744240e347bc94da09bbc2157 (diff)
Add setting removal APIs, allow negative integers
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h11
1 files changed, 7 insertions, 4 deletions
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<uint64_t> GetIntegerList(const std::string& settingGroup, const std::string& name, const std::vector<uint64_t>& defaultValue={});
+ static std::vector<int64_t> GetIntegerList(const std::string& settingGroup, const std::string& name, const std::vector<int64_t>& defaultValue={});
static std::vector<std::string> GetStringList(const std::string& settingGroup, const std::string& name, const std::vector<std::string>& 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<uint64_t>& value,
+ const std::vector<int64_t>& 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();
};