/**************************************************************************** * This file is part of the project AqHome. * AqHome (c) by 2023 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_MSG_IPC_DATA_CONNECT_H #define AQH_MSG_IPC_DATA_CONNECT_H #include #include #include /** * This message is used in request AQH_MSGTYPE_IPC_DATA_ADDVALUES_REQ and in response AQH_MSGTYPE_IPC_DATA_GETVALUES_RSP. */ #define AQH_MSGDATA_CONNECT_TAGS_CLIENTID 0x0001 #define AQH_MSGDATA_CONNECT_TAGS_USERID 0x0002 #define AQH_MSGDATA_CONNECT_TAGS_PASSWORD 0x0003 #define AQH_MSGDATA_CONNECT_TAGS_FLAGS 0x0004 #define AQH_MSGDATA_CONNECT_FLAGS_WANTUPDATES 0x0001 AQHOME_API GWEN_MSG *AQH_ConnectDataIpcMsg_new(uint16_t code, uint32_t msgId, uint32_t refMsgId, const char *clientId, const char *userId, const char *password, uint32_t flags); AQHOME_API void AQH_ConnectDataIpcMsg_Parse(GWEN_MSG *msg, int doCopy); AQHOME_API int AQH_ConnectDataIpcMsg_IsValid(const GWEN_MSG *msg); AQHOME_API void AQH_ConnectDataIpcMsg_DumpToBuffer(const GWEN_MSG *msg, GWEN_BUFFER *dbuf, const char *sText); #endif