bufferevent_struct.h (1.1.1.2) | bufferevent_struct.h (1.1.1.3) |
---|---|
1/* $NetBSD: bufferevent_struct.h,v 1.1.1.2 2015/01/29 06:38:26 spz Exp $ */ 2/* $NetBSD: bufferevent_struct.h,v 1.1.1.2 2015/01/29 06:38:26 spz Exp $ */ | 1/* $NetBSD: bufferevent_struct.h,v 1.1.1.3 2017/01/31 21:14:53 christos Exp $ */ |
3/* 4 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 5 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ | 2/* 3 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 4 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ |
29#ifndef _EVENT2_BUFFEREVENT_STRUCT_H_ 30#define _EVENT2_BUFFEREVENT_STRUCT_H_ | 28#ifndef EVENT2_BUFFEREVENT_STRUCT_H_INCLUDED_ 29#define EVENT2_BUFFEREVENT_STRUCT_H_INCLUDED_ |
31 32/** @file event2/bufferevent_struct.h 33 34 Data structures for bufferevents. Using these structures may hurt forward 35 compatibility with later versions of Libevent: be careful! 36 37 @deprecated Use of bufferevent_struct.h is completely deprecated; these 38 structures are only exposed for backward compatibility with programs 39 written before Libevent 2.0 that used them. 40 */ 41 42#ifdef __cplusplus 43extern "C" { 44#endif 45 46#include <event2/event-config.h> | 30 31/** @file event2/bufferevent_struct.h 32 33 Data structures for bufferevents. Using these structures may hurt forward 34 compatibility with later versions of Libevent: be careful! 35 36 @deprecated Use of bufferevent_struct.h is completely deprecated; these 37 structures are only exposed for backward compatibility with programs 38 written before Libevent 2.0 that used them. 39 */ 40 41#ifdef __cplusplus 42extern "C" { 43#endif 44 45#include <event2/event-config.h> |
47#ifdef _EVENT_HAVE_SYS_TYPES_H | 46#ifdef EVENT__HAVE_SYS_TYPES_H |
48#include <sys/types.h> 49#endif | 47#include <sys/types.h> 48#endif |
50#ifdef _EVENT_HAVE_SYS_TIME_H | 49#ifdef EVENT__HAVE_SYS_TIME_H |
51#include <sys/time.h> 52#endif 53 54/* For int types. */ 55#include <event2/util.h> 56/* For struct event */ 57#include <event2/event_struct.h> 58 --- 51 unchanged lines hidden (view full) --- 110 are supported. */ 111 short enabled; 112}; 113 114#ifdef __cplusplus 115} 116#endif 117 | 50#include <sys/time.h> 51#endif 52 53/* For int types. */ 54#include <event2/util.h> 55/* For struct event */ 56#include <event2/event_struct.h> 57 --- 51 unchanged lines hidden (view full) --- 109 are supported. */ 110 short enabled; 111}; 112 113#ifdef __cplusplus 114} 115#endif 116 |
118#endif /* _EVENT2_BUFFEREVENT_STRUCT_H_ */ | 117#endif /* EVENT2_BUFFEREVENT_STRUCT_H_INCLUDED_ */ |