From bd163fb24e4ad95c82d769838c54b46b31262a0f Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Fri, 20 Jun 2025 16:05:02 -0400 Subject: Update the Settings IsEmpty API for querying resources. --- binaryninjaapi.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'binaryninjaapi.h') 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 view = nullptr, BNSettingsScope scope = SettingsAutoScope); std::string SerializeSettings(Ref view = nullptr, BNSettingsScope scope = SettingsAutoScope); + bool IsEmpty(Ref view, BNSettingsScope scope = SettingsAutoScope); bool Reset(const std::string& key, Ref view = nullptr, BNSettingsScope scope = SettingsAutoScope); bool ResetAll( Ref view = nullptr, BNSettingsScope scope = SettingsAutoScope, bool schemaOnly = true); @@ -17210,6 +17212,7 @@ namespace BinaryNinja { bool DeserializeSettings(const std::string& contents, Ref func, BNSettingsScope scope = SettingsAutoScope); std::string SerializeSettings(Ref func, BNSettingsScope scope = SettingsAutoScope); + bool IsEmpty(Ref func, BNSettingsScope scope = SettingsAutoScope); bool Reset(const std::string& key, Ref func, BNSettingsScope scope = SettingsAutoScope); bool ResetAll(Ref func, BNSettingsScope scope = SettingsAutoScope, bool schemaOnly = true); -- cgit v1.3.1