Skip to content

Commit

Permalink
[TV app] Enable missing client callbacks (#9359)
Browse files Browse the repository at this point in the history
* Enable missing client callbacks

* Update template to exclude unused kByteSpanSizeLengthInBytes variable

* Adding new zap generated files
  • Loading branch information
lazarkov authored and pull[bot] committed Sep 2, 2021
1 parent 0ffa033 commit 2e8f6cc
Show file tree
Hide file tree
Showing 14 changed files with 2,887 additions and 116 deletions.
1 change: 1 addition & 0 deletions examples/tv-app/tv-common/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ chip_data_model("tv-common") {

zap_pregenerated_dir = "${chip_root}/zzz_generated/tv-app/zap-generated"
is_server = true
use_default_client_callbacks = true
}
24 changes: 12 additions & 12 deletions examples/tv-app/tv-common/tv-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@
"mfgCode": null,
"define": "GENERAL_COMMISSIONING_CLUSTER",
"side": "client",
"enabled": 0,
"enabled": 1,
"commands": [
{
"name": "ArmFailSafe",
Expand Down Expand Up @@ -1362,7 +1362,7 @@
"code": 5,
"mfgCode": null,
"source": "server",
"incoming": 0,
"incoming": 1,
"outgoing": 1
}
],
Expand Down Expand Up @@ -1420,7 +1420,7 @@
"mfgCode": null,
"define": "NETWORK_COMMISSIONING_CLUSTER",
"side": "client",
"enabled": 0,
"enabled": 1,
"commands": [
{
"name": "ScanNetworks",
Expand Down Expand Up @@ -1534,31 +1534,31 @@
"code": 3,
"mfgCode": null,
"source": "server",
"incoming": 0,
"incoming": 1,
"outgoing": 1
},
{
"name": "UpdateWiFiNetworkResponse",
"code": 5,
"mfgCode": null,
"source": "server",
"incoming": 0,
"incoming": 1,
"outgoing": 1
},
{
"name": "AddThreadNetworkResponse",
"code": 7,
"mfgCode": null,
"source": "server",
"incoming": 0,
"incoming": 1,
"outgoing": 1
},
{
"name": "UpdateThreadNetworkResponse",
"code": 9,
"mfgCode": null,
"source": "server",
"incoming": 0,
"incoming": 1,
"outgoing": 1
},
{
Expand Down Expand Up @@ -3150,7 +3150,7 @@
"mfgCode": null,
"define": "OPERATIONAL_CREDENTIALS_CLUSTER",
"side": "client",
"enabled": 0,
"enabled": 1,
"commands": [
{
"name": "OpCSRRequest",
Expand Down Expand Up @@ -3240,15 +3240,15 @@
"code": 5,
"mfgCode": null,
"source": "server",
"incoming": 0,
"incoming": 1,
"outgoing": 1
},
{
"name": "NOCResponse",
"code": 8,
"mfgCode": null,
"source": "server",
"incoming": 0,
"incoming": 1,
"outgoing": 1
}
],
Expand Down Expand Up @@ -6827,7 +6827,7 @@
],
"attributes": [
{
"name": "cluster revision",
"name": "ClusterRevision",
"code": 65533,
"mfgCode": null,
"side": "client",
Expand Down Expand Up @@ -7177,7 +7177,7 @@
"reportableChange": 0
},
{
"name": "cluster revision",
"name": "ClusterRevision",
"code": 65533,
"mfgCode": null,
"side": "server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
using namespace ::chip;
using namespace ::chip::app::List;

constexpr uint16_t kByteSpanSizeLengthInBytes = 2;
namespace {
[[maybe_unused]] constexpr uint16_t kByteSpanSizeLengthInBytes = 2;
} // namespace


#define CHECK_STATUS_WITH_RETVAL(error, retval) \
if (CHIP_NO_ERROR != error) \
Expand Down

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.

4 changes: 3 additions & 1 deletion zzz_generated/pump-app/zap-generated/CHIPClientCallbacks.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.

Loading

0 comments on commit 2e8f6cc

Please sign in to comment.