|
||||
File indexing completed on 2025-01-17 09:55:21
0001 /* 0002 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 0003 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 0004 * 0005 * Redistribution and use in source and binary forms, with or without 0006 * modification, are permitted provided that the following conditions 0007 * are met: 0008 * 1. Redistributions of source code must retain the above copyright 0009 * notice, this list of conditions and the following disclaimer. 0010 * 2. Redistributions in binary form must reproduce the above copyright 0011 * notice, this list of conditions and the following disclaimer in the 0012 * documentation and/or other materials provided with the distribution. 0013 * 3. The name of the author may not be used to endorse or promote products 0014 * derived from this software without specific prior written permission. 0015 * 0016 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 0017 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 0018 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 0019 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 0020 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 0021 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 0022 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 0023 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0024 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 0025 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0026 */ 0027 #ifndef EVENT1_EVENT_H_INCLUDED_ 0028 #define EVENT1_EVENT_H_INCLUDED_ 0029 0030 /** @file event.h 0031 0032 A library for writing event-driven network servers. 0033 0034 The <event.h> header is deprecated in Libevent 2.0 and later; please 0035 use <event2/event.h> instead. Depending on what functionality you 0036 need, you may also want to include more of the other event2/ 0037 headers. 0038 */ 0039 0040 #ifdef __cplusplus 0041 extern "C" { 0042 #endif 0043 0044 #include <event2/event-config.h> 0045 #ifdef EVENT__HAVE_SYS_TYPES_H 0046 #include <sys/types.h> 0047 #endif 0048 #ifdef EVENT__HAVE_SYS_TIME_H 0049 #include <sys/time.h> 0050 #endif 0051 #ifdef EVENT__HAVE_STDINT_H 0052 #include <stdint.h> 0053 #endif 0054 #include <stdarg.h> 0055 0056 /* For int types. */ 0057 #include <evutil.h> 0058 0059 #ifdef _WIN32 0060 #ifndef WIN32_LEAN_AND_MEAN 0061 #define WIN32_LEAN_AND_MEAN 0062 #endif 0063 #include <winsock2.h> 0064 #include <windows.h> 0065 #undef WIN32_LEAN_AND_MEAN 0066 #endif 0067 0068 #include <event2/event_struct.h> 0069 #include <event2/event.h> 0070 #include <event2/event_compat.h> 0071 #include <event2/buffer.h> 0072 #include <event2/buffer_compat.h> 0073 #include <event2/bufferevent.h> 0074 #include <event2/bufferevent_struct.h> 0075 #include <event2/bufferevent_compat.h> 0076 #include <event2/tag.h> 0077 #include <event2/tag_compat.h> 0078 0079 #ifdef __cplusplus 0080 } 0081 #endif 0082 0083 #endif /* EVENT1_EVENT_H_INCLUDED_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |