added devices, added command getdevices.
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<headers dist="true" >
|
||||
ping.h
|
||||
flash.h
|
||||
getdevices.h
|
||||
getnodes.h
|
||||
</headers>
|
||||
|
||||
<sources>
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
ping.c
|
||||
flash.c
|
||||
getdevices.c
|
||||
getnodes.c
|
||||
</sources>
|
||||
|
||||
<useTargets>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include "./getdevices.h"
|
||||
#include "./getnodes.h"
|
||||
#include "../utils.h"
|
||||
|
||||
#include "aqhome/ipc/endpoint_ipc.h"
|
||||
@@ -33,12 +33,12 @@
|
||||
|
||||
|
||||
|
||||
static int _doGetDevices(GWEN_DB_NODE *dbArgs);
|
||||
static int _doGetNodes(GWEN_DB_NODE *dbArgs);
|
||||
static int _sendGetDevices(GWEN_MSG_ENDPOINT *epTcp);
|
||||
|
||||
|
||||
|
||||
int AQH_Tool_GetDevices(GWEN_DB_NODE *dbGlobalArgs, int argc, char **argv)
|
||||
int AQH_Tool_GetNodes(GWEN_DB_NODE *dbGlobalArgs, int argc, char **argv)
|
||||
{
|
||||
GWEN_DB_NODE *dbLocalArgs;
|
||||
int rv;
|
||||
@@ -111,12 +111,12 @@ int AQH_Tool_GetDevices(GWEN_DB_NODE *dbGlobalArgs, int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return _doGetDevices(dbLocalArgs);
|
||||
return _doGetNodes(dbLocalArgs);
|
||||
}
|
||||
|
||||
|
||||
|
||||
int _doGetDevices(GWEN_DB_NODE *dbArgs)
|
||||
int _doGetNodes(GWEN_DB_NODE *dbArgs)
|
||||
{
|
||||
GWEN_MSG_ENDPOINT *epTcp;
|
||||
int rv;
|
||||
@@ -6,14 +6,14 @@
|
||||
* should have received along with this file.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef AQHOME_TOOL_GETDEVICES_H
|
||||
#define AQHOME_TOOL_GETDEVICES_H
|
||||
#ifndef AQHOME_TOOL_GETNODES_H
|
||||
#define AQHOME_TOOL_GETNODES_H
|
||||
|
||||
|
||||
#include <gwenhywfar/db.h>
|
||||
|
||||
|
||||
int AQH_Tool_GetDevices(GWEN_DB_NODE *dbArgs, int argc, char **argv);
|
||||
int AQH_Tool_GetNodes(GWEN_DB_NODE *dbArgs, int argc, char **argv);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user