Skip to content

Commit b921c03

Browse files
committed
generate XML file from alchemy
1 parent 7efcdd7 commit b921c03

File tree

7 files changed

+56
-14
lines changed

7 files changed

+56
-14
lines changed

scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/gen_config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
#define MATTER_DM_ZONE_MANAGEMENT_CLUSTER_SERVER_ENDPOINT_COUNT (0)
143143
#define MATTER_DM_CAMERA_AV_STREAM_MANAGEMENT_CLUSTER_SERVER_ENDPOINT_COUNT (0)
144144
#define MATTER_DM_CAMERA_AV_SETTINGS_USER_LEVEL_MANAGEMENT_CLUSTER_SERVER_ENDPOINT_COUNT (0)
145-
#define MATTER_DM_WEBRTC_TRANSPORT_PROVIDER_CLUSTER_SERVER_ENDPOINT_COUNT (0)
145+
#define MATTER_DM_WEB_RTC_TRANSPORT_PROVIDER_CLUSTER_SERVER_ENDPOINT_COUNT (0)
146146
#define MATTER_DM_WEBRTC_TRANSPORT_REQUESTOR_CLUSTER_SERVER_ENDPOINT_COUNT (0)
147147
#define MATTER_DM_PUSH_AV_STREAM_TRANSPORT_CLUSTER_SERVER_ENDPOINT_COUNT (0)
148148
#define MATTER_DM_CHIME_CLUSTER_SERVER_ENDPOINT_COUNT (0)
@@ -274,7 +274,7 @@
274274
#define MATTER_DM_ZONE_MANAGEMENT_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
275275
#define MATTER_DM_CAMERA_AV_STREAM_MANAGEMENT_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
276276
#define MATTER_DM_CAMERA_AV_SETTINGS_USER_LEVEL_MANAGEMENT_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
277-
#define MATTER_DM_WEBRTC_TRANSPORT_PROVIDER_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
277+
#define MATTER_DM_WEB_RTC_TRANSPORT_PROVIDER_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
278278
#define MATTER_DM_WEBRTC_TRANSPORT_REQUESTOR_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
279279
#define MATTER_DM_PUSH_AV_STREAM_TRANSPORT_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
280280
#define MATTER_DM_CHIME_CLUSTER_CLIENT_ENDPOINT_COUNT (0)

scripts/tools/zap/tests/outputs/lighting-app/app-templates/gen_config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
#define MATTER_DM_ZONE_MANAGEMENT_CLUSTER_SERVER_ENDPOINT_COUNT (0)
143143
#define MATTER_DM_CAMERA_AV_STREAM_MANAGEMENT_CLUSTER_SERVER_ENDPOINT_COUNT (0)
144144
#define MATTER_DM_CAMERA_AV_SETTINGS_USER_LEVEL_MANAGEMENT_CLUSTER_SERVER_ENDPOINT_COUNT (0)
145-
#define MATTER_DM_WEBRTC_TRANSPORT_PROVIDER_CLUSTER_SERVER_ENDPOINT_COUNT (0)
145+
#define MATTER_DM_WEB_RTC_TRANSPORT_PROVIDER_CLUSTER_SERVER_ENDPOINT_COUNT (0)
146146
#define MATTER_DM_WEBRTC_TRANSPORT_REQUESTOR_CLUSTER_SERVER_ENDPOINT_COUNT (0)
147147
#define MATTER_DM_PUSH_AV_STREAM_TRANSPORT_CLUSTER_SERVER_ENDPOINT_COUNT (0)
148148
#define MATTER_DM_CHIME_CLUSTER_SERVER_ENDPOINT_COUNT (0)
@@ -274,7 +274,7 @@
274274
#define MATTER_DM_ZONE_MANAGEMENT_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
275275
#define MATTER_DM_CAMERA_AV_STREAM_MANAGEMENT_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
276276
#define MATTER_DM_CAMERA_AV_SETTINGS_USER_LEVEL_MANAGEMENT_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
277-
#define MATTER_DM_WEBRTC_TRANSPORT_PROVIDER_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
277+
#define MATTER_DM_WEB_RTC_TRANSPORT_PROVIDER_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
278278
#define MATTER_DM_WEBRTC_TRANSPORT_REQUESTOR_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
279279
#define MATTER_DM_PUSH_AV_STREAM_TRANSPORT_CLUSTER_CLIENT_ENDPOINT_COUNT (0)
280280
#define MATTER_DM_CHIME_CLUSTER_CLIENT_ENDPOINT_COUNT (0)

src/app/zap-templates/zcl/data-model/chip/webrtc-provider-cluster.xml

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<!--
3-
Copyright (c) 2024 Project CHIP Authors
3+
Copyright (c) 2025 Project CHIP Authors
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@ limitations under the License.
1818
XML generated by Alchemy; DO NOT EDIT.
1919
Source: src/app_clusters/WebRTC_Provider.adoc
2020
Parameters: in-progress
21-
Git: 0.9-fall2024-234-gf4d359001
21+
Git: 0.7-summer-2025-5-g06c4d5596
2222
-->
2323
<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
2424
<domain name="Cameras"/>
@@ -70,14 +70,15 @@ Git: 0.9-fall2024-234-gf4d359001
7070
<domain>Cameras</domain>
7171
<name>WebRTC Transport Provider</name>
7272
<code>0x0553</code>
73-
<define>WEBRTC_TRANSPORT_PROVIDER_CLUSTER</define>
74-
<description>The WebRTC transport provider cluster provides a way for stream providers (e.g. Cameras) to stream or receive their data through WebRTC.</description>
73+
<define>WEB_RTC_TRANSPORT_PROVIDER_CLUSTER</define>
74+
<description/>
7575
<client init="false" tick="false">true</client>
7676
<server init="false" tick="false">true</server>
7777
<globalAttribute code="0xFFFD" side="either" value="1"/>
7878
<attribute code="0x0000" side="server" define="CURRENT_SESSIONS" type="array" entryType="WebRTCSessionStruct">CurrentSessions</attribute>
7979
<command code="0x01" source="client" name="SolicitOffer" optional="false" response="SolicitOfferResponse">
8080
<description>Requests that the Provider initiates a new session with the Offer / Answer flow in a way that allows for options to be passed and work with devices needing the standby flow.</description>
81+
<quality largeMessage="true"/>
8182
<arg id="1" name="StreamUsage" type="StreamUsageEnum" min="0x00" max="0x03"/>
8283
<arg id="2" name="VideoStreamID" type="int16u" optional="true" isNullable="true"/>
8384
<arg id="3" name="AudioStreamID" type="int16u" optional="true" isNullable="true"/>
@@ -88,6 +89,7 @@ Git: 0.9-fall2024-234-gf4d359001
8889

8990
<command code="0x02" source="server" name="SolicitOfferResponse" optional="false" disableDefaultResponse="true">
9091
<description>This command SHALL be generated in response to a SolicitOffer command.</description>
92+
<quality largeMessage="true"/>
9193
<arg id="1" name="WebRTCSessionID" type="int16u"/>
9294
<arg id="2" name="DeferredOffer" type="boolean"/>
9395
<arg id="3" name="VideoStreamID" type="int16u" optional="true" isNullable="true"/>
@@ -96,6 +98,7 @@ Git: 0.9-fall2024-234-gf4d359001
9698

9799
<command code="0x03" source="client" name="ProvideOffer" optional="false" response="ProvideOfferResponse">
98100
<description>This command allows an SDP Offer to be set and start a new session.</description>
101+
<quality largeMessage="true"/>
99102
<arg id="1" name="WebRTCSessionID" type="int16u" isNullable="true"/>
100103
<arg id="2" name="SDP" type="char_string"/>
101104
<arg id="3" name="StreamUsage" type="StreamUsageEnum" min="0x00" max="0x03"/>
@@ -108,25 +111,29 @@ Git: 0.9-fall2024-234-gf4d359001
108111

109112
<command code="0x04" source="server" name="ProvideOfferResponse" optional="false" disableDefaultResponse="true">
110113
<description>This command contains information about the session and streams created as a response to the requestor&apos;s offer.</description>
114+
<quality largeMessage="true"/>
111115
<arg id="1" name="WebRTCSessionID" type="int16u"/>
112116
<arg id="2" name="VideoStreamID" type="int16u" optional="true" isNullable="true"/>
113117
<arg id="3" name="AudioStreamID" type="int16u" optional="true" isNullable="true"/>
114118
</command>
115119

116120
<command code="0x05" source="client" name="ProvideAnswer" optional="false">
117121
<description>This command SHALL be initiated from a Node in response to an Offer that was previously received from a remote peer.</description>
122+
<quality largeMessage="true"/>
118123
<arg id="1" name="WebRTCSessionID" type="int16u"/>
119124
<arg id="2" name="SDP" type="char_string"/>
120125
</command>
121126

122127
<command code="0x06" source="client" name="ProvideICECandidates" optional="false">
123-
<description>This command allows for https://rfc-editor.org/rfc/rfc8839#section-5.1 generated after the initial Offer / Answer exchange to be added to a session during the gathering phase.</description>
128+
<description>This command allows for string based https://rfc-editor.org/rfc/rfc8839#section-5.1 generated after the initial Offer / Answer exchange, via a JSEP https://datatracker.ietf.org/doc/html/rfc9429#section-4.1.20 event, a DOM https://www.w3.org/TR/webrtc/#dom-rtcpeerconnectioniceevent event, or other WebRTC compliant implementations, to be added to a session during the gathering phase.</description>
129+
<quality largeMessage="true"/>
124130
<arg id="1" name="WebRTCSessionID" type="int16u"/>
125131
<arg id="2" name="ICECandidates" array="true" type="char_string" minLength="1"/>
126132
</command>
127133

128134
<command code="0x07" source="client" name="EndSession" optional="false">
129135
<description>This command instructs the stream provider to end the WebRTC session.</description>
136+
<quality largeMessage="true"/>
130137
<arg id="1" name="WebRTCSessionID" type="int16u"/>
131138
<arg id="2" name="Reason" type="WebRTCEndReasonEnum" default="0x0B" min="0x00" max="0x0B"/>
132139
</command>

src/controller/data_model/controller-clusters.matter

+2-2
Original file line numberDiff line numberDiff line change
@@ -10078,7 +10078,7 @@ provisional cluster CameraAvSettingsUserLevelManagement = 1362 {
1007810078
command DPTZRelativeMove(DPTZRelativeMoveRequest): DefaultSuccess = 6;
1007910079
}
1008010080

10081-
/** The WebRTC transport provider cluster provides a way for stream providers (e.g. Cameras) to stream or receive their data through WebRTC. */
10081+
/** */
1008210082
provisional cluster WebRTCTransportProvider = 1363 {
1008310083
revision 1;
1008410084

@@ -10187,7 +10187,7 @@ provisional cluster WebRTCTransportProvider = 1363 {
1018710187
command ProvideOffer(ProvideOfferRequest): ProvideOfferResponse = 3;
1018810188
/** This command SHALL be initiated from a Node in response to an Offer that was previously received from a remote peer. */
1018910189
command ProvideAnswer(ProvideAnswerRequest): DefaultSuccess = 5;
10190-
/** This command allows for https://rfc-editor.org/rfc/rfc8839#section-5.1 generated after the initial Offer / Answer exchange to be added to a session during the gathering phase. */
10190+
/** This command allows for string based https://rfc-editor.org/rfc/rfc8839#section-5.1 generated after the initial Offer / Answer exchange, via a JSEP https://datatracker.ietf.org/doc/html/rfc9429#section-4.1.20 event, a DOM https://www.w3.org/TR/webrtc/#dom-rtcpeerconnectioniceevent event, or other WebRTC compliant implementations, to be added to a session during the gathering phase. */
1019110191
command ProvideICECandidates(ProvideICECandidatesRequest): DefaultSuccess = 6;
1019210192
/** This command instructs the stream provider to end the WebRTC session. */
1019310193
command EndSession(EndSessionRequest): DefaultSuccess = 7;

src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/darwin/Framework/CHIP/zap-generated/MTRClusters.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)