/****************************************************************************
 * This file is part of the project AqHome.
 * AqHome (c) by 2025 Martin Preuss, all rights reserved.
 *
 * The license for this file can be found in the file COPYING which you
 * should have received along with this file.
 ****************************************************************************/

#ifndef AQH_IPC_ENDPOINT_H
#define AQH_IPC_ENDPOINT_H


#include <aqhome/ipc2/endpoint.h>



AQHOME_API int AQH_IpcEndpoint_WaitForResultMsg(AQH_OBJECT *ipcEndpoint,
                                                uint8_t protoId, uint8_t protoVer, uint16_t resultMsgCode,
                                                uint32_t refMsgId, int timeoutInSeconds);
AQHOME_API AQH_MESSAGE *AQH_IpcEndpoint_WaitForResponseMsg(AQH_OBJECT *ipcEndpoint, uint32_t refMsgId, int timeoutInSeconds);
AQHOME_API void AQH_IpcEndpoint_SendResponseResultToEndpoint(AQH_OBJECT *ep,
                                                             uint8_t protoId, uint8_t protoVer, uint16_t code,
                                                             uint32_t refMsgId, int result);



#endif

