version 1.1.1.1, 2013/07/22 08:44:29
|
version 1.1.1.2, 2021/03/17 00:39:23
|
Line 26
|
Line 26
|
* DEFINITIONS |
* DEFINITIONS |
*/ |
*/ |
|
|
/* Configuration options */ | /* Configuration options */ |
enum { | enum { |
WEB_AUTH /* enable auth */ | WEB_AUTH /* enable auth */ |
}; | }; |
|
|
struct web { | struct web { |
struct optinfo options; | struct optinfo options; |
struct u_addr addr; | struct u_addr addr; |
in_port_t port; | in_port_t port; |
struct http_server *srv; | struct http_server *srv; |
struct http_servlet srvlet; | struct http_servlet srvlet; |
EventRef event; /* connect-event */ | EventRef event; /* connect-event */ |
}; | }; |
|
|
typedef struct web *Web; | typedef struct web *Web; |
|
|
/* |
/* |
* VARIABLES |
* VARIABLES |
*/ |
*/ |
|
|
extern const struct cmdtab WebSetCmds[]; | extern const struct cmdtab WebSetCmds[]; |
|
|
|
|
/* |
/* |
* FUNCTIONS |
* FUNCTIONS |
*/ |
*/ |
|
|
extern int WebInit(Web c); | extern int WebInit(Web c); |
extern int WebOpen(Web c); | extern int WebOpen(Web c); |
extern int WebClose(Web c); | extern int WebClose(Web c); |
extern int WebStat(Context ctx, int ac, char *av[], void *arg); | extern int WebStat(Context ctx, int ac, const char *const av[], const void *arg); |
|
|
|
|
#endif |
#endif |
|
|