1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-26 19:39:53 +03:00
SoftEtherVPN/src/Cedar/WebUI.h

40 lines
708 B
C

// SoftEther VPN Source Code - Developer Edition Master Branch
// 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);