Matter SDK Coverage Report
Current view: top level - app/util - generic-callback-stubs.cpp (source / functions) Coverage Total Hit
Test: SHA:b879ecb8e99e175eea0a293a888bda853da2b19c Lines: 0.0 % 12 0
Test Date: 2025-01-17 19:00:11 Functions: 0.0 % 6 0

            Line data    Source code
       1              : /*
       2              :  *
       3              :  *    Copyright (c) 2022 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              : 
      18              : #include <app-common/zap-generated/callback.h>
      19              : #include <app/util/basic-types.h>
      20              : #include <lib/support/Span.h>
      21              : #include <protocols/interaction_model/Constants.h>
      22              : #include <protocols/interaction_model/StatusCode.h>
      23              : 
      24              : using namespace chip;
      25              : 
      26              : // This file contains overridable callbacks that are not cluster specific.
      27              : 
      28            0 : bool __attribute__((weak)) emberAfAttributeReadAccessCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId)
      29              : {
      30            0 :     return true;
      31              : }
      32              : 
      33            0 : bool __attribute__((weak)) emberAfAttributeWriteAccessCallback(EndpointId endpoint, ClusterId clusterId, AttributeId attributeId)
      34              : {
      35            0 :     return true;
      36              : }
      37              : 
      38              : chip::Protocols::InteractionModel::Status __attribute__((weak))
      39            0 : emberAfExternalAttributeReadCallback(EndpointId endpoint, ClusterId clusterId, const EmberAfAttributeMetadata * attributeMetadata,
      40              :                                      uint8_t * buffer, uint16_t maxReadLength)
      41              : {
      42            0 :     return chip::Protocols::InteractionModel::Status::Failure;
      43              : }
      44              : 
      45              : chip::Protocols::InteractionModel::Status __attribute__((weak))
      46            0 : emberAfExternalAttributeWriteCallback(EndpointId endpoint, ClusterId clusterId, const EmberAfAttributeMetadata * attributeMetadata,
      47              :                                       uint8_t * buffer)
      48              : {
      49            0 :     return chip::Protocols::InteractionModel::Status::Failure;
      50              : }
      51              : 
      52              : chip::Protocols::InteractionModel::Status __attribute__((weak))
      53            0 : MatterPreAttributeChangeCallback(const chip::app::ConcreteAttributePath & attributePath, uint8_t type, uint16_t size,
      54              :                                  uint8_t * value)
      55              : {
      56            0 :     return chip::Protocols::InteractionModel::Status::Success;
      57              : }
      58              : 
      59            0 : void __attribute__((weak)) MatterPostAttributeChangeCallback(const chip::app::ConcreteAttributePath & attributePath, uint8_t type,
      60              :                                                              uint16_t size, uint8_t * value)
      61            0 : {}
        

Generated by: LCOV version 2.0-1