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
|
|
|
|
|
2021-04-05 05:48:25 +03:00
|
|
|
#ifndef WEBUI_H
|
|
|
|
#define WEBUI_H
|
|
|
|
|
|
|
|
#include "CedarType.h"
|
|
|
|
|
|
|
|
#include "Mayaqua/MayaType.h"
|
|
|
|
|
2014-01-04 17:00:08 +04:00
|
|
|
#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);
|
|
|
|
|
2021-04-05 05:48:25 +03:00
|
|
|
#endif
|