Files
aqhomecontrol/aqhome/ipc2/ipc_endpoint.h
2025-03-01 15:22:34 +01:00

35 lines
1.6 KiB
C

/****************************************************************************
* 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_ExchangeConnectMsg(AQH_OBJECT *ipcEndpoint,
uint16_t connectMsgCode,
uint16_t resultMsgCode,
const char *clientId,
const char *userId,
const char *passw,
uint32_t flags,
int timeoutInSeconds);
AQHOME_API int AQH_IpcEndpoint_WaitForResultMsg(AQH_OBJECT *ipcEndpoint, 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