Skip to content

Commit

Permalink
Update xml (#9912)
Browse files Browse the repository at this point in the history
* update xml

--update xml with array for struct item
--update InterfaceType for NetworkInterfaceType struct

* run codegen
  • Loading branch information
yunhanw-google authored Sep 24, 2021
1 parent 2d3af17 commit 327a471
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ limitations under the License.
<cluster code="0x050a"/>
<item name="Type" type="ContentLaunchParameterEnum"/>
<item name="Value" type="CHAR_STRING"/>
<item name="ExternalIDList" type="ARRAY" entryType="ContentLaunchAdditionalInfo" length="254"/>
<item name="ExternalIDList" type="ContentLaunchAdditionalInfo" array="true" length="254"/>
</struct>
</configurator>
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ limitations under the License.
<item name="OffPremiseServicesReachableIPv6" type="BOOLEAN"/>
<!-- TODO: HWADR not supported yet -->
<item name="HardwareAddress" type="OCTET_STRING" length="8"/>
<item name="Type" type="ENUM8"/>
<item name="Type" type="InterfaceType"/>
</struct>
<cluster>
<domain>General</domain>
Expand Down
19 changes: 7 additions & 12 deletions src/app/zap-templates/zcl/data-model/chip/test-cluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ limitations under the License.
-->
<configurator>
<domain name="CHIP"/>

<struct name="TestListStructOctet">
<cluster code="0x050F"/>
<item name="fabricIndex" type="INT64U"/>
Expand All @@ -33,40 +32,36 @@ limitations under the License.

<struct name="SimpleStruct">
<cluster code="0x050F"/>
<item name="a" type="UINT8U" optional="false"/>
<item name="a" type="INT8U" optional="false"/>
<item name="b" type="BOOLEAN" optional="false"/>
<item name="c" define="SIMPLE_ENUM" type="ENUM8" optional="false"/>
<item name="c" type="SimpleEnum" optional="false"/>
<item name="d" type="OCTET_STRING" optional="false"/>
<item name="e" type="CHAR_STRING" optional="false"/>
</struct>

<struct name="NestedStruct">
<cluster code="0x050F"/>
<item name="a" type="UINT8U" optional="false"/>
<item name="a" type="INT8U" optional="false"/>
<item name="b" type="BOOLEAN" optional="false"/>
<!--
<item name="c" type="SimpleStruct" optional="false"/>
-->
</struct>

<struct name="NestedStructList">
<cluster code="0x050F"/>
<item name="a" type="UINT8U" optional="false"/>
<item name="a" type="INT8U" optional="false"/>
<item name="b" type="BOOLEAN" optional="false"/>
<!--
<item name="c" type="SimpleStruct" optional="false"/>
-->
<item name="d" type="SimpleStruct" array="true" optional="false"/>
<item name="e" type="UINT32U" array="true" optional="false"/>
<item name="e" type="INT32U" array="true" optional="false"/>
<item name="f" type="OCTET_STRING" array="true" optional="false"/>
<item name="g" type="UINT8U" array="true" optional="false"/>
<item name="g" type="INT8U" array="true" optional="false"/>
</struct>

<struct name="DoubleNestedStructList">
<cluster code="0x050F"/>
<item name="a" type="NestedStructList" array="true" optional="false"/>
</struct>

<cluster>
<domain>CHIP</domain>
<name>Test Cluster</name>
Expand Down

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

50 changes: 26 additions & 24 deletions zzz_generated/app-common/app-common/zap-generated/af-structs.h

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

2 changes: 1 addition & 1 deletion zzz_generated/bridge-app/zap-generated/attribute-size.cpp

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

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

2 changes: 1 addition & 1 deletion zzz_generated/lock-app/zap-generated/attribute-size.cpp

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

2 changes: 1 addition & 1 deletion zzz_generated/pump-app/zap-generated/attribute-size.cpp

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

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

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

2 changes: 1 addition & 1 deletion zzz_generated/thermostat/zap-generated/attribute-size.cpp

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

2 changes: 1 addition & 1 deletion zzz_generated/tv-app/zap-generated/attribute-size.cpp

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

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

2 changes: 1 addition & 1 deletion zzz_generated/window-app/zap-generated/attribute-size.cpp

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

0 comments on commit 327a471

Please sign in to comment.