ipc/chromium/src/third_party/libevent/event.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ipc/chromium/src/third_party/libevent/event.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,85 @@
     1.4 +/*
     1.5 + * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
     1.6 + * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
     1.7 + *
     1.8 + * Redistribution and use in source and binary forms, with or without
     1.9 + * modification, are permitted provided that the following conditions
    1.10 + * are met:
    1.11 + * 1. Redistributions of source code must retain the above copyright
    1.12 + *    notice, this list of conditions and the following disclaimer.
    1.13 + * 2. Redistributions in binary form must reproduce the above copyright
    1.14 + *    notice, this list of conditions and the following disclaimer in the
    1.15 + *    documentation and/or other materials provided with the distribution.
    1.16 + * 3. The name of the author may not be used to endorse or promote products
    1.17 + *    derived from this software without specific prior written permission.
    1.18 + *
    1.19 + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    1.20 + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    1.21 + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.22 + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
    1.23 + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
    1.24 + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    1.25 + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    1.26 + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    1.27 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    1.28 + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    1.29 + */
    1.30 +#ifndef _EVENT_H_
    1.31 +#define _EVENT_H_
    1.32 +
    1.33 +/** @file event.h
    1.34 +
    1.35 +  A library for writing event-driven network servers.
    1.36 +
    1.37 +  The <event.h> header is deprecated in Libevent 2.0 and later; please
    1.38 +  use <event2/event.h> instead.  Depending on what functionality you
    1.39 +  need, you may also want to include more of the other event2/
    1.40 +  headers.
    1.41 + */
    1.42 +
    1.43 +#ifdef __cplusplus
    1.44 +extern "C" {
    1.45 +#endif
    1.46 +
    1.47 +#include <event2/event-config.h>
    1.48 +#ifdef _EVENT_HAVE_SYS_TYPES_H
    1.49 +#include <sys/types.h>
    1.50 +#endif
    1.51 +#ifdef _EVENT_HAVE_SYS_TIME_H
    1.52 +#include <sys/time.h>
    1.53 +#endif
    1.54 +#ifdef _EVENT_HAVE_STDINT_H
    1.55 +#include <stdint.h>
    1.56 +#endif
    1.57 +#include <stdarg.h>
    1.58 +
    1.59 +/* For int types. */
    1.60 +#include <evutil.h>
    1.61 +
    1.62 +#ifdef WIN32
    1.63 +#ifndef WIN32_LEAN_AND_MEAN
    1.64 +#define WIN32_LEAN_AND_MEAN
    1.65 +#endif
    1.66 +#include <winsock2.h>
    1.67 +#include <windows.h>
    1.68 +#undef WIN32_LEAN_AND_MEAN
    1.69 +typedef unsigned char u_char;
    1.70 +typedef unsigned short u_short;
    1.71 +#endif
    1.72 +
    1.73 +#include <event2/event_struct.h>
    1.74 +#include <event2/event.h>
    1.75 +#include <event2/event_compat.h>
    1.76 +#include <event2/buffer.h>
    1.77 +#include <event2/buffer_compat.h>
    1.78 +#include <event2/bufferevent.h>
    1.79 +#include <event2/bufferevent_struct.h>
    1.80 +#include <event2/bufferevent_compat.h>
    1.81 +#include <event2/tag.h>
    1.82 +#include <event2/tag_compat.h>
    1.83 +
    1.84 +#ifdef __cplusplus
    1.85 +}
    1.86 +#endif
    1.87 +
    1.88 +#endif /* _EVENT_H_ */

mercurial