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 (11 years, 5 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


/*
 * web.h
 *
 * Written by Alexander Motin <mav@FreeBSD.org>
 */

#ifndef _WEB_H_
#define	_WEB_H_

#include "defs.h"
#include <openssl/ssl.h>
#ifdef NOLIBPDEL
#include "contrib/libpdel/http/http_defs.h"
#include "contrib/libpdel/http/http_server.h"
#include "contrib/libpdel/http/http_servlet.h"
#include "contrib/libpdel/http/servlet/basicauth.h"
#else
#include <pdel/http/http_defs.h>
#include <pdel/http/http_server.h>
#include <pdel/http/http_servlet.h>
#include <pdel/http/servlet/basicauth.h>
#endif

/*
 * DEFINITIONS
 */

  /* Configuration options */
  enum {
    WEB_AUTH	/* enable auth */
  };

  struct web {
    struct optinfo	options;
    struct u_addr 	addr;
    in_port_t		port;
    struct http_server *srv;
    struct http_servlet srvlet;
    EventRef		event;		/* connect-event */
  };

  typedef struct web *Web;

/*
 * VARIABLES
 */

  extern const struct cmdtab WebSetCmds[];


/*
 * FUNCTIONS
 */

  extern int	WebInit(Web c);
  extern int	WebOpen(Web c);
  extern int	WebClose(Web c);
  extern int	WebStat(Context ctx, int ac, char *av[], void *arg);


#endif


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