Skip to content

Commit

Permalink
Updated back the comments and file layout
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Apr 26, 2024
1 parent bda32ac commit 448c26d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/app/AttributeValueDecoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,15 @@ class AttributeValueDecoder

bool TriedDecode() const { return mTriedDecode; }

const Access::SubjectDescriptor & GetSubjectDescriptor() const { return mSubjectDescriptor; }
/**
* The accessing fabric index for this write interaction.
*/
FabricIndex AccessingFabricIndex() const { return mSubjectDescriptor.fabricIndex; }

FabricIndex AccessingFabricIndex() const { return GetSubjectDescriptor().fabricIndex; }
/**
* The accessing subject descriptor for this write interaction.
*/
const Access::SubjectDescriptor & GetSubjectDescriptor() const { return mSubjectDescriptor; }

private:
TLV::TLVReader & mReader;
Expand Down
3 changes: 3 additions & 0 deletions src/app/AttributeValueEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ class AttributeValueEncoder

const Access::SubjectDescriptor & GetSubjectDescriptor() const { return mSubjectDescriptor; }

/**
* The accessing fabric index for this read or subscribe interaction.
*/
FabricIndex AccessingFabricIndex() const { return GetSubjectDescriptor().fabricIndex; }

/**
Expand Down

0 comments on commit 448c26d

Please sign in to comment.