summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2025-06-20 16:05:02 -0400
committerBrian Potchik <brian@vector35.com>2025-06-20 16:05:02 -0400
commitbd163fb24e4ad95c82d769838c54b46b31262a0f (patch)
tree89b8fbdbdd6f48bae17b23beb6a32bec65f62f92 /binaryninjaapi.h
parent55b3ce7de85ef38158e0a248105d3eb2a8562871 (diff)
Update the Settings IsEmpty API for querying resources.
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 2dc9b899..920d2eb0 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -17125,9 +17125,10 @@ namespace BinaryNinja {
/*! Determine if the active settings schema is empty
+ \param scope the settings scope to check, defaults to SettingsAutoScope
\return True if the active settings schema is empty, False otherwise
*/
- bool IsEmpty();
+ bool IsEmpty(BNSettingsScope scope = SettingsAutoScope);
/*! Retrieve the list of setting identifiers in the active settings schema
@@ -17154,6 +17155,7 @@ namespace BinaryNinja {
const std::string& contents, Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope);
std::string SerializeSettings(Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope);
+ bool IsEmpty(Ref<BinaryView> view, BNSettingsScope scope = SettingsAutoScope);
bool Reset(const std::string& key, Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope);
bool ResetAll(
Ref<BinaryView> view = nullptr, BNSettingsScope scope = SettingsAutoScope, bool schemaOnly = true);
@@ -17210,6 +17212,7 @@ namespace BinaryNinja {
bool DeserializeSettings(const std::string& contents, Ref<Function> func, BNSettingsScope scope = SettingsAutoScope);
std::string SerializeSettings(Ref<Function> func, BNSettingsScope scope = SettingsAutoScope);
+ bool IsEmpty(Ref<Function> func, BNSettingsScope scope = SettingsAutoScope);
bool Reset(const std::string& key, Ref<Function> func, BNSettingsScope scope = SettingsAutoScope);
bool ResetAll(Ref<Function> func, BNSettingsScope scope = SettingsAutoScope, bool schemaOnly = true);