1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 09:59:52 +03:00
SoftEtherVPN/src/Cedar/WebUI.h

40 lines
708 B
C
Raw Normal View History

2017-10-19 05:48:23 +03:00
// SoftEther VPN Source Code - Developer Edition Master Branch
2014-01-04 17:00:08 +04:00
// Cedar Communication Module
// WebUI.h
// Header of WebUI.c
#define WU_PASSWORD_NOCHANGE "********"
#define WU_CONTEXT_EXPIRE 600000
// Prototype declaration
typedef struct WEBUI
{
CEDAR *Cedar;
LIST *PageList;
LIST *Contexts;
} WEBUI;
// WebUI context
typedef struct WU_CONTEXT
{
ADMIN *Admin;
UINT64 ExpireDate;
} WU_CONTEXT;
typedef struct WU_WEBPAGE
{
char *data;
UINT size;
HTTP_HEADER *header;
} WU_WEBPAGE;
// Prototype declaration
bool WuFreeWebUI(WEBUI *wu);
WEBUI *WuNewWebUI(CEDAR *cedar);
WU_WEBPAGE *WuGetPage(char *target, WEBUI *wu);
void WuFreeWebPage(WU_WEBPAGE *page);