mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 19:41:57 +00:00
a92216f309
- Fit apps better in dir structure. - Move old_wordpad to templates (Ged said it's a great framework). svn path=/trunk/; revision=34308
50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS HTTP Daemon
|
|
* FILE: include/config.h
|
|
*/
|
|
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
#include <httpd.h>
|
|
#include <list.h>
|
|
|
|
// General constants
|
|
#define APP_DESCRIPTION _T("ReactOS HTTP Daemon")
|
|
|
|
// Default configuration
|
|
#define dcfgDescription _T("Default configuration")
|
|
#define dcfgMainBase _T("C:\\roshttpd\\")
|
|
#define dcfgHttpBase _T("C:\\roshttpd\\HttpBase\\")
|
|
#define dcfgDefaultResource _T("index.html")
|
|
#define dcfgDefaultPort 80
|
|
|
|
class CConfig {
|
|
public:
|
|
CConfig();
|
|
~CConfig();
|
|
VOID Default();
|
|
VOID Clear();
|
|
BOOL Load();
|
|
BOOL Save();
|
|
LPWSTR GetMainBase();
|
|
VOID SetMainBase(LPWSTR lpwsMainBase);
|
|
LPSTR GetHttpBase();
|
|
VOID SetHttpBase(LPSTR lpsHttpBase);
|
|
CList<LPSTR>* GetDefaultResources();
|
|
USHORT GetPort();
|
|
VOID SetPort(USHORT wPort);
|
|
private:
|
|
VOID Reset();
|
|
LPWSTR MainBase;
|
|
LPSTR HttpBase;
|
|
CList<LPSTR> DefaultResources;
|
|
USHORT Port;
|
|
};
|
|
typedef CConfig* LPCConfig;
|
|
|
|
extern LPCConfig pConfiguration;
|
|
extern LPCHttpDaemonThread pDaemonThread;
|
|
|
|
#endif /* __CONFIG_H */
|