aqhome-tool: recorganized code for improved reusability.

This commit is contained in:
Martin Preuss
2023-04-19 15:39:15 +02:00
parent cf3a90dccc
commit 20efe7d473
4 changed files with 148 additions and 97 deletions

29
apps/aqhome-tool/utils.h Normal file
View File

@@ -0,0 +1,29 @@
/****************************************************************************
* 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 AQHOME_TOOL_UTILS_H
#define AQHOME_TOOL_UTILS_H
#include <gwenhywfar/db.h>
#include <gwenhywfar/endpointmgr.h>
GWEN_MSG_ENDPOINT *Utils_SetupIpcEndpoint(GWEN_MSG_ENDPOINT_MGR *emgr, GWEN_DB_NODE *dbArgs);
GWEN_MSG *Utils_WaitForSpecificNodeMessage(GWEN_MSG_ENDPOINT_MGR *emgr, GWEN_MSG_ENDPOINT *epTcp,
int msgCode,
int nodeAddr,
int timeoutInSeconds);
int Utils_SendAcceptedMsgGroups(GWEN_MSG_ENDPOINT *epTcp, uint32_t groups);
#endif