Revert "Revert "aqhome: convenience code.""
This reverts commit bb77c6acd1.
This commit is contained in:
28
aqhome/client/connection.h
Normal file
28
aqhome/client/connection.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/****************************************************************************
|
||||
* This file is part of the project AqHome.
|
||||
* AqHome (c) by 2024 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_CLIENT_CONNECTION_H
|
||||
#define AQHOME_CLIENT_CONNECTION_H
|
||||
|
||||
|
||||
#include <aqhome/api.h>
|
||||
|
||||
#include <gwenhywfar/endpoint.h>
|
||||
|
||||
|
||||
GWEN_MSG_ENDPOINT *AQH_BrokerConnection_OpenConnection(const char *addr, int port,
|
||||
const char *clientId,
|
||||
const char *userId, const char *passwd,
|
||||
uint32_t flags,
|
||||
int timeoutInSeconds);
|
||||
int AQH_BrokerConnection_FlushOutMessageQueue(GWEN_MSG_ENDPOINT *epTcp, int timeoutInSeconds);
|
||||
GWEN_MSG *AQH_BrokerConnection_WaitForSpecificMessage(GWEN_MSG_ENDPOINT *epTcp, int msgCode, int timeoutInSeconds);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user