[Scenes] Cleanup zap for name support (#29712)
* Added missing checks on feature map for name support attribute in init
* Changed type of NameSupportAttribute to new type
* Fix darwin availability annotations.
* Regenerated zap files
---------
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter
index 3ff6f8d..7874b41 100644
--- a/examples/lighting-app/lighting-common/lighting-app.matter
+++ b/examples/lighting-app/lighting-common/lighting-app.matter
@@ -118,6 +118,10 @@
/** Attributes and commands for scene configuration and manipulation. */
provisional server cluster Scenes = 5 {
+ bitmap CopyModeBitmap : bitmap8 {
+ kCopyAllScenes = 0x1;
+ }
+
bitmap Feature : bitmap32 {
kSceneNames = 0x1;
kExplicit = 0x2;
@@ -125,8 +129,8 @@
kFabricScenes = 0x8;
}
- bitmap ScenesCopyMode : bitmap8 {
- kCopyAllScenes = 0x1;
+ bitmap NameSupportBitmap : bitmap8 {
+ kSceneNames = 0x80;
}
struct AttributeValuePair {
@@ -143,7 +147,7 @@
readonly attribute int8u currentScene = 1;
readonly attribute group_id currentGroup = 2;
readonly attribute boolean sceneValid = 3;
- readonly attribute bitmap8 nameSupport = 4;
+ readonly attribute NameSupportBitmap nameSupport = 4;
readonly attribute nullable node_id lastConfiguredBy = 5;
readonly attribute int16u sceneTableSize = 6;
readonly attribute int8u remainingCapacity = 7;
@@ -205,7 +209,7 @@
}
request struct CopySceneRequest {
- ScenesCopyMode mode = 0;
+ CopyModeBitmap mode = 0;
group_id groupIdentifierFrom = 1;
int8u sceneIdentifierFrom = 2;
group_id groupIdentifierTo = 3;