Blame libevent/event.h

Packit e9ba0d
/*
Packit e9ba0d
 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
Packit e9ba0d
 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
Packit e9ba0d
 *
Packit e9ba0d
 * Redistribution and use in source and binary forms, with or without
Packit e9ba0d
 * modification, are permitted provided that the following conditions
Packit e9ba0d
 * are met:
Packit e9ba0d
 * 1. Redistributions of source code must retain the above copyright
Packit e9ba0d
 *    notice, this list of conditions and the following disclaimer.
Packit e9ba0d
 * 2. Redistributions in binary form must reproduce the above copyright
Packit e9ba0d
 *    notice, this list of conditions and the following disclaimer in the
Packit e9ba0d
 *    documentation and/or other materials provided with the distribution.
Packit e9ba0d
 * 3. The name of the author may not be used to endorse or promote products
Packit e9ba0d
 *    derived from this software without specific prior written permission.
Packit e9ba0d
 *
Packit e9ba0d
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Packit e9ba0d
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Packit e9ba0d
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
Packit e9ba0d
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
Packit e9ba0d
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
Packit e9ba0d
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Packit e9ba0d
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Packit e9ba0d
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Packit e9ba0d
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
Packit e9ba0d
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit e9ba0d
 */
Packit e9ba0d
#ifndef _EVENT_H_
Packit e9ba0d
#define _EVENT_H_
Packit e9ba0d
Packit e9ba0d
/** @file event.h
Packit e9ba0d
Packit e9ba0d
  A library for writing event-driven network servers.
Packit e9ba0d
Packit e9ba0d
  The <event.h> header is deprecated in Libevent 2.0 and later; please
Packit e9ba0d
  use <event2/event.h> instead.  Depending on what functionality you
Packit e9ba0d
  need, you may also want to include more of the other event2/
Packit e9ba0d
  headers.
Packit e9ba0d
 */
Packit e9ba0d
Packit e9ba0d
#ifdef __cplusplus
Packit e9ba0d
extern "C" {
Packit e9ba0d
#endif
Packit e9ba0d
Packit e9ba0d
#include <event2/event-config.h>
Packit e9ba0d
#ifdef _EVENT_HAVE_SYS_TYPES_H
Packit e9ba0d
#include <sys/types.h>
Packit e9ba0d
#endif
Packit e9ba0d
#ifdef _EVENT_HAVE_SYS_TIME_H
Packit e9ba0d
#include <sys/time.h>
Packit e9ba0d
#endif
Packit e9ba0d
#ifdef _EVENT_HAVE_STDINT_H
Packit e9ba0d
#include <stdint.h>
Packit e9ba0d
#endif
Packit e9ba0d
#include <stdarg.h>
Packit e9ba0d
Packit e9ba0d
/* For int types. */
Packit e9ba0d
#include <evutil.h>
Packit e9ba0d
Packit e9ba0d
#ifdef WIN32
Packit e9ba0d
#ifndef WIN32_LEAN_AND_MEAN
Packit e9ba0d
#define WIN32_LEAN_AND_MEAN
Packit e9ba0d
#endif
Packit e9ba0d
#include <winsock2.h>
Packit e9ba0d
#include <windows.h>
Packit e9ba0d
#undef WIN32_LEAN_AND_MEAN
Packit e9ba0d
typedef unsigned char u_char;
Packit e9ba0d
typedef unsigned short u_short;
Packit e9ba0d
#endif
Packit e9ba0d
Packit e9ba0d
#include <event2/event_struct.h>
Packit e9ba0d
#include <event2/event.h>
Packit e9ba0d
#include <event2/event_compat.h>
Packit e9ba0d
#include <event2/buffer.h>
Packit e9ba0d
#include <event2/buffer_compat.h>
Packit e9ba0d
#include <event2/bufferevent.h>
Packit e9ba0d
#include <event2/bufferevent_struct.h>
Packit e9ba0d
#include <event2/bufferevent_compat.h>
Packit e9ba0d
#include <event2/tag.h>
Packit e9ba0d
#include <event2/tag_compat.h>
Packit e9ba0d
Packit e9ba0d
#ifdef __cplusplus
Packit e9ba0d
}
Packit e9ba0d
#endif
Packit e9ba0d
Packit e9ba0d
#endif /* _EVENT_H_ */