1290001Sglebius/* 2290001Sglebius * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 3290001Sglebius * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 4290001Sglebius * 5290001Sglebius * Redistribution and use in source and binary forms, with or without 6290001Sglebius * modification, are permitted provided that the following conditions 7290001Sglebius * are met: 8290001Sglebius * 1. Redistributions of source code must retain the above copyright 9290001Sglebius * notice, this list of conditions and the following disclaimer. 10290001Sglebius * 2. Redistributions in binary form must reproduce the above copyright 11290001Sglebius * notice, this list of conditions and the following disclaimer in the 12290001Sglebius * documentation and/or other materials provided with the distribution. 13290001Sglebius * 3. The name of the author may not be used to endorse or promote products 14290001Sglebius * derived from this software without specific prior written permission. 15290001Sglebius * 16290001Sglebius * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17290001Sglebius * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18290001Sglebius * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19290001Sglebius * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20290001Sglebius * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21290001Sglebius * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22290001Sglebius * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23290001Sglebius * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24290001Sglebius * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25290001Sglebius * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26290001Sglebius */ 27290001Sglebius#ifndef EVENT1_EVENT_H_INCLUDED_ 28290001Sglebius#define EVENT1_EVENT_H_INCLUDED_ 29290001Sglebius 30290001Sglebius/** @file event.h 31290001Sglebius 32290001Sglebius A library for writing event-driven network servers. 33290001Sglebius 34290001Sglebius The <event.h> header is deprecated in Libevent 2.0 and later; please 35290001Sglebius use <event2/event.h> instead. Depending on what functionality you 36290001Sglebius need, you may also want to include more of the other event2/ 37290001Sglebius headers. 38290001Sglebius */ 39290001Sglebius 40290001Sglebius#ifdef __cplusplus 41290001Sglebiusextern "C" { 42290001Sglebius#endif 43290001Sglebius 44290001Sglebius#include <event2/event-config.h> 45290001Sglebius#ifdef EVENT__HAVE_SYS_TYPES_H 46290001Sglebius#include <sys/types.h> 47290001Sglebius#endif 48290001Sglebius#ifdef EVENT__HAVE_SYS_TIME_H 49290001Sglebius#include <sys/time.h> 50290001Sglebius#endif 51290001Sglebius#ifdef EVENT__HAVE_STDINT_H 52290001Sglebius#include <stdint.h> 53290001Sglebius#endif 54290001Sglebius#include <stdarg.h> 55290001Sglebius 56290001Sglebius/* For int types. */ 57290001Sglebius#include <evutil.h> 58290001Sglebius 59290001Sglebius#ifdef _WIN32 60290001Sglebius#ifndef WIN32_LEAN_AND_MEAN 61290001Sglebius#define WIN32_LEAN_AND_MEAN 62290001Sglebius#endif 63290001Sglebius#include <winsock2.h> 64290001Sglebius#include <windows.h> 65290001Sglebius#undef WIN32_LEAN_AND_MEAN 66290001Sglebiustypedef unsigned char u_char; 67290001Sglebiustypedef unsigned short u_short; 68290001Sglebius#endif 69290001Sglebius 70290001Sglebius#include <event2/event_struct.h> 71290001Sglebius#include <event2/event.h> 72290001Sglebius#include <event2/event_compat.h> 73290001Sglebius#include <event2/buffer.h> 74290001Sglebius#include <event2/buffer_compat.h> 75290001Sglebius#include <event2/bufferevent.h> 76290001Sglebius#include <event2/bufferevent_struct.h> 77290001Sglebius#include <event2/bufferevent_compat.h> 78290001Sglebius#include <event2/tag.h> 79290001Sglebius#include <event2/tag_compat.h> 80290001Sglebius 81290001Sglebius#ifdef __cplusplus 82290001Sglebius} 83290001Sglebius#endif 84290001Sglebius 85290001Sglebius#endif /* EVENT1_EVENT_H_INCLUDED_ */ 86