Skip to content

Commit

Permalink
Generated using ./scripts/tools/zap_regen_all.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcosb committed Jan 28, 2025
1 parent a5ba8ad commit ebc1438
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 11 deletions.
4 changes: 4 additions & 0 deletions src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -10101,6 +10101,10 @@ provisional cluster WebRTCTransportRequestor = 1364 {
kUnknownReason = 11;
}

bitmap WebRTCMetadataOptionsBitmap : bitmap8 {
kDataTLV = 0x1;
}

struct ICEServerStruct {
char_string urls[] = 1;
optional char_string username = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14700,7 +14700,7 @@ public static class WebRTCTransportRequestorClusterWebRTCSessionStruct {
public Integer streamUsage;
public @Nullable Integer videoStreamID;
public @Nullable Integer audioStreamID;
public Object metadataOptions;
public Integer metadataOptions;
private static final long ID_ID = 1L;
private static final long PEER_NODE_ID_ID = 2L;
private static final long PEER_FABRIC_INDEX_ID = 3L;
Expand All @@ -14716,7 +14716,7 @@ public WebRTCTransportRequestorClusterWebRTCSessionStruct(
Integer streamUsage,
@Nullable Integer videoStreamID,
@Nullable Integer audioStreamID,
Object metadataOptions
Integer metadataOptions
) {
this.id = id;
this.peerNodeID = peerNodeID;
Expand All @@ -14735,7 +14735,7 @@ public StructType encodeTlv() {
values.add(new StructElement(STREAM_USAGE_ID, new UIntType(streamUsage)));
values.add(new StructElement(VIDEO_STREAM_ID_ID, videoStreamID != null ? new UIntType(videoStreamID) : new NullType()));
values.add(new StructElement(AUDIO_STREAM_ID_ID, audioStreamID != null ? new UIntType(audioStreamID) : new NullType()));
values.add(new StructElement(METADATA_OPTIONS_ID, new AnyType(metadataOptions)));
values.add(new StructElement(METADATA_OPTIONS_ID, new UIntType(metadataOptions)));

return new StructType(values);
}
Expand All @@ -14750,7 +14750,7 @@ public static WebRTCTransportRequestorClusterWebRTCSessionStruct decodeTlv(BaseT
Integer streamUsage = null;
@Nullable Integer videoStreamID = null;
@Nullable Integer audioStreamID = null;
Object metadataOptions = null;
Integer metadataOptions = null;
for (StructElement element: ((StructType)tlvValue).value()) {
if (element.contextTagNum() == ID_ID) {
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
Expand Down Expand Up @@ -14783,9 +14783,9 @@ public static WebRTCTransportRequestorClusterWebRTCSessionStruct decodeTlv(BaseT
audioStreamID = castingValue.value(Integer.class);
}
} else if (element.contextTagNum() == METADATA_OPTIONS_ID) {
if (element.value(BaseTLVType.class).type() == TLVType.Any) {
AnyType castingValue = element.value(AnyType.class);
metadataOptions = castingValue.value(Object.class);
if (element.value(BaseTLVType.class).type() == TLVType.UInt) {
UIntType castingValue = element.value(UIntType.class);
metadataOptions = castingValue.value(Integer.class);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class WebRTCTransportRequestorClusterWebRTCSessionStruct(
val streamUsage: UInt,
val videoStreamID: UInt?,
val audioStreamID: UInt?,
val metadataOptions: Any,
val metadataOptions: UInt,
) {
override fun toString(): String = buildString {
append("WebRTCTransportRequestorClusterWebRTCSessionStruct {\n")
Expand Down Expand Up @@ -97,7 +97,7 @@ class WebRTCTransportRequestorClusterWebRTCSessionStruct(
tlvReader.getNull(ContextSpecificTag(TAG_AUDIO_STREAM_ID))
null
}
val metadataOptions = tlvReader.getAny(ContextSpecificTag(TAG_METADATA_OPTIONS))
val metadataOptions = tlvReader.getUInt(ContextSpecificTag(TAG_METADATA_OPTIONS))

tlvReader.exitContainer()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class WebRTCTransportRequestorClusterWebRTCSessionStruct(
val streamUsage: UByte,
val videoStreamID: UShort?,
val audioStreamID: UShort?,
val metadataOptions: Any,
val metadataOptions: UByte,
) {
override fun toString(): String = buildString {
append("WebRTCTransportRequestorClusterWebRTCSessionStruct {\n")
Expand Down Expand Up @@ -97,7 +97,7 @@ class WebRTCTransportRequestorClusterWebRTCSessionStruct(
tlvReader.getNull(ContextSpecificTag(TAG_AUDIO_STREAM_ID))
null
}
val metadataOptions = tlvReader.getAny(ContextSpecificTag(TAG_METADATA_OPTIONS))
val metadataOptions = tlvReader.getUByte(ContextSpecificTag(TAG_METADATA_OPTIONS))

tlvReader.exitContainer()

Expand Down
4 changes: 4 additions & 0 deletions src/controller/python/chip/clusters/Objects.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ebc1438

Please sign in to comment.