blob: f958cc7b87b66ebba5a0a09fe6c7b60c8a25d021 [file] [log] [blame] [edit]
/*
*
* Copyright (c) 2025 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 defines the interface for downcalls from WiFiPAFLayer
* to a WiFiPAF transport.
*/
#pragma once
#include "WiFiPAFRole.h"
#include <lib/core/NodeId.h>
#include <system/SystemPacketBuffer.h>
namespace chip {
namespace WiFiPAF {
class WiFiPAFLayerDelegate
{
public:
virtual ~WiFiPAFLayerDelegate() = default;
virtual CHIP_ERROR WiFiPAFMessageReceived(WiFiPAFSession & RxInfo, System::PacketBufferHandle && msg) = 0;
virtual CHIP_ERROR WiFiPAFMessageSend(WiFiPAFSession & TxInfo, System::PacketBufferHandle && msg) = 0;
virtual CHIP_ERROR WiFiPAFCloseSession(WiFiPAFSession & SessionInfo) = 0;
virtual bool WiFiPAFResourceAvailable() = 0;
};
} // namespace WiFiPAF
} // namespace chip