aqhome-tool: move basic client code on folder up.
This commit is contained in:
@@ -34,6 +34,8 @@
|
|||||||
|
|
||||||
<headers dist="true" >
|
<headers dist="true" >
|
||||||
utils.h
|
utils.h
|
||||||
|
client.h
|
||||||
|
client_p.h
|
||||||
</headers>
|
</headers>
|
||||||
|
|
||||||
<sources>
|
<sources>
|
||||||
@@ -41,6 +43,7 @@
|
|||||||
|
|
||||||
main.c
|
main.c
|
||||||
utils.c
|
utils.c
|
||||||
|
client.c
|
||||||
</sources>
|
</sources>
|
||||||
|
|
||||||
<useTargets>
|
<useTargets>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "./client_p.h"
|
#include "./client_p.h"
|
||||||
#include "../utils.h"
|
#include "./utils.h"
|
||||||
|
|
||||||
#include "aqhome/aqhome.h"
|
#include "aqhome/aqhome.h"
|
||||||
#include "aqhome/msg/ipc/m_ipc.h"
|
#include "aqhome/msg/ipc/m_ipc.h"
|
||||||
@@ -33,8 +33,6 @@
|
|||||||
</setVar>
|
</setVar>
|
||||||
|
|
||||||
<headers dist="true" >
|
<headers dist="true" >
|
||||||
client.h
|
|
||||||
client_p.h
|
|
||||||
getvalues.h
|
getvalues.h
|
||||||
getdevices.h
|
getdevices.h
|
||||||
adddata.h
|
adddata.h
|
||||||
@@ -47,7 +45,6 @@
|
|||||||
<sources>
|
<sources>
|
||||||
$(local/typefiles)
|
$(local/typefiles)
|
||||||
|
|
||||||
client.c
|
|
||||||
getvalues.c
|
getvalues.c
|
||||||
getdevices.c
|
getdevices.c
|
||||||
adddata.c
|
adddata.c
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "./adddata.h"
|
#include "./adddata.h"
|
||||||
#include "./client.h"
|
#include "../client.h"
|
||||||
#include "../utils.h"
|
#include "../utils.h"
|
||||||
|
|
||||||
#include "aqhome/msg/ipc/m_ipc.h"
|
#include "aqhome/msg/ipc/m_ipc.h"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "./getvalues.h"
|
#include "./getvalues.h"
|
||||||
#include "./client.h"
|
#include "../client.h"
|
||||||
#include "../utils.h"
|
#include "../utils.h"
|
||||||
|
|
||||||
#include "aqhome/msg/ipc/m_ipc.h"
|
#include "aqhome/msg/ipc/m_ipc.h"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "./getvalues.h"
|
#include "./getvalues.h"
|
||||||
#include "./client.h"
|
#include "../client.h"
|
||||||
#include "../utils.h"
|
#include "../utils.h"
|
||||||
|
|
||||||
#include "aqhome/msg/ipc/m_ipc.h"
|
#include "aqhome/msg/ipc/m_ipc.h"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "./getvalues.h"
|
#include "./getvalues.h"
|
||||||
#include "./client.h"
|
#include "../client.h"
|
||||||
#include "../utils.h"
|
#include "../utils.h"
|
||||||
|
|
||||||
#include "aqhome/msg/ipc/m_ipc.h"
|
#include "aqhome/msg/ipc/m_ipc.h"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "./moddevice.h"
|
#include "./moddevice.h"
|
||||||
#include "./client.h"
|
#include "../client.h"
|
||||||
#include "../utils.h"
|
#include "../utils.h"
|
||||||
|
|
||||||
#include "aqhome/msg/ipc/m_ipc.h"
|
#include "aqhome/msg/ipc/m_ipc.h"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "./setdata.h"
|
#include "./setdata.h"
|
||||||
#include "./client.h"
|
#include "../client.h"
|
||||||
#include "../utils.h"
|
#include "../utils.h"
|
||||||
|
|
||||||
#include "aqhome/msg/ipc/m_ipc.h"
|
#include "aqhome/msg/ipc/m_ipc.h"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "./watch.h"
|
#include "./watch.h"
|
||||||
#include "./client.h"
|
#include "../client.h"
|
||||||
#include "../utils.h"
|
#include "../utils.h"
|
||||||
|
|
||||||
#include "aqhome/ipc2/endpoint.h"
|
#include "aqhome/ipc2/endpoint.h"
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ AQH_OBJECT *Utils2_SetupBrokerClientEndpoint(AQH_EVENT_LOOP *eventLoop, GWEN_DB_
|
|||||||
{
|
{
|
||||||
const char *brokerAddress;
|
const char *brokerAddress;
|
||||||
int brokerPort;
|
int brokerPort;
|
||||||
const char *brokerClientId;
|
|
||||||
|
|
||||||
brokerAddress=GWEN_DB_GetCharValue(dbArgs, "brokerAddress", 0, NULL);
|
brokerAddress=GWEN_DB_GetCharValue(dbArgs, "brokerAddress", 0, NULL);
|
||||||
if (!(brokerAddress && *brokerAddress))
|
if (!(brokerAddress && *brokerAddress))
|
||||||
@@ -55,8 +54,6 @@ AQH_OBJECT *Utils2_SetupBrokerClientEndpoint(AQH_EVENT_LOOP *eventLoop, GWEN_DB_
|
|||||||
if (brokerPort<0)
|
if (brokerPort<0)
|
||||||
brokerPort=GWEN_DB_GetIntValue(dbArgs, "ConfigFile/brokerPort", 0, 45456);
|
brokerPort=GWEN_DB_GetIntValue(dbArgs, "ConfigFile/brokerPort", 0, 45456);
|
||||||
|
|
||||||
brokerClientId=GWEN_DB_GetCharValue(dbArgs, "brokerClientId", 0, "aqhome-tool");
|
|
||||||
|
|
||||||
if (brokerAddress && *brokerAddress && brokerPort) {
|
if (brokerAddress && *brokerAddress && brokerPort) {
|
||||||
AQH_OBJECT *ep;
|
AQH_OBJECT *ep;
|
||||||
int fd;
|
int fd;
|
||||||
|
|||||||
Reference in New Issue
Block a user