xref: /openbsd/usr.bin/dig/lib/isc/include/isc/types.h (revision b1a294b5)
1 /*
2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14  * PERFORMANCE OF THIS SOFTWARE.
15  */
16 
17 /* $Id: types.h,v 1.7 2020/09/15 11:47:42 florian Exp $ */
18 
19 #ifndef ISC_TYPES_H
20 #define ISC_TYPES_H 1
21 
22 /*! \file isc/types.h
23  * \brief
24  * OS-specific types, from the OS-specific include directories.
25  */
26 
27 /*
28  * XXXDCL This is just for ISC_LIST and ISC_LINK, but gets all of the other
29  * list macros too.
30  */
31 #include <isc/list.h>
32 
33 /* Core Types.  Alphabetized by defined type. */
34 
35 typedef struct isc_buffer		isc_buffer_t;		/*%< Buffer */
36 typedef ISC_LIST(isc_buffer_t)		isc_bufferlist_t;	/*%< Buffer List */
37 typedef struct isc_event		isc_event_t;		/*%< Event */
38 typedef ISC_LIST(isc_event_t)		isc_eventlist_t;	/*%< Event List */
39 typedef unsigned int			isc_eventtype_t;	/*%< Event Type */
40 typedef struct isc_lex			isc_lex_t;		/*%< Lex */
41 typedef struct isc_log 			isc_log_t;		/*%< Log */
42 typedef struct isc_logcategory		isc_logcategory_t;	/*%< Log Category */
43 typedef struct isc_logconfig		isc_logconfig_t;	/*%< Log Configuration */
44 typedef struct isc_logmodule		isc_logmodule_t;	/*%< Log Module */
45 typedef struct isc_region		isc_region_t;		/*%< Region */
46 typedef unsigned int			isc_result_t;		/*%< Result */
47 typedef struct isc_socket		isc_socket_t;		/*%< Socket */
48 typedef struct isc_socketevent		isc_socketevent_t;	/*%< Socket Event */
49 typedef struct isc_socketmgr		isc_socketmgr_t;	/*%< Socket Manager */
50 typedef struct isc_symtab		isc_symtab_t;		/*%< Symbol Table */
51 typedef struct isc_task			isc_task_t;		/*%< Task */
52 typedef struct isc_taskmgr		isc_taskmgr_t;		/*%< Task Manager */
53 typedef struct isc_textregion		isc_textregion_t;	/*%< Text Region */
54 typedef struct isc_timer		isc_timer_t;		/*%< Timer */
55 typedef struct isc_timermgr		isc_timermgr_t;		/*%< Timer Manager */
56 
57 typedef void (*isc_taskaction_t)(isc_task_t *, isc_event_t *);
58 
59 #endif /* ISC_TYPES_H */
60