aqhome: finished transformation of aqhome-data and aqhome-tool.
This commit is contained in:
@@ -16,15 +16,39 @@
|
||||
#include <gwenhywfar/args.h>
|
||||
|
||||
|
||||
#define AQH_TOOL_CLIENT_NODEADDR 240
|
||||
|
||||
#define AQH_TOOL_CLIENT_CONNECTFLAGS_WITHCONNECTMSG 0x0001
|
||||
#define AQH_TOOL_CLIENT_CONNECTFLAGS_WITHGRPMSG 0x0002
|
||||
|
||||
|
||||
|
||||
typedef AQH_MESSAGE* (*AQH_TOOLCLIENT_CREATEREQUESTMESSAGE_FN)(AQH_OBJECT *o, uint32_t msgId);
|
||||
typedef int (*AQH_TOOLCLIENT_HANDLERESPONSEMESSAGE_FN)(AQH_OBJECT *o, const AQH_MESSAGE *msg, const GWEN_TAG16_LIST *tagList, int first);
|
||||
|
||||
|
||||
AQH_OBJECT *AQH_ToolClient_new(AQH_EVENT_LOOP *eventLoop, GWEN_DB_NODE *dbGlobalArgs, const GWEN_ARGS *argDescrs);
|
||||
AQH_OBJECT *AQH_ToolClient_new(AQH_EVENT_LOOP *eventLoop,
|
||||
uint8_t protoId, uint8_t protoVer,
|
||||
GWEN_DB_NODE *dbGlobalArgs, const GWEN_ARGS *argDescrs);
|
||||
int AQH_ToolClient_ReadLocalArgs(AQH_OBJECT *o, int argc, char **argv);
|
||||
|
||||
int AQH_ToolClient_Run(AQH_OBJECT *o);
|
||||
int AQH_ToolClient_Watch(AQH_OBJECT *o);
|
||||
|
||||
int AQH_ToolClient_Connect(AQH_OBJECT *o, uint32_t connFlags, uint32_t connMsgFlags, uint32_t grps);
|
||||
int AQH_ToolClient_RunConnected(AQH_OBJECT *o);
|
||||
int AQH_ToolClient_WatchConnected(AQH_OBJECT *o);
|
||||
|
||||
int AQH_ToolClient_RunConnectedWithNodeMsgs(AQH_OBJECT *o);
|
||||
|
||||
|
||||
void AQH_ToolClient_SendNodeMsg(AQH_OBJECT *o, const AQH_MESSAGE *nodeMsg);
|
||||
AQH_MESSAGE *AQH_ToolClient_WaitForNodeMsg(AQH_OBJECT *o, int nodeSrcAddr, uint8_t nodeMsgType, int timeoutInSeconds);
|
||||
|
||||
AQH_OBJECT *AQH_ToolClient_GetEndpoint(const AQH_OBJECT *o);
|
||||
|
||||
|
||||
|
||||
GWEN_DB_NODE *AQH_ToolClient_GetDbGlobalArgs(const AQH_OBJECT *o);
|
||||
GWEN_DB_NODE *AQH_ToolClient_GetDbLocalArgs(const AQH_OBJECT *o);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user