aqhome: more work on http service.

This commit is contained in:
Martin Preuss
2023-08-07 14:08:52 +02:00
parent 6269431467
commit 1efcd09f0c
20 changed files with 2375 additions and 227 deletions

View File

@@ -13,14 +13,27 @@
#include "aqhome/http/httpservice.h"
#define AQH_HTTP_SERVICE_DEFAULT_MAXSESSIONAGE 600 /* 10m */
typedef struct AQH_HTTP_SERVICE AQH_HTTP_SERVICE;
struct AQH_HTTP_SERVICE {
char *sourceFolder;
char *configFolder;
char *siteHeader;
char *siteFooter;
uint32_t lastModuleId;
uint32_t lastUserId;
int maxSessionAgeInSecs;
GWEN_MUTEX *moduleMutex;
GWEN_MUTEX *userMutex;
GWEN_MUTEX *sessionMutex;
AQH_HTTP_SERVICE_HANDLEREQUEST_FN handleRequestFn;
};