libevent
event.h
00001 /*
00002  * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
00003  * Copyright (c) 2007-2010 Niels Provos and Nick Mathewson
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  * 3. The name of the author may not be used to endorse or promote products
00014  *    derived from this software without specific prior written permission.
00015  *
00016  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
00017  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00018  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
00019  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
00020  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
00021  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00022  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00023  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00024  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
00025  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026  */
00027 #ifndef _EVENT_H_
00028 #define _EVENT_H_
00029 
00161 #ifdef __cplusplus
00162 extern "C" {
00163 #endif
00164 
00165 #include <event2/event-config.h>
00166 #ifdef _EVENT_HAVE_SYS_TYPES_H
00167 #include <sys/types.h>
00168 #endif
00169 #ifdef _EVENT_HAVE_SYS_TIME_H
00170 #include <sys/time.h>
00171 #endif
00172 #ifdef _EVENT_HAVE_STDINT_H
00173 #include <stdint.h>
00174 #endif
00175 #include <stdarg.h>
00176 
00177 /* For int types. */
00178 #include <evutil.h>
00179 
00180 #ifdef WIN32
00181 #ifndef WIN32_LEAN_AND_MEAN
00182 #define WIN32_LEAN_AND_MEAN
00183 #endif
00184 #include <winsock2.h>
00185 #include <windows.h>
00186 #undef WIN32_LEAN_AND_MEAN
00187 typedef unsigned char u_char;
00188 typedef unsigned short u_short;
00189 #endif
00190 
00191 #include <event2/event_struct.h>
00192 #include <event2/event.h>
00193 #include <event2/event_compat.h>
00194 #include <event2/buffer.h>
00195 #include <event2/buffer_compat.h>
00196 #include <event2/bufferevent.h>
00197 #include <event2/bufferevent_struct.h>
00198 #include <event2/bufferevent_compat.h>
00199 #include <event2/tag.h>
00200 #include <event2/tag_compat.h>
00201 
00202 #ifdef __cplusplus
00203 }
00204 #endif
00205 
00206 #endif /* _EVENT_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines