aqhome-cgi: moved files.
This commit is contained in:
@@ -49,17 +49,13 @@
|
|||||||
|
|
||||||
|
|
||||||
<headers dist="true" install="$(pkgincludedir)/service" >
|
<headers dist="true" install="$(pkgincludedir)/service" >
|
||||||
mservice.h
|
|
||||||
mroot.h
|
|
||||||
mdataclient.h
|
mdataclient.h
|
||||||
mdevices.h
|
mdevices.h
|
||||||
madmin.h
|
mroot.h
|
||||||
mmodules.h
|
|
||||||
</headers>
|
</headers>
|
||||||
|
|
||||||
|
|
||||||
<headers dist="true" >
|
<headers dist="true" >
|
||||||
mservice_p.h
|
|
||||||
mroot_p.h
|
mroot_p.h
|
||||||
</headers>
|
</headers>
|
||||||
|
|
||||||
@@ -67,12 +63,9 @@
|
|||||||
<sources>
|
<sources>
|
||||||
$(local/typefiles)
|
$(local/typefiles)
|
||||||
|
|
||||||
mservice.c
|
|
||||||
mroot.c
|
|
||||||
mdataclient.c
|
mdataclient.c
|
||||||
mdevices.c
|
mdevices.c
|
||||||
madmin.c
|
mroot.c
|
||||||
mmodules.c
|
|
||||||
</sources>
|
</sources>
|
||||||
|
|
||||||
|
|
||||||
@@ -81,9 +74,11 @@
|
|||||||
|
|
||||||
|
|
||||||
<useTargets>
|
<useTargets>
|
||||||
|
aqhcgi_modcom
|
||||||
</useTargets>
|
</useTargets>
|
||||||
|
|
||||||
<subdirs>
|
<subdirs>
|
||||||
|
common
|
||||||
static
|
static
|
||||||
</subdirs>
|
</subdirs>
|
||||||
|
|
||||||
|
|||||||
84
apps/aqhome-cgi/modules/common/0BUILD
Normal file
84
apps/aqhome-cgi/modules/common/0BUILD
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
<?xml?>
|
||||||
|
|
||||||
|
<gwbuild>
|
||||||
|
|
||||||
|
<target type="ConvenienceLibrary" name="aqhcgi_modcom" >
|
||||||
|
|
||||||
|
<includes type="c" >
|
||||||
|
$(gwenhywfar_cflags)
|
||||||
|
-I$(topsrcdir)
|
||||||
|
-I$(topbuilddir)
|
||||||
|
-I$(topsrcdir)/apps
|
||||||
|
-I$(topbuilddir)/apps
|
||||||
|
-I$(builddir)
|
||||||
|
-I$(srcdir)
|
||||||
|
</includes>
|
||||||
|
|
||||||
|
<includes type="tm2" >
|
||||||
|
--include=$(builddir)
|
||||||
|
--include=$(srcdir)
|
||||||
|
</includes>
|
||||||
|
|
||||||
|
|
||||||
|
<define name="not_BUILDING_AQHOME" />
|
||||||
|
|
||||||
|
<setVar name="local/cflags">$(visibility_cflags)</setVar>
|
||||||
|
|
||||||
|
|
||||||
|
<setVar name="tm2flags-INACTIVE" >
|
||||||
|
--api=AQHOME_API
|
||||||
|
</setVar>
|
||||||
|
|
||||||
|
<setVar name="local/typefiles" >
|
||||||
|
</setVar>
|
||||||
|
|
||||||
|
<setVar name="local/built_sources" >
|
||||||
|
</setVar>
|
||||||
|
|
||||||
|
<setVar name="local/built_headers_pub">
|
||||||
|
</setVar>
|
||||||
|
|
||||||
|
|
||||||
|
<setVar name="local/built_headers_priv" >
|
||||||
|
</setVar>
|
||||||
|
|
||||||
|
|
||||||
|
<headers dist="false" install="$(pkgincludedir)/service" >
|
||||||
|
$(local/built_headers_pub)
|
||||||
|
</headers>
|
||||||
|
|
||||||
|
|
||||||
|
<headers dist="true" install="$(pkgincludedir)/service" >
|
||||||
|
mservice.h
|
||||||
|
madmin.h
|
||||||
|
mmodules.h
|
||||||
|
</headers>
|
||||||
|
|
||||||
|
|
||||||
|
<headers dist="true" >
|
||||||
|
mservice_p.h
|
||||||
|
</headers>
|
||||||
|
|
||||||
|
|
||||||
|
<sources>
|
||||||
|
$(local/typefiles)
|
||||||
|
|
||||||
|
mservice.c
|
||||||
|
madmin.c
|
||||||
|
mmodules.c
|
||||||
|
</sources>
|
||||||
|
|
||||||
|
|
||||||
|
<extradist>
|
||||||
|
</extradist>
|
||||||
|
|
||||||
|
|
||||||
|
<useTargets>
|
||||||
|
</useTargets>
|
||||||
|
|
||||||
|
<subdirs>
|
||||||
|
</subdirs>
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</gwbuild>
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
#include "./madmin.h"
|
#include "./madmin.h"
|
||||||
|
|
||||||
#include "aqhome-cgi/service/module.h"
|
#include "aqhome-cgi/service/module.h"
|
||||||
#include "aqhome-cgi/modules/mmodules.h"
|
#include "aqhome-cgi/modules/common/mmodules.h"
|
||||||
|
|
||||||
#include <gwenhywfar/debug.h>
|
#include <gwenhywfar/debug.h>
|
||||||
#include <gwenhywfar/timestamp.h>
|
#include <gwenhywfar/timestamp.h>
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef AQHOME_CGI_MADMIN_H
|
#ifndef AQHOME_CGI_MADMIN_H
|
||||||
#define AQHOME_CGI_MADMIN_H
|
#define AQHOME_CGI_MADMIN_H
|
||||||
|
|
||||||
#include <aqhome-cgi/modules/mservice.h>
|
#include <aqhome-cgi/modules/common/mservice.h>
|
||||||
|
|
||||||
#include <aqcgi/request.h>
|
#include <aqcgi/request.h>
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef AQHOME_CGI_MMODULES_H
|
#ifndef AQHOME_CGI_MMODULES_H
|
||||||
#define AQHOME_CGI_MMODULES_H
|
#define AQHOME_CGI_MMODULES_H
|
||||||
|
|
||||||
#include <aqhome-cgi/modules/mservice.h>
|
#include <aqhome-cgi/modules/common/mservice.h>
|
||||||
|
|
||||||
#include <aqcgi/request.h>
|
#include <aqcgi/request.h>
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef AQHOME_CGI_MSERVICE_P_H
|
#ifndef AQHOME_CGI_MSERVICE_P_H
|
||||||
#define AQHOME_CGI_MSERVICE_P_H
|
#define AQHOME_CGI_MSERVICE_P_H
|
||||||
|
|
||||||
#include "aqhome-cgi/modules/mservice.h"
|
#include "aqhome-cgi/modules/common/mservice.h"
|
||||||
|
|
||||||
|
|
||||||
typedef struct AQH_MOD_SERVICE AQH_MOD_SERVICE;
|
typedef struct AQH_MOD_SERVICE AQH_MOD_SERVICE;
|
||||||
@@ -98,7 +98,7 @@ int AQH_ModDataClient_HandleRequest(AQH_MODULE *m, AQCGI_REQUEST *rq, AQH_SESSIO
|
|||||||
AQH_Session_free(session);
|
AQH_Session_free(session);
|
||||||
|
|
||||||
AQH_Fini();
|
AQH_Fini();
|
||||||
return 0;
|
return AQCGI_SendResponse(rq);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef AQHOME_CGI_MDATACLIENT_H
|
#ifndef AQHOME_CGI_MDATACLIENT_H
|
||||||
#define AQHOME_CGI_MDATACLIENT_H
|
#define AQHOME_CGI_MDATACLIENT_H
|
||||||
|
|
||||||
#include <aqhome-cgi/modules/mservice.h>
|
#include <aqhome-cgi/modules/common/mservice.h>
|
||||||
|
|
||||||
#include <aqcgi/request.h>
|
#include <aqcgi/request.h>
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "./mroot_p.h"
|
|
||||||
#include "./mdevices.h"
|
#include "./mdevices.h"
|
||||||
|
|
||||||
#include "aqhome-cgi/service/module.h"
|
#include "aqhome-cgi/service/module.h"
|
||||||
@@ -172,6 +171,9 @@ void _runIndex(AQH_MODULE *m, AQCGI_REQUEST *rq, AQH_SESSION *session, AQH_DATAC
|
|||||||
if (deviceList==NULL) {
|
if (deviceList==NULL) {
|
||||||
DBG_ERROR(NULL, "No device received");
|
DBG_ERROR(NULL, "No device received");
|
||||||
GWEN_Buffer_AppendString(dbuf, "Empty device list.");
|
GWEN_Buffer_AppendString(dbuf, "Empty device list.");
|
||||||
|
GWEN_Buffer_AppendString(dbuf, "<p>No devices.</p>");
|
||||||
|
AQCGI_Request_SetResponseCode(rq, 200);
|
||||||
|
AQCGI_Request_SetResponseText(rq, "Ok");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
#define AQHOME_CGI_MODULES_DEVICES_H
|
#define AQHOME_CGI_MODULES_DEVICES_H
|
||||||
|
|
||||||
|
|
||||||
|
#include "aqhome-cgi/modules/mdataclient.h"
|
||||||
|
|
||||||
#include "aqhome/aqhome.h"
|
#include "aqhome/aqhome.h"
|
||||||
#include "aqhome/dataclient/client.h"
|
#include "aqhome/dataclient/client.h"
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#include "aqhome-cgi/service/module.h"
|
#include "aqhome-cgi/service/module.h"
|
||||||
#include "aqhome-cgi/modules/mdevices.h"
|
#include "aqhome-cgi/modules/mdevices.h"
|
||||||
#include "aqhome-cgi/modules/madmin.h"
|
#include "aqhome-cgi/modules/common/madmin.h"
|
||||||
|
|
||||||
#include <gwenhywfar/debug.h>
|
#include <gwenhywfar/debug.h>
|
||||||
#include <gwenhywfar/timestamp.h>
|
#include <gwenhywfar/timestamp.h>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef AQHOME_CGI_MROOT_H
|
#ifndef AQHOME_CGI_MROOT_H
|
||||||
#define AQHOME_CGI_MROOT_H
|
#define AQHOME_CGI_MROOT_H
|
||||||
|
|
||||||
#include <aqhome-cgi/modules/mservice.h>
|
#include <aqhome-cgi/modules/common/mservice.h>
|
||||||
|
|
||||||
#include <aqcgi/request.h>
|
#include <aqcgi/request.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user