Skip to content

Commit f6d0f1c

Browse files
committed
Remove BitFlags from Provider
1 parent 7bf10ca commit f6d0f1c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/app/data-model-provider/Provider.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ class Provider : public ProviderMetadataTree
8383
/// Write operation or after the last one of a series of consecutive attribute data of the same attribute.
8484
///
8585
/// 1) This function will be called if the client tries to set a nullable list attribute to null.
86-
/// 2) This function will only be called at the beginning and end of a series of consecutive attribute data
86+
/// 2) This function will only be called at the beginning and end of a series of consecutive attribute data
8787
/// blocks for the same attribute, no matter what list operations those data blocks represent.
8888
/// 3) The opType argument indicates the type of notification (Start, Failure, Success).
89-
virtual void ListAttributeWriteNotification(const ConcreteAttributePath & aPath, BitFlags<ListWriteOperation> opType) = 0;
89+
virtual void ListAttributeWriteNotification(const ConcreteAttributePath & aPath, ListWriteOperation opType) = 0;
9090

9191
/// `handler` is used to send back the reply.
9292
/// - returning `std::nullopt` means that return value was placed in handler directly.

src/data-model-providers/codegen/CodegenDataModelProvider.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ class CodegenDataModelProvider : public DataModel::Provider
6363
AttributeValueEncoder & encoder) override;
6464
DataModel::ActionReturnStatus WriteAttribute(const DataModel::WriteAttributeRequest & request,
6565
AttributeValueDecoder & decoder) override;
66-
void ListAttributeWriteNotification(const ConcreteAttributePath & aPath,
67-
BitFlags<DataModel::ListWriteOperation> opType) override;
66+
void ListAttributeWriteNotification(const ConcreteAttributePath & aPath, DataModel::ListWriteOperation opType) override;
6867
std::optional<DataModel::ActionReturnStatus> Invoke(const DataModel::InvokeRequest & request, TLV::TLVReader & input_arguments,
6968
CommandHandler * handler) override;
7069

src/data-model-providers/codegen/CodegenDataModelProvider_Write.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ DataModel::ActionReturnStatus CodegenDataModelProvider::WriteAttribute(const Dat
199199
}
200200

201201
void CodegenDataModelProvider::ListAttributeWriteNotification(const ConcreteAttributePath & aPath,
202-
BitFlags<DataModel::ListWriteOperation> opType)
202+
DataModel::ListWriteOperation opType)
203203
{
204204
AttributeAccessInterface * aai = AttributeAccessInterfaceRegistry::Instance().Get(aPath.mEndpointId, aPath.mClusterId);
205205

0 commit comments

Comments
 (0)