dns_struct.h (1.1.1.2) | dns_struct.h (1.1.1.3) |
---|---|
1/* $NetBSD: dns_struct.h,v 1.1.1.2 2015/01/29 06:38:26 spz Exp $ */ 2/* $NetBSD: dns_struct.h,v 1.1.1.2 2015/01/29 06:38:26 spz Exp $ */ | 1/* $NetBSD: dns_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_DNS_STRUCT_H_ 30#define _EVENT2_DNS_STRUCT_H_ | 28#ifndef EVENT2_DNS_STRUCT_H_INCLUDED_ 29#define EVENT2_DNS_STRUCT_H_INCLUDED_ |
31 32/** @file event2/dns_struct.h 33 34 Data structures for dns. Using these structures may hurt forward 35 compatibility with later versions of Libevent: be careful! 36 37 */ 38 39#ifdef __cplusplus 40extern "C" { 41#endif 42 43#include <event2/event-config.h> | 30 31/** @file event2/dns_struct.h 32 33 Data structures for dns. Using these structures may hurt forward 34 compatibility with later versions of Libevent: be careful! 35 36 */ 37 38#ifdef __cplusplus 39extern "C" { 40#endif 41 42#include <event2/event-config.h> |
44#ifdef _EVENT_HAVE_SYS_TYPES_H | 43#ifdef EVENT__HAVE_SYS_TYPES_H |
45#include <sys/types.h> 46#endif | 44#include <sys/types.h> 45#endif |
47#ifdef _EVENT_HAVE_SYS_TIME_H | 46#ifdef EVENT__HAVE_SYS_TIME_H |
48#include <sys/time.h> 49#endif 50 51/* For int types. */ 52#include <event2/util.h> 53 54/* 55 * Structures used to implement a DNS server. --- 17 unchanged lines hidden (view full) --- 73#endif 74 char name[1]; 75}; 76 77#ifdef __cplusplus 78} 79#endif 80 | 47#include <sys/time.h> 48#endif 49 50/* For int types. */ 51#include <event2/util.h> 52 53/* 54 * Structures used to implement a DNS server. --- 17 unchanged lines hidden (view full) --- 72#endif 73 char name[1]; 74}; 75 76#ifdef __cplusplus 77} 78#endif 79 |
81#endif /* _EVENT2_DNS_STRUCT_H_ */ | 80#endif /* EVENT2_DNS_STRUCT_H_INCLUDED_ */ |
82 | 81 |