Sergei Lissianoi | f1c44da | 2020-08-09 16:11:24 -0700 | [diff] [blame] | 1 | /** |
| 2 | * |
Sergei Lissianoi | aa2933b | 2020-08-09 16:11:26 -0700 | [diff] [blame] | 3 | * Copyright (c) 2020 Project CHIP Authors |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
Vivien Nicolas | e384094 | 2020-11-11 14:54:39 +0100 | [diff] [blame] | 18 | #pragma once |
Bhaskar Sarma | 5d4da3f | 2020-09-14 12:31:31 -0700 | [diff] [blame] | 19 | |
Boris Zbarsky | fb19736 | 2021-12-15 00:46:43 -0500 | [diff] [blame] | 20 | #include <app/ConcreteAttributePath.h> |
Vivien Nicolas | 52466a9 | 2020-11-05 20:07:27 +0100 | [diff] [blame] | 21 | |
Vivien Nicolas | 52466a9 | 2020-11-05 20:07:27 +0100 | [diff] [blame] | 22 | /** @brief Reporting Attribute Change |
| 23 | * |
| 24 | * This function is called by the framework when an attribute managed by the |
| 25 | * framework changes. The application should call this function when an |
Boris Zbarsky | 95d337c | 2022-11-18 01:30:16 -0500 | [diff] [blame] | 26 | * externally-managed attribute changes. This function triggers attribute |
| 27 | * reports for subscriptions as needed. |
Boris Zbarsky | f9c69cd | 2021-10-21 16:09:38 -0400 | [diff] [blame] | 28 | */ |
| 29 | void MatterReportingAttributeChangeCallback(chip::EndpointId endpoint, chip::ClusterId clusterId, chip::AttributeId attributeId); |
Boris Zbarsky | fb19736 | 2021-12-15 00:46:43 -0500 | [diff] [blame] | 30 | |
| 31 | /* |
| 32 | * Same but with a nicer attribute path. |
| 33 | */ |
| 34 | void MatterReportingAttributeChangeCallback(const chip::app::ConcreteAttributePath & aPath); |
Song GUO | f68dd29 | 2022-02-25 23:28:17 +0800 | [diff] [blame] | 35 | |
| 36 | /* |
| 37 | * Same but only with an EndpointId, this is used when adding / enabling an endpoint during runtime. |
| 38 | */ |
| 39 | void MatterReportingAttributeChangeCallback(chip::EndpointId endpoint); |