blob: 51b4d5b6574c664fb26dc048391a7fb1da42060e [file] [log] [blame]
/**
*
* Copyright (c) 2020 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* This file provides message processing definitions that are normally generated by the
* ZCL Advanced Platform (ZAP) generator for use in the CHIP ZCL
* Application Layer. These declarations are provided here for the
* purposes of unit testing the CHIP ZCL Application Layer
*
*/
// Enclosing macro to prevent multiple inclusion
#ifndef CHIP_ZCL_COMMAND_PARSE_HEADER
#define CHIP_ZCL_COMMAND_PARSE_HEADER
#include "chip-zcl.h"
#include "gen-cluster-id.h"
#include "gen-command-id.h"
#include "gen-types.h"
// This is a set of generated prototype for functions that parse the
// the incomming message, and call appropriate command handler.
ChipZclStatus_t chipZclClusterCommandParse(ChipZclCommandContext_t * context);
// Cluster: On/off, server
ChipZclStatus_t chipZclOnOffClusterServerCommandParse(ChipZclCommandContext_t * context);
void chipZclClusterOnOffServerCommandOffRequestHandler(const ChipZclCommandContext_t * context,
const ChipZclClusterOnOffServerCommandOffRequest_t * request);
void chipZclClusterOnOffServerCommandOnRequestHandler(const ChipZclCommandContext_t * context,
const ChipZclClusterOnOffServerCommandOnRequest_t * request);
void chipZclClusterOnOffServerCommandToggleRequestHandler(const ChipZclCommandContext_t * context,
const ChipZclClusterOnOffServerCommandToggleRequest_t * request);
#endif // CHIP_ZCL_COMMAND_PARSE_HEADER