aqhome-cgi: moved files.

This commit is contained in:
Martin Preuss
2025-09-15 19:15:51 +02:00
parent 7f301d271b
commit 348c3a8853
15 changed files with 101 additions and 18 deletions

View File

@@ -49,17 +49,13 @@
<headers dist="true" install="$(pkgincludedir)/service" >
mservice.h
mroot.h
mdataclient.h
mdevices.h
madmin.h
mmodules.h
mroot.h
</headers>
<headers dist="true" >
mservice_p.h
mroot_p.h
</headers>
@@ -67,12 +63,9 @@
<sources>
$(local/typefiles)
mservice.c
mroot.c
mdataclient.c
mdevices.c
madmin.c
mmodules.c
mroot.c
</sources>
@@ -81,9 +74,11 @@
<useTargets>
aqhcgi_modcom
</useTargets>
<subdirs>
common
static
</subdirs>

View 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>

View File

@@ -14,7 +14,7 @@
#include "./madmin.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/timestamp.h>

View File

@@ -9,7 +9,7 @@
#ifndef 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>

View File

@@ -9,7 +9,7 @@
#ifndef 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>

View File

@@ -9,7 +9,7 @@
#ifndef 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;

View File

@@ -98,7 +98,7 @@ int AQH_ModDataClient_HandleRequest(AQH_MODULE *m, AQCGI_REQUEST *rq, AQH_SESSIO
AQH_Session_free(session);
AQH_Fini();
return 0;
return AQCGI_SendResponse(rq);
}

View File

@@ -9,7 +9,7 @@
#ifndef 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>

View File

@@ -11,7 +11,6 @@
#endif
#include "./mroot_p.h"
#include "./mdevices.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) {
DBG_ERROR(NULL, "No device received");
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;
}

View File

@@ -10,6 +10,8 @@
#define AQHOME_CGI_MODULES_DEVICES_H
#include "aqhome-cgi/modules/mdataclient.h"
#include "aqhome/aqhome.h"
#include "aqhome/dataclient/client.h"

View File

@@ -15,7 +15,7 @@
#include "aqhome-cgi/service/module.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/timestamp.h>

View File

@@ -9,7 +9,7 @@
#ifndef 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>