/**
 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
 * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
 * CANN Open Software License Agreement Version 2.0 (the "License").
 * Please refer to the License for details. You may not use this file except in compliance with the License.
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
 * See LICENSE in the root of the software repository for the full text of the License.
 */
#ifndef CCE_RUNTIME_API_IMPL_ESCHED_HPP
#define CCE_RUNTIME_API_IMPL_ESCHED_HPP

#include "api_esched.hpp"

namespace cce {
namespace runtime {

class ApiImplEsched : public ApiEsched {
public:
    rtError_t EschedSubmitEventSync(
        const int32_t devId, rtEschedEventSummary_t* const evt, rtEschedEventReply_t* const ack) override;
    rtError_t EschedAttachDevice(const uint32_t devId) override;
    rtError_t EschedDettachDevice(const uint32_t devId) override;
    rtError_t EschedWaitEvent(
        const int32_t devId, const uint32_t grpId, const uint32_t threadId, const int32_t timeout,
        rtEschedEventSummary_t* const evt) override;
    rtError_t EschedCreateGrp(const int32_t devId, const uint32_t grpId, const rtGroupType_t type) override;
    rtError_t EschedSubmitEvent(const int32_t devId, rtEschedEventSummary_t* const evt) override;
    rtError_t EschedSubscribeEvent(
        const int32_t devId, const uint32_t grpId, const uint32_t threadId, const uint64_t eventBitmap) override;
    rtError_t EschedAckEvent(
        const int32_t devId, const rtEventIdType_t evtId, const uint32_t subEvtId, char_t* const msg,
        const uint32_t len) override;
    rtError_t EschedQueryInfo(
        const uint32_t devId, const rtEschedQueryType type, rtEschedInputInfo* const inPut,
        rtEschedOutputInfo* const outPut) override;
};

} // namespace runtime
} // namespace cce

#endif // CCE_RUNTIME_API_IMPL_ESCHED_HPP