1275970Scy/*
2275970Scy * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
3275970Scy * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
4275970Scy *
5275970Scy * Redistribution and use in source and binary forms, with or without
6275970Scy * modification, are permitted provided that the following conditions
7275970Scy * are met:
8275970Scy * 1. Redistributions of source code must retain the above copyright
9275970Scy *    notice, this list of conditions and the following disclaimer.
10275970Scy * 2. Redistributions in binary form must reproduce the above copyright
11275970Scy *    notice, this list of conditions and the following disclaimer in the
12275970Scy *    documentation and/or other materials provided with the distribution.
13275970Scy * 3. The name of the author may not be used to endorse or promote products
14275970Scy *    derived from this software without specific prior written permission.
15275970Scy *
16275970Scy * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17275970Scy * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18275970Scy * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19275970Scy * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20275970Scy * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21275970Scy * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22275970Scy * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23275970Scy * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24275970Scy * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25275970Scy * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26275970Scy */
27275970Scy#ifndef EVENT1_EVENT_H_INCLUDED_
28275970Scy#define EVENT1_EVENT_H_INCLUDED_
29275970Scy
30275970Scy/** @file event.h
31275970Scy
32275970Scy  A library for writing event-driven network servers.
33275970Scy
34275970Scy  The <event.h> header is deprecated in Libevent 2.0 and later; please
35275970Scy  use <event2/event.h> instead.  Depending on what functionality you
36275970Scy  need, you may also want to include more of the other event2/
37275970Scy  headers.
38275970Scy */
39275970Scy
40275970Scy#ifdef __cplusplus
41275970Scyextern "C" {
42275970Scy#endif
43275970Scy
44275970Scy#include <event2/event-config.h>
45275970Scy#ifdef EVENT__HAVE_SYS_TYPES_H
46275970Scy#include <sys/types.h>
47275970Scy#endif
48275970Scy#ifdef EVENT__HAVE_SYS_TIME_H
49275970Scy#include <sys/time.h>
50275970Scy#endif
51275970Scy#ifdef EVENT__HAVE_STDINT_H
52275970Scy#include <stdint.h>
53275970Scy#endif
54275970Scy#include <stdarg.h>
55275970Scy
56275970Scy/* For int types. */
57275970Scy#include <evutil.h>
58275970Scy
59275970Scy#ifdef _WIN32
60275970Scy#ifndef WIN32_LEAN_AND_MEAN
61275970Scy#define WIN32_LEAN_AND_MEAN
62275970Scy#endif
63275970Scy#include <winsock2.h>
64275970Scy#include <windows.h>
65275970Scy#undef WIN32_LEAN_AND_MEAN
66275970Scytypedef unsigned char u_char;
67275970Scytypedef unsigned short u_short;
68275970Scy#endif
69275970Scy
70275970Scy#include <event2/event_struct.h>
71275970Scy#include <event2/event.h>
72275970Scy#include <event2/event_compat.h>
73275970Scy#include <event2/buffer.h>
74275970Scy#include <event2/buffer_compat.h>
75275970Scy#include <event2/bufferevent.h>
76275970Scy#include <event2/bufferevent_struct.h>
77275970Scy#include <event2/bufferevent_compat.h>
78275970Scy#include <event2/tag.h>
79275970Scy#include <event2/tag_compat.h>
80275970Scy
81275970Scy#ifdef __cplusplus
82275970Scy}
83275970Scy#endif
84275970Scy
85275970Scy#endif /* EVENT1_EVENT_H_INCLUDED_ */
86