Skip to content

Commit

Permalink
Apply rename suggestion for unregisterAll...ForEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Apr 12, 2024
1 parent 2ebbfdb commit 84dec17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/AttributeAccessInterfaceRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void unregisterAttributeAccessOverride(AttributeAccessInterface * attrOverride)
UnregisterMatchingAttributeAccessInterfaces([attrOverride](AttributeAccessInterface * entry) { return entry == attrOverride; });
}

void unregisterAttributeAccessOverrideForEndpoint(EmberAfDefinedEndpoint * definedEndpoint)
void unregisterAllAttributeAccessOverridesForEndpoint(EmberAfDefinedEndpoint * definedEndpoint)
{
UnregisterMatchingAttributeAccessInterfaces(
[endpoint = definedEndpoint->endpoint](AttributeAccessInterface * entry) { return entry->MatchesEndpoint(endpoint); });
Expand Down
2 changes: 1 addition & 1 deletion src/app/AttributeAccessInterfaceRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void unregisterAttributeAccessOverride(chip::app::AttributeAccessInterface * att
/**
* Unregister all attribute access interfaces that match this given endpoint.
*/
void unregisterAttributeAccessOverrideForEndpoint(EmberAfDefinedEndpoint * definedEndpoint);
void unregisterAllAttributeAccessOverridesForEndpoint(EmberAfDefinedEndpoint * definedEndpoint);

namespace chip {
namespace app {
Expand Down
2 changes: 1 addition & 1 deletion src/app/util/attribute-storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ static void shutdownEndpoint(EmberAfDefinedEndpoint * definedEndpoint)
// endpoint.
chip::app::InteractionModelEngine::GetInstance()->UnregisterCommandHandlers(definedEndpoint->endpoint);

unregisterAttributeAccessOverrideForEndpoint(definedEndpoint);
unregisterAllAttributeAccessOverridesForEndpoint(definedEndpoint);
}

// Calls the init functions.
Expand Down

0 comments on commit 84dec17

Please sign in to comment.