From 25225943a03b300a4e37b1dd830e80647c6d10b5 Mon Sep 17 00:00:00 2001 From: Nivedita Sarkar Date: Tue, 30 Jan 2024 13:18:11 -0800 Subject: [PATCH] Make AttributeNullabilityType enum private --- .../door-lock-server/door-lock-server.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/app/clusters/door-lock-server/door-lock-server.h b/src/app/clusters/door-lock-server/door-lock-server.h index c635c339fa7b98..675a1450baf28a 100644 --- a/src/app/clusters/door-lock-server/door-lock-server.h +++ b/src/app/clusters/door-lock-server/door-lock-server.h @@ -78,14 +78,6 @@ static constexpr size_t DOOR_LOCK_MAX_USER_NAME_SIZE = 10; /**< Maximum size of static constexpr size_t DOOR_LOCK_USER_NAME_BUFFER_SIZE = DOOR_LOCK_MAX_USER_NAME_SIZE + 1; /**< Maximum size of the user name string (in bytes). */ -enum class AttributeNullabilityType : uint8_t -{ - kNullable = 0, - /**< Used to indicate if an attribute can be nullable */ - kNotNullable = 1, - /**< Used to indicate if an attribute is not nullable */ -}; - struct EmberAfPluginDoorLockCredentialInfo; struct EmberAfPluginDoorLockUserInfo; @@ -587,6 +579,15 @@ class DoorLockServer : public chip::app::AttributeAccessInterface chip::app::AttributeValueEncoder & aEncoder, chip::app::Clusters::DoorLock::Delegate * delegate); + /** + * @brief Indicates whether an attribute can be nullable or not. + */ + enum class AttributeNullabilityType : uint8_t + { + kNullable = 0, /**< Indicates if an attribute is nullable */ + kNotNullable = 1, /**< Indicates if an attribute is not nullable */ + }; + /** * @brief Utility to read aliro attributes of type ByteSpan *