File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / src / web.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 08:44:29 2013 UTC (10 years, 11 months ago) by misho
Branches: mpd, MAIN
CVS tags: v5_8p7, v5_8p1_cross, v5_8p1, v5_8, v5_7p0, v5_7, v5_6, HEAD
5.7

    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: 
   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:   };
   42: 
   43:   typedef struct web *Web;
   44: 
   45: /*
   46:  * VARIABLES
   47:  */
   48: 
   49:   extern const struct cmdtab WebSetCmds[];
   50: 
   51: 
   52: /*
   53:  * FUNCTIONS
   54:  */
   55: 
   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, char *av[], void *arg);
   60: 
   61: 
   62: #endif
   63: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>