/****************************************************************************
 * 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



