diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index ec8ef140c3db94..3ce4f8352bffc2 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -3227,7 +3227,14 @@ server cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ server cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : enum8 { + enum PlaybackStateEnum : enum8 { + kPlaying = 0; + kPaused = 1; + kNotPlaying = 2; + kBuffering = 3; + } + + enum StatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -3236,13 +3243,6 @@ server cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : enum8 { - kPlaying = 0; - kPaused = 1; - kNotPlaying = 2; - kBuffering = 3; - } - bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; @@ -3262,7 +3262,7 @@ server cluster MediaPlayback = 1286 { readonly attribute int16u clusterRevision = 65533; response struct PlaybackResponse = 10 { - MediaPlaybackStatusEnum status = 0; + StatusEnum status = 0; optional char_string data = 1; } diff --git a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter index 2d61f49ec83443..99285653fb5c39 100644 --- a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter +++ b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter @@ -1198,7 +1198,14 @@ server cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ server cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : enum8 { + enum PlaybackStateEnum : enum8 { + kPlaying = 0; + kPaused = 1; + kNotPlaying = 2; + kBuffering = 3; + } + + enum StatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -1207,13 +1214,6 @@ server cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : enum8 { - kPlaying = 0; - kPaused = 1; - kNotPlaying = 2; - kBuffering = 3; - } - bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; @@ -1233,7 +1233,7 @@ server cluster MediaPlayback = 1286 { readonly attribute int16u clusterRevision = 65533; response struct PlaybackResponse = 10 { - MediaPlaybackStatusEnum status = 0; + StatusEnum status = 0; optional char_string data = 1; } diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 6a9706415d79c4..e9d63cf6bccc28 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -5501,7 +5501,14 @@ server cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ client cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : enum8 { + enum PlaybackStateEnum : enum8 { + kPlaying = 0; + kPaused = 1; + kNotPlaying = 2; + kBuffering = 3; + } + + enum StatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -5510,13 +5517,6 @@ client cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : enum8 { - kPlaying = 0; - kPaused = 1; - kNotPlaying = 2; - kBuffering = 3; - } - bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; @@ -5550,7 +5550,7 @@ client cluster MediaPlayback = 1286 { } response struct PlaybackResponse = 10 { - MediaPlaybackStatusEnum status = 0; + StatusEnum status = 0; optional char_string data = 1; } @@ -5584,7 +5584,14 @@ client cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ server cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : enum8 { + enum PlaybackStateEnum : enum8 { + kPlaying = 0; + kPaused = 1; + kNotPlaying = 2; + kBuffering = 3; + } + + enum StatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -5593,13 +5600,6 @@ server cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : enum8 { - kPlaying = 0; - kPaused = 1; - kNotPlaying = 2; - kBuffering = 3; - } - bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; @@ -5637,7 +5637,7 @@ server cluster MediaPlayback = 1286 { } response struct PlaybackResponse = 10 { - MediaPlaybackStatusEnum status = 0; + StatusEnum status = 0; optional char_string data = 1; } diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index c5397194a84ee9..b6ea2125074b4f 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -5460,7 +5460,14 @@ server cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ client cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : enum8 { + enum PlaybackStateEnum : enum8 { + kPlaying = 0; + kPaused = 1; + kNotPlaying = 2; + kBuffering = 3; + } + + enum StatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -5469,13 +5476,6 @@ client cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : enum8 { - kPlaying = 0; - kPaused = 1; - kNotPlaying = 2; - kBuffering = 3; - } - bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; @@ -5509,7 +5509,7 @@ client cluster MediaPlayback = 1286 { } response struct PlaybackResponse = 10 { - MediaPlaybackStatusEnum status = 0; + StatusEnum status = 0; optional char_string data = 1; } @@ -5543,7 +5543,14 @@ client cluster MediaPlayback = 1286 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ server cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : enum8 { + enum PlaybackStateEnum : enum8 { + kPlaying = 0; + kPaused = 1; + kNotPlaying = 2; + kBuffering = 3; + } + + enum StatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -5552,13 +5559,6 @@ server cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : enum8 { - kPlaying = 0; - kPaused = 1; - kNotPlaying = 2; - kBuffering = 3; - } - bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; @@ -5596,7 +5596,7 @@ server cluster MediaPlayback = 1286 { } response struct PlaybackResponse = 10 { - MediaPlaybackStatusEnum status = 0; + StatusEnum status = 0; optional char_string data = 1; } diff --git a/examples/tv-app/android/include/media-playback/AppMediaPlaybackManager.cpp b/examples/tv-app/android/include/media-playback/AppMediaPlaybackManager.cpp index 564779a62affd8..0fe5e9d63d4f6f 100644 --- a/examples/tv-app/android/include/media-playback/AppMediaPlaybackManager.cpp +++ b/examples/tv-app/android/include/media-playback/AppMediaPlaybackManager.cpp @@ -165,7 +165,7 @@ Commands::PlaybackResponse::Type AppMediaPlaybackManager::HandleMediaRequest(Med // Ideally should not come here ChipLogProgress(Zcl, "AppMediaPlaybackManager::HandleMediaRequest"); Commands::PlaybackResponse::Type response; - response.status = MediaPlaybackStatusEnum::kInvalidStateForCommand; + response.status = StatusEnum::kInvalidStateForCommand; return response; } diff --git a/examples/tv-app/android/java/ContentAppCommandDelegate.cpp b/examples/tv-app/android/java/ContentAppCommandDelegate.cpp index 1ad6ef2fa40311..0d232d716bae0a 100644 --- a/examples/tv-app/android/java/ContentAppCommandDelegate.cpp +++ b/examples/tv-app/android/java/ContentAppCommandDelegate.cpp @@ -302,7 +302,7 @@ PlaybackResponseType ContentAppCommandDelegate::FormatMediaPlaybackResponse(Json } else { - playbackResponse.status = static_cast(value[statusFieldId].asInt()); + playbackResponse.status = static_cast(value[statusFieldId].asInt()); std::string dataFieldId = std::to_string(to_underlying(app::Clusters::MediaPlayback::Commands::PlaybackResponse::Fields::kData)); if (!value[dataFieldId].empty()) diff --git a/examples/tv-app/android/java/MediaPlaybackManager.cpp b/examples/tv-app/android/java/MediaPlaybackManager.cpp index c1e92fe51b9aa3..53a7066551cd22 100644 --- a/examples/tv-app/android/java/MediaPlaybackManager.cpp +++ b/examples/tv-app/android/java/MediaPlaybackManager.cpp @@ -277,14 +277,14 @@ Commands::PlaybackResponse::Type MediaPlaybackManager::HandleMediaRequest(MediaP ChipLogError(AppServer, "Java exception in MediaPlaybackManager::Request %d", mediaPlaybackRequest); env->ExceptionDescribe(); env->ExceptionClear(); - response.status = MediaPlaybackStatusEnum::kInvalidStateForCommand; + response.status = StatusEnum::kInvalidStateForCommand; } - response.status = static_cast(ret); + response.status = static_cast(ret); exit: if (err != CHIP_NO_ERROR) { - response.status = MediaPlaybackStatusEnum::kInvalidStateForCommand; + response.status = StatusEnum::kInvalidStateForCommand; ChipLogError(Zcl, "MediaPlaybackManager::HandleMediaRequest status error: %s", err.AsString()); } diff --git a/examples/tv-app/tv-common/clusters/media-playback/MediaPlaybackManager.cpp b/examples/tv-app/tv-common/clusters/media-playback/MediaPlaybackManager.cpp index 4fffd610ddde6f..6d018d6522ede8 100644 --- a/examples/tv-app/tv-common/clusters/media-playback/MediaPlaybackManager.cpp +++ b/examples/tv-app/tv-common/clusters/media-playback/MediaPlaybackManager.cpp @@ -68,7 +68,7 @@ void MediaPlaybackManager::HandlePlay(CommandResponseHelper This command SHALL be generated in response to various Playback Request commands. - + @@ -104,7 +104,7 @@ limitations under the License. - + diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index a114961e81e089..86144d0ee763dc 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -5974,7 +5974,14 @@ client cluster TargetNavigator = 1285 { /** This cluster provides an interface for controlling Media Playback (PLAY, PAUSE, etc) on a media device such as a TV or Speaker. */ client cluster MediaPlayback = 1286 { - enum MediaPlaybackStatusEnum : enum8 { + enum PlaybackStateEnum : enum8 { + kPlaying = 0; + kPaused = 1; + kNotPlaying = 2; + kBuffering = 3; + } + + enum StatusEnum : enum8 { kSuccess = 0; kInvalidStateForCommand = 1; kNotAllowed = 2; @@ -5983,13 +5990,6 @@ client cluster MediaPlayback = 1286 { kSeekOutOfRange = 5; } - enum PlaybackStateEnum : enum8 { - kPlaying = 0; - kPaused = 1; - kNotPlaying = 2; - kBuffering = 3; - } - bitmap Feature : bitmap32 { kAdvancedSeek = 0x1; kVariableSpeed = 0x2; @@ -6023,7 +6023,7 @@ client cluster MediaPlayback = 1286 { } response struct PlaybackResponse = 10 { - MediaPlaybackStatusEnum status = 0; + StatusEnum status = 0; optional char_string data = 1; } diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index e26648d9ccd20d..eb73af290d3ac2 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -33612,7 +33612,18 @@ def descriptor(cls) -> ClusterObjectDescriptor: clusterRevision: 'uint' = None class Enums: - class MediaPlaybackStatusEnum(MatterIntEnum): + class PlaybackStateEnum(MatterIntEnum): + kPlaying = 0x00 + kPaused = 0x01 + kNotPlaying = 0x02 + kBuffering = 0x03 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 4, + + class StatusEnum(MatterIntEnum): kSuccess = 0x00 kInvalidStateForCommand = 0x01 kNotAllowed = 0x02 @@ -33625,17 +33636,6 @@ class MediaPlaybackStatusEnum(MatterIntEnum): # enum value. This specific should never be transmitted. kUnknownEnumValue = 6, - class PlaybackStateEnum(MatterIntEnum): - kPlaying = 0x00 - kPaused = 0x01 - kNotPlaying = 0x02 - kBuffering = 0x03 - # All received enum values that are not listed above will be mapped - # to kUnknownEnumValue. This is a helper enum value that should only - # be used by code to process how it handles receiving and unknown - # enum value. This specific should never be transmitted. - kUnknownEnumValue = 4, - class Bitmaps: class Feature(IntFlag): kAdvancedSeek = 0x1 @@ -33803,11 +33803,11 @@ class PlaybackResponse(ClusterCommand): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=MediaPlayback.Enums.MediaPlaybackStatusEnum), + ClusterObjectFieldDescriptor(Label="status", Tag=0, Type=MediaPlayback.Enums.StatusEnum), ClusterObjectFieldDescriptor(Label="data", Tag=1, Type=typing.Optional[str]), ]) - status: 'MediaPlayback.Enums.MediaPlaybackStatusEnum' = 0 + status: 'MediaPlayback.Enums.StatusEnum' = 0 data: 'typing.Optional[str]' = None @dataclass diff --git a/src/darwin/Framework/CHIP/templates/availability.yaml b/src/darwin/Framework/CHIP/templates/availability.yaml index e79ccb23af13ed..60cd3ac3dae78f 100644 --- a/src/darwin/Framework/CHIP/templates/availability.yaml +++ b/src/darwin/Framework/CHIP/templates/availability.yaml @@ -3247,7 +3247,10 @@ TargetNavigator: - TargetNavigatorStatusEnum MediaPlayback: - - MediaPlaybackStatusEnum + # StatusEnum was originally named MediaPlaybackStatusEnum, but we + # generate the same API for the names with/without the cluster + # name at the beginning, so the name can just change here. + - StatusEnum - PlaybackStateEnum MediaInput: - InputTypeEnum @@ -3997,7 +4000,10 @@ - TargetNotFound - NotAllowed MediaPlayback: - MediaPlaybackStatusEnum: + # StatusEnum was originally named MediaPlaybackStatusEnum, but we + # generate the same API for the names with/without the cluster + # name at the beginning, so the name can just change here. + StatusEnum: - Success - InvalidStateForCommand - NotAllowed diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h index bbe527dde793ff..22dcdd51f5c80c 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h @@ -16359,6 +16359,13 @@ typedef NS_ENUM(uint8_t, MTRTargetNavigatorStatus) { MTRTargetNavigatorStatusNotAllowed MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x02, } MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); +typedef NS_ENUM(uint8_t, MTRMediaPlaybackPlaybackState) { + MTRMediaPlaybackPlaybackStatePlaying MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x00, + MTRMediaPlaybackPlaybackStatePaused MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x01, + MTRMediaPlaybackPlaybackStateNotPlaying MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x02, + MTRMediaPlaybackPlaybackStateBuffering MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x03, +} MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); + typedef NS_ENUM(uint8_t, MTRMediaPlaybackStatus) { MTRMediaPlaybackStatusSuccess MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x00, MTRMediaPlaybackStatusInvalidStateForCommand MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x01, @@ -16368,13 +16375,6 @@ typedef NS_ENUM(uint8_t, MTRMediaPlaybackStatus) { MTRMediaPlaybackStatusSeekOutOfRange MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x05, } MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -typedef NS_ENUM(uint8_t, MTRMediaPlaybackPlaybackState) { - MTRMediaPlaybackPlaybackStatePlaying MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x00, - MTRMediaPlaybackPlaybackStatePaused MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x01, - MTRMediaPlaybackPlaybackStateNotPlaying MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x02, - MTRMediaPlaybackPlaybackStateBuffering MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x03, -} MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - typedef NS_OPTIONS(uint32_t, MTRMediaPlaybackFeature) { MTRMediaPlaybackFeatureAdvancedSeek MTR_AVAILABLE(ios(16.2), macos(13.1), watchos(9.2), tvos(16.2)) = 0x1, MTRMediaPlaybackFeatureVariableSpeed MTR_AVAILABLE(ios(16.2), macos(13.1), watchos(9.2), tvos(16.2)) = 0x2, diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h index d6e4be54fbac0e..efe20ce7a401a7 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h @@ -2649,22 +2649,6 @@ static auto __attribute__((unused)) EnsureKnownEnumValue(TargetNavigator::Target } } -static auto __attribute__((unused)) EnsureKnownEnumValue(MediaPlayback::MediaPlaybackStatusEnum val) -{ - using EnumType = MediaPlayback::MediaPlaybackStatusEnum; - switch (val) - { - case EnumType::kSuccess: - case EnumType::kInvalidStateForCommand: - case EnumType::kNotAllowed: - case EnumType::kNotActive: - case EnumType::kSpeedOutOfRange: - case EnumType::kSeekOutOfRange: - return val; - default: - return static_cast(6); - } -} static auto __attribute__((unused)) EnsureKnownEnumValue(MediaPlayback::PlaybackStateEnum val) { using EnumType = MediaPlayback::PlaybackStateEnum; @@ -2679,6 +2663,22 @@ static auto __attribute__((unused)) EnsureKnownEnumValue(MediaPlayback::Playback return static_cast(4); } } +static auto __attribute__((unused)) EnsureKnownEnumValue(MediaPlayback::StatusEnum val) +{ + using EnumType = MediaPlayback::StatusEnum; + switch (val) + { + case EnumType::kSuccess: + case EnumType::kInvalidStateForCommand: + case EnumType::kNotAllowed: + case EnumType::kNotActive: + case EnumType::kSpeedOutOfRange: + case EnumType::kSeekOutOfRange: + return val; + default: + return static_cast(6); + } +} static auto __attribute__((unused)) EnsureKnownEnumValue(MediaInput::InputTypeEnum val) { diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h index e590fed2c81741..559a735f499971 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h @@ -3801,22 +3801,6 @@ enum class TargetNavigatorStatusEnum : uint8_t namespace MediaPlayback { -// Enum for MediaPlaybackStatusEnum -enum class MediaPlaybackStatusEnum : uint8_t -{ - kSuccess = 0x00, - kInvalidStateForCommand = 0x01, - kNotAllowed = 0x02, - kNotActive = 0x03, - kSpeedOutOfRange = 0x04, - kSeekOutOfRange = 0x05, - // All received enum values that are not listed above will be mapped - // to kUnknownEnumValue. This is a helper enum value that should only - // be used by code to process how it handles receiving and unknown - // enum value. This specific should never be transmitted. - kUnknownEnumValue = 6, -}; - // Enum for PlaybackStateEnum enum class PlaybackStateEnum : uint8_t { @@ -3831,6 +3815,22 @@ enum class PlaybackStateEnum : uint8_t kUnknownEnumValue = 4, }; +// Enum for StatusEnum +enum class StatusEnum : uint8_t +{ + kSuccess = 0x00, + kInvalidStateForCommand = 0x01, + kNotAllowed = 0x02, + kNotActive = 0x03, + kSpeedOutOfRange = 0x04, + kSeekOutOfRange = 0x05, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 6, +}; + // Bitmap for Feature enum class Feature : uint32_t { diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index 6ebe298d283b59..f88e598f1bccb0 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -29087,7 +29087,7 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::PlaybackResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } - MediaPlaybackStatusEnum status = static_cast(0); + StatusEnum status = static_cast(0); Optional data; CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; @@ -29103,7 +29103,7 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::PlaybackResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } - MediaPlaybackStatusEnum status = static_cast(0); + StatusEnum status = static_cast(0); Optional data; CHIP_ERROR Decode(TLV::TLVReader & reader); };