Skip to content

Commit

Permalink
Add MatchesFabricIndex method to codec (#13881)
Browse files Browse the repository at this point in the history
Needed for proper fabric-filtered read operation, at least until
we restructure encode/decode to use more of the generated types.
  • Loading branch information
mlepage-google authored and pull[bot] committed Jan 25, 2024
1 parent 7c64346 commit 2393201
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/app/clusters/access-control-server/access-control-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,16 @@ struct AccessControlEntryCodec
return CHIP_NO_ERROR;
}

bool MatchesFabricIndex(FabricIndex fabricIndex) const
{
FabricIndex entryFabricIndex;
if (entry.GetFabricIndex(entryFabricIndex) == CHIP_NO_ERROR)
{
return fabricIndex == entryFabricIndex;
}
return false;
}

AccessControl::Entry entry;
};

Expand Down

0 comments on commit 2393201

Please sign in to comment.