Skip to content

Commit

Permalink
Renaming Status Enum in xml and regening (#17813)
Browse files Browse the repository at this point in the history
* Renaming Status Enum in xml and regening
- Renaming the Status enum with the cluster name prefix because we have multiple definitions of Status Enum with the same name and type
- Regerating all the apps after the change

* Changing contentLauncher to contentlaunch

* Cleaning up the status enum renaming in the static code
  • Loading branch information
brdandu authored Apr 27, 2022
1 parent dab97ff commit 73d2d50
Show file tree
Hide file tree
Showing 32 changed files with 645 additions and 605 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ server cluster ApplicationBasic = 1293 {
}

server cluster ApplicationLauncher = 1292 {
enum StatusEnum : ENUM8 {
enum ApplicationLauncherStatusEnum : ENUM8 {
kSuccess = 0;
kAppNotAvailable = 1;
kSystemBusy = 2;
Expand Down Expand Up @@ -339,16 +339,16 @@ server cluster BridgedActions = 37 {
}

server cluster Channel = 1284 {
enum LineupInfoTypeEnum : ENUM8 {
kMso = 0;
}

enum StatusEnum : ENUM8 {
enum ChannelStatusEnum : ENUM8 {
kSuccess = 0;
kMultipleMatches = 1;
kNoMatches = 2;
}

enum LineupInfoTypeEnum : ENUM8 {
kMso = 0;
}

bitmap ChannelFeature : BITMAP32 {
kChannelList = 0x1;
kLineupInfo = 0x2;
Expand Down Expand Up @@ -661,6 +661,12 @@ server cluster ColorControl = 768 {
}

server cluster ContentLauncher = 1290 {
enum ContentLaunchStatusEnum : ENUM8 {
kSuccess = 0;
kUrlNotAvailable = 1;
kAuthFailed = 2;
}

enum MetricTypeEnum : ENUM8 {
kPixels = 0;
kPercentage = 1;
Expand All @@ -682,12 +688,6 @@ server cluster ContentLauncher = 1290 {
kType = 12;
}

enum StatusEnum : ENUM8 {
kSuccess = 0;
kUrlNotAvailable = 1;
kAuthFailed = 2;
}

bitmap ContentLauncherFeature : BITMAP32 {
kContentSearch = 0x1;
kURLPlayback = 0x2;
Expand Down Expand Up @@ -1910,7 +1910,7 @@ server cluster KeypadInput = 1289 {
kData = 118;
}

enum StatusEnum : ENUM8 {
enum KeypadInputStatusEnum : ENUM8 {
kSuccess = 0;
kUnsupportedKey = 1;
kInvalidKeyInCurrentState = 2;
Expand Down Expand Up @@ -2057,14 +2057,7 @@ server cluster MediaInput = 1287 {
}

server cluster MediaPlayback = 1286 {
enum PlaybackStateEnum : ENUM8 {
kPlaying = 0;
kPaused = 1;
kNotPlaying = 2;
kBuffering = 3;
}

enum StatusEnum : ENUM8 {
enum MediaPlaybackStatusEnum : ENUM8 {
kSuccess = 0;
kInvalidStateForCommand = 1;
kNotAllowed = 2;
Expand All @@ -2073,6 +2066,13 @@ server cluster MediaPlayback = 1286 {
kSeekOutOfRange = 5;
}

enum PlaybackStateEnum : ENUM8 {
kPlaying = 0;
kPaused = 1;
kNotPlaying = 2;
kBuffering = 3;
}

readonly attribute PlaybackStateEnum currentState = 0;
readonly attribute nullable epoch_us startTime = 1;
readonly attribute nullable int64u duration = 2;
Expand Down Expand Up @@ -2925,7 +2925,7 @@ server cluster Switch = 59 {
}

server cluster TargetNavigator = 1285 {
enum StatusEnum : ENUM8 {
enum TargetNavigatorStatusEnum : ENUM8 {
kSuccess = 0;
kTargetNotFound = 1;
kNotAllowed = 2;
Expand Down
44 changes: 22 additions & 22 deletions examples/placeholder/linux/apps/app1/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,12 @@ server cluster ColorControl = 768 {
}

client cluster ContentLauncher = 1290 {
enum ContentLaunchStatusEnum : ENUM8 {
kSuccess = 0;
kUrlNotAvailable = 1;
kAuthFailed = 2;
}

enum MetricTypeEnum : ENUM8 {
kPixels = 0;
kPercentage = 1;
Expand All @@ -348,12 +354,6 @@ client cluster ContentLauncher = 1290 {
kType = 12;
}

enum StatusEnum : ENUM8 {
kSuccess = 0;
kUrlNotAvailable = 1;
kAuthFailed = 2;
}

bitmap ContentLauncherFeature : BITMAP32 {
kContentSearch = 0x1;
kURLPlayback = 0x2;
Expand Down Expand Up @@ -420,7 +420,7 @@ client cluster ContentLauncher = 1290 {
}

response struct LaunchResponse = 2 {
StatusEnum status = 0;
ContentLaunchStatusEnum status = 0;
optional CHAR_STRING data = 1;
}

Expand All @@ -429,6 +429,12 @@ client cluster ContentLauncher = 1290 {
}

server cluster ContentLauncher = 1290 {
enum ContentLaunchStatusEnum : ENUM8 {
kSuccess = 0;
kUrlNotAvailable = 1;
kAuthFailed = 2;
}

enum MetricTypeEnum : ENUM8 {
kPixels = 0;
kPercentage = 1;
Expand All @@ -450,12 +456,6 @@ server cluster ContentLauncher = 1290 {
kType = 12;
}

enum StatusEnum : ENUM8 {
kSuccess = 0;
kUrlNotAvailable = 1;
kAuthFailed = 2;
}

bitmap ContentLauncherFeature : BITMAP32 {
kContentSearch = 0x1;
kURLPlayback = 0x2;
Expand Down Expand Up @@ -522,7 +522,7 @@ server cluster ContentLauncher = 1290 {
}

response struct LaunchResponse = 2 {
StatusEnum status = 0;
ContentLaunchStatusEnum status = 0;
optional CHAR_STRING data = 1;
}

Expand Down Expand Up @@ -976,7 +976,7 @@ client cluster KeypadInput = 1289 {
kData = 118;
}

enum StatusEnum : ENUM8 {
enum KeypadInputStatusEnum : ENUM8 {
kSuccess = 0;
kUnsupportedKey = 1;
kInvalidKeyInCurrentState = 2;
Expand All @@ -998,7 +998,7 @@ client cluster KeypadInput = 1289 {
}

response struct SendKeyResponse = 1 {
StatusEnum status = 0;
KeypadInputStatusEnum status = 0;
}

command SendKey(SendKeyRequest): SendKeyResponse = 0;
Expand Down Expand Up @@ -1094,7 +1094,7 @@ server cluster KeypadInput = 1289 {
kData = 118;
}

enum StatusEnum : ENUM8 {
enum KeypadInputStatusEnum : ENUM8 {
kSuccess = 0;
kUnsupportedKey = 1;
kInvalidKeyInCurrentState = 2;
Expand All @@ -1116,7 +1116,7 @@ server cluster KeypadInput = 1289 {
}

response struct SendKeyResponse = 1 {
StatusEnum status = 0;
KeypadInputStatusEnum status = 0;
}

command SendKey(SendKeyRequest): SendKeyResponse = 0;
Expand Down Expand Up @@ -2148,7 +2148,7 @@ server cluster Switch = 59 {
}

client cluster TargetNavigator = 1285 {
enum StatusEnum : ENUM8 {
enum TargetNavigatorStatusEnum : ENUM8 {
kSuccess = 0;
kTargetNotFound = 1;
kNotAllowed = 2;
Expand All @@ -2172,15 +2172,15 @@ client cluster TargetNavigator = 1285 {
}

response struct NavigateTargetResponse = 1 {
StatusEnum status = 0;
TargetNavigatorStatusEnum status = 0;
optional CHAR_STRING data = 1;
}

command NavigateTarget(NavigateTargetRequest): NavigateTargetResponse = 0;
}

server cluster TargetNavigator = 1285 {
enum StatusEnum : ENUM8 {
enum TargetNavigatorStatusEnum : ENUM8 {
kSuccess = 0;
kTargetNotFound = 1;
kNotAllowed = 2;
Expand All @@ -2204,7 +2204,7 @@ server cluster TargetNavigator = 1285 {
}

response struct NavigateTargetResponse = 1 {
StatusEnum status = 0;
TargetNavigatorStatusEnum status = 0;
optional CHAR_STRING data = 1;
}

Expand Down
44 changes: 22 additions & 22 deletions examples/placeholder/linux/apps/app2/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,12 @@ server cluster ColorControl = 768 {
}

client cluster ContentLauncher = 1290 {
enum ContentLaunchStatusEnum : ENUM8 {
kSuccess = 0;
kUrlNotAvailable = 1;
kAuthFailed = 2;
}

enum MetricTypeEnum : ENUM8 {
kPixels = 0;
kPercentage = 1;
Expand All @@ -348,12 +354,6 @@ client cluster ContentLauncher = 1290 {
kType = 12;
}

enum StatusEnum : ENUM8 {
kSuccess = 0;
kUrlNotAvailable = 1;
kAuthFailed = 2;
}

bitmap ContentLauncherFeature : BITMAP32 {
kContentSearch = 0x1;
kURLPlayback = 0x2;
Expand Down Expand Up @@ -420,7 +420,7 @@ client cluster ContentLauncher = 1290 {
}

response struct LaunchResponse = 2 {
StatusEnum status = 0;
ContentLaunchStatusEnum status = 0;
optional CHAR_STRING data = 1;
}

Expand All @@ -429,6 +429,12 @@ client cluster ContentLauncher = 1290 {
}

server cluster ContentLauncher = 1290 {
enum ContentLaunchStatusEnum : ENUM8 {
kSuccess = 0;
kUrlNotAvailable = 1;
kAuthFailed = 2;
}

enum MetricTypeEnum : ENUM8 {
kPixels = 0;
kPercentage = 1;
Expand All @@ -450,12 +456,6 @@ server cluster ContentLauncher = 1290 {
kType = 12;
}

enum StatusEnum : ENUM8 {
kSuccess = 0;
kUrlNotAvailable = 1;
kAuthFailed = 2;
}

bitmap ContentLauncherFeature : BITMAP32 {
kContentSearch = 0x1;
kURLPlayback = 0x2;
Expand Down Expand Up @@ -522,7 +522,7 @@ server cluster ContentLauncher = 1290 {
}

response struct LaunchResponse = 2 {
StatusEnum status = 0;
ContentLaunchStatusEnum status = 0;
optional CHAR_STRING data = 1;
}

Expand Down Expand Up @@ -976,7 +976,7 @@ client cluster KeypadInput = 1289 {
kData = 118;
}

enum StatusEnum : ENUM8 {
enum KeypadInputStatusEnum : ENUM8 {
kSuccess = 0;
kUnsupportedKey = 1;
kInvalidKeyInCurrentState = 2;
Expand All @@ -998,7 +998,7 @@ client cluster KeypadInput = 1289 {
}

response struct SendKeyResponse = 1 {
StatusEnum status = 0;
KeypadInputStatusEnum status = 0;
}

command SendKey(SendKeyRequest): SendKeyResponse = 0;
Expand Down Expand Up @@ -1094,7 +1094,7 @@ server cluster KeypadInput = 1289 {
kData = 118;
}

enum StatusEnum : ENUM8 {
enum KeypadInputStatusEnum : ENUM8 {
kSuccess = 0;
kUnsupportedKey = 1;
kInvalidKeyInCurrentState = 2;
Expand All @@ -1116,7 +1116,7 @@ server cluster KeypadInput = 1289 {
}

response struct SendKeyResponse = 1 {
StatusEnum status = 0;
KeypadInputStatusEnum status = 0;
}

command SendKey(SendKeyRequest): SendKeyResponse = 0;
Expand Down Expand Up @@ -2148,7 +2148,7 @@ server cluster Switch = 59 {
}

client cluster TargetNavigator = 1285 {
enum StatusEnum : ENUM8 {
enum TargetNavigatorStatusEnum : ENUM8 {
kSuccess = 0;
kTargetNotFound = 1;
kNotAllowed = 2;
Expand All @@ -2172,15 +2172,15 @@ client cluster TargetNavigator = 1285 {
}

response struct NavigateTargetResponse = 1 {
StatusEnum status = 0;
TargetNavigatorStatusEnum status = 0;
optional CHAR_STRING data = 1;
}

command NavigateTarget(NavigateTargetRequest): NavigateTargetResponse = 0;
}

server cluster TargetNavigator = 1285 {
enum StatusEnum : ENUM8 {
enum TargetNavigatorStatusEnum : ENUM8 {
kSuccess = 0;
kTargetNotFound = 1;
kNotAllowed = 2;
Expand All @@ -2204,7 +2204,7 @@ server cluster TargetNavigator = 1285 {
}

response struct NavigateTargetResponse = 1 {
StatusEnum status = 0;
TargetNavigatorStatusEnum status = 0;
optional CHAR_STRING data = 1;
}

Expand Down
Loading

0 comments on commit 73d2d50

Please sign in to comment.