Annotation of embedaddon/mpd/src/web.h, revision 1.1.1.2
1.1 misho 1:
2: /*
3: * web.h
4: *
5: * Written by Alexander Motin <mav@FreeBSD.org>
6: */
7:
8: #ifndef _WEB_H_
9: #define _WEB_H_
10:
11: #include "defs.h"
12: #include <openssl/ssl.h>
13: #ifdef NOLIBPDEL
14: #include "contrib/libpdel/http/http_defs.h"
15: #include "contrib/libpdel/http/http_server.h"
16: #include "contrib/libpdel/http/http_servlet.h"
17: #include "contrib/libpdel/http/servlet/basicauth.h"
18: #else
19: #include <pdel/http/http_defs.h>
20: #include <pdel/http/http_server.h>
21: #include <pdel/http/http_servlet.h>
22: #include <pdel/http/servlet/basicauth.h>
23: #endif
24:
25: /*
26: * DEFINITIONS
27: */
28:
1.1.1.2 ! misho 29: /* Configuration options */
! 30: enum {
! 31: WEB_AUTH /* enable auth */
! 32: };
! 33:
! 34: struct web {
! 35: struct optinfo options;
! 36: struct u_addr addr;
! 37: in_port_t port;
! 38: struct http_server *srv;
! 39: struct http_servlet srvlet;
! 40: EventRef event; /* connect-event */
! 41: };
1.1 misho 42:
1.1.1.2 ! misho 43: typedef struct web *Web;
1.1 misho 44:
45: /*
46: * VARIABLES
47: */
48:
1.1.1.2 ! misho 49: extern const struct cmdtab WebSetCmds[];
1.1 misho 50:
51:
52: /*
53: * FUNCTIONS
54: */
55:
1.1.1.2 ! misho 56: extern int WebInit(Web c);
! 57: extern int WebOpen(Web c);
! 58: extern int WebClose(Web c);
! 59: extern int WebStat(Context ctx, int ac, const char *const av[], const void *arg);
1.1 misho 60:
61:
62: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>