ipc2: added ipc_endpoint
This commit is contained in:
34
aqhome/ipc2/ipc_endpoint.h
Normal file
34
aqhome/ipc2/ipc_endpoint.h
Normal file
@@ -0,0 +1,34 @@
|
||||
/****************************************************************************
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user