1 /*
2  * COPYRIGHT:   See COPYING in the top level directory
3  * PROJECT:     ReactOS HTTP Daemon
4  * FILE:        include/config.h
5  */
6 #ifndef __CONFIG_H
7 #define __CONFIG_H
8 
9 #include <httpd.h>
10 #include <list.h>
11 
12 // General constants
13 #define APP_DESCRIPTION _T("ReactOS HTTP Daemon")
14 
15 // Default configuration
16 #define dcfgDescription     _T("Default configuration")
17 #define dcfgMainBase        _T("C:\\roshttpd\\")
18 #define dcfgHttpBase        _T("C:\\roshttpd\\HttpBase\\")
19 #define dcfgDefaultResource _T("index.html")
20 #define dcfgDefaultPort     80
21 
22 class CConfig {
23 public:
24 	CConfig();
25 	~CConfig();
26 	VOID Default();
27 	VOID Clear();
28 	BOOL Load();
29 	BOOL Save();
30 	LPWSTR GetMainBase();
31 	VOID SetMainBase(LPWSTR lpwsMainBase);
32 	LPSTR GetHttpBase();
33 	VOID SetHttpBase(LPSTR lpsHttpBase);
34 	CList<LPSTR>* GetDefaultResources();
35     USHORT GetPort();
36     VOID SetPort(USHORT wPort);
37 private:
38 	VOID Reset();
39 	LPWSTR MainBase;
40 	LPSTR HttpBase;
41 	CList<LPSTR> DefaultResources;
42     USHORT Port;
43 };
44 typedef CConfig* LPCConfig;
45 
46 extern LPCConfig pConfiguration;
47 extern LPCHttpDaemonThread pDaemonThread;
48 
49 #endif /* __CONFIG_H */
50