Files
aqhomecontrol/aqhome/http/httpservice_p.h
2023-08-08 23:49:28 +02:00

45 lines
923 B
C

/****************************************************************************
* This file is part of the project AqHome.
* AqHome (c) by 2023 Martin Preuss, all rights reserved.
*
* The license for this file can be found in the file COPYING which you
* should have received along with this file.
****************************************************************************/
#ifndef AQH_HTTP_SERVICE_P_H
#define AQH_HTTP_SERVICE_P_H
#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_URLHANDLER_LIST *urlHandlerList;
};
#endif