|
20 | 20 | #include <app-common/zap-generated/cluster-objects.h>
|
21 | 21 | #include <app/CommandHandler.h>
|
22 | 22 | #include <app/ConcreteCommandPath.h>
|
23 |
| -#include <app/clusters/scenes-server/SceneTable.h> |
24 | 23 | #include <app/util/af-types.h>
|
25 | 24 | #include <app/util/attribute-storage.h>
|
26 | 25 | #include <app/util/basic-types.h>
|
27 | 26 | #include <app/util/config.h>
|
28 | 27 | #include <platform/CHIPDeviceConfig.h>
|
29 | 28 | #include <protocols/interaction_model/StatusCode.h>
|
30 | 29 |
|
| 30 | +#ifdef MATTER_DM_PLUGIN_SCENES_MANAGEMENT |
| 31 | +#include <app/clusters/scenes-server/SceneTable.h> |
| 32 | +#endif |
| 33 | + |
31 | 34 | /**********************************************************
|
32 | 35 | * Defines and Macros
|
33 | 36 | *********************************************************/
|
@@ -134,7 +137,9 @@ class ColorControlServer
|
134 | 137 | *********************************************************/
|
135 | 138 | static ColorControlServer & Instance();
|
136 | 139 |
|
| 140 | +#ifdef MATTER_DM_PLUGIN_SCENES_MANAGEMENT |
137 | 141 | chip::scenes::SceneHandler * GetSceneHandler();
|
| 142 | +#endif |
138 | 143 |
|
139 | 144 | bool HasFeature(chip::EndpointId endpoint, Feature feature);
|
140 | 145 | chip::Protocols::InteractionModel::Status stopAllColorTransitions(chip::EndpointId endpoint);
|
@@ -272,7 +277,9 @@ class ColorControlServer
|
272 | 277 |
|
273 | 278 | EmberEventControl eventControls[kColorControlClusterServerMaxEndpointCount];
|
274 | 279 |
|
| 280 | +#ifdef MATTER_DM_PLUGIN_SCENES_MANAGEMENT |
275 | 281 | friend class DefaultColorControlSceneHandler;
|
| 282 | +#endif |
276 | 283 | };
|
277 | 284 |
|
278 | 285 | /**********************************************************
|
|
0 commit comments