Skip to content

Commit

Permalink
Remove includes of CHIPClusters.h in Darwin code. (#26635)
Browse files Browse the repository at this point in the history
Darwin bits don't use CHIPClusters at all anymore.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jan 20, 2024
1 parent 278cf4d commit 2053977
Show file tree
Hide file tree
Showing 7 changed files with 230 additions and 235 deletions.
1 change: 0 additions & 1 deletion src/darwin/Framework/CHIP/MTRCluster_Internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#import "MTRBaseDevice_Internal.h"
#import "MTRCluster.h"

#import "zap-generated/CHIPClusters.h"
#import "zap-generated/MTRBaseClusters.h"

#include <app/ReadPrepareParams.h>
Expand Down
4 changes: 3 additions & 1 deletion src/darwin/Framework/CHIP/templates/MTRBaseClusters-src.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
#import "MTRDevice_Internal.h"
#import "MTRStructsObjc.h"

#include <controller/CHIPCluster.h>
#include <lib/support/CHIPListUtils.h>
#include <platform/CHIPDeviceLayer.h>

#include <type_traits>

using chip::Callback::Callback;
Expand Down Expand Up @@ -194,7 +196,7 @@ MTR{{cluster}}Cluster{{command}}Params
TypeInfo::Type cppValue;
{{>encode_value target="cppValue" source="value" cluster=parent.name errorCode="return CHIP_ERROR_INVALID_ARGUMENT;" depth=0}}

chip::Controller::{{asUpperCamelCase parent.name}}Cluster cppCluster(exchangeManager, session, self->_endpoint);
chip::Controller::ClusterBase cppCluster(exchangeManager, session, self->_endpoint);
return cppCluster.WriteAttribute<TypeInfo>(cppValue, bridge, successCb, failureCb, timedWriteTimeout);
});
std::move(*bridge).DispatchAction(self.device);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#import "MTRBaseClusters.h"
#import "MTRBaseDevice.h"

#include <zap-generated/CHIPClusters.h>

{{#zcl_clusters}}

{{#if (isSupported (asUpperCamelCase name preserveAcronyms=true))}}
Expand Down
2 changes: 0 additions & 2 deletions src/darwin/Framework/CHIP/templates/MTRClusters_Internal.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
#import "MTRDevice.h"
#import "MTRDevice_Internal.h"

#include <zap-generated/CHIPClusters.h>

{{#zcl_clusters}}

{{#if (isSupported (asUpperCamelCase name preserveAcronyms=true))}}
Expand Down
452 changes: 227 additions & 225 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm

Large diffs are not rendered by default.

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.

0 comments on commit 2053977

Please sign in to comment.