Annotation of embedaddon/mpd/src/web.h, revision 1.1

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: 
        !            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>