Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / include / isc / types.h
blob75b2f4a51c9dbdd79d8ea1d6cbeae22d0c01e103
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 1999-2001 Internet Software Consortium.
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
11 * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
12 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
13 * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
15 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
16 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
17 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 /* Id: types.h,v 1.33 2002/07/19 03:39:44 marka Exp */
22 #ifndef ISC_TYPES_H
23 #define ISC_TYPES_H 1
26 * OS-specific types, from the OS-specific include directories.
28 #include <isc/int.h>
29 #include <isc/offset.h>
32 * XXXDCL should isc_boolean_t be moved here, requiring an explicit include
33 * of <isc/boolean.h> when ISC_TRUE/ISC_FALSE/ISC_TF() are desired?
35 #include <isc/boolean.h>
37 * XXXDCL This is just for ISC_LIST and ISC_LINK, but gets all of the other
38 * list macros too.
40 #include <isc/list.h>
42 /***
43 *** Core Types. Alphabetized by defined type.
44 ***/
46 typedef struct isc_bitstring isc_bitstring_t;
47 typedef struct isc_buffer isc_buffer_t;
48 typedef ISC_LIST(isc_buffer_t) isc_bufferlist_t;
49 typedef struct isc_constregion isc_constregion_t;
50 typedef struct isc_consttextregion isc_consttextregion_t;
51 typedef struct isc_entropy isc_entropy_t;
52 typedef struct isc_entropysource isc_entropysource_t;
53 typedef struct isc_event isc_event_t;
54 typedef ISC_LIST(isc_event_t) isc_eventlist_t;
55 typedef unsigned int isc_eventtype_t;
56 typedef isc_uint32_t isc_fsaccess_t;
57 typedef struct isc_interface isc_interface_t;
58 typedef struct isc_interfaceiter isc_interfaceiter_t;
59 typedef struct isc_interval isc_interval_t;
60 typedef struct isc_lex isc_lex_t;
61 typedef struct isc_log isc_log_t;
62 typedef struct isc_logcategory isc_logcategory_t;
63 typedef struct isc_logconfig isc_logconfig_t;
64 typedef struct isc_logmodule isc_logmodule_t;
65 typedef struct isc_mem isc_mem_t;
66 typedef struct isc_mempool isc_mempool_t;
67 typedef struct isc_msgcat isc_msgcat_t;
68 typedef struct isc_ondestroy isc_ondestroy_t;
69 typedef struct isc_netaddr isc_netaddr_t;
70 typedef struct isc_quota isc_quota_t;
71 typedef struct isc_random isc_random_t;
72 typedef struct isc_ratelimiter isc_ratelimiter_t;
73 typedef struct isc_region isc_region_t;
74 typedef isc_uint64_t isc_resourcevalue_t;
75 typedef unsigned int isc_result_t;
76 typedef struct isc_rwlock isc_rwlock_t;
77 typedef struct isc_sockaddr isc_sockaddr_t;
78 typedef struct isc_socket isc_socket_t;
79 typedef struct isc_socketevent isc_socketevent_t;
80 typedef struct isc_socketmgr isc_socketmgr_t;
81 typedef struct isc_symtab isc_symtab_t;
82 typedef struct isc_task isc_task_t;
83 typedef ISC_LIST(isc_task_t) isc_tasklist_t;
84 typedef struct isc_taskmgr isc_taskmgr_t;
85 typedef struct isc_textregion isc_textregion_t;
86 typedef struct isc_time isc_time_t;
87 typedef struct isc_timer isc_timer_t;
88 typedef struct isc_timermgr isc_timermgr_t;
90 typedef void (*isc_taskaction_t)(isc_task_t *, isc_event_t *);
92 typedef enum {
93 isc_resource_coresize = 1,
94 isc_resource_cputime,
95 isc_resource_datasize,
96 isc_resource_filesize,
97 isc_resource_lockedmemory,
98 isc_resource_openfiles,
99 isc_resource_processes,
100 isc_resource_residentsize,
101 isc_resource_stacksize
102 } isc_resource_t;
104 #endif /* ISC_TYPES_H */