00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef ISC_TYPES_H
00021 #define ISC_TYPES_H 1
00022
00023 #include <isc/bind9.h>
00024
00025
00026
00027
00028
00029 #include <isc/int.h>
00030 #include <isc/offset.h>
00031
00032
00033
00034
00035
00036 #include <isc/boolean.h>
00037
00038
00039
00040
00041 #include <isc/list.h>
00042
00043
00044
00045 typedef struct isc_appctx isc_appctx_t;
00046 typedef struct isc_backtrace_symmap isc_backtrace_symmap_t;
00047 typedef struct isc_buffer isc_buffer_t;
00048 typedef ISC_LIST(isc_buffer_t) isc_bufferlist_t;
00049 typedef struct isc_constregion isc_constregion_t;
00050 typedef struct isc_consttextregion isc_consttextregion_t;
00051 typedef struct isc_counter isc_counter_t;
00052 typedef isc_int16_t isc_dscp_t;
00053 typedef struct isc_entropy isc_entropy_t;
00054 typedef struct isc_entropysource isc_entropysource_t;
00055 typedef struct isc_event isc_event_t;
00056 typedef ISC_LIST(isc_event_t) isc_eventlist_t;
00057 typedef unsigned int isc_eventtype_t;
00058 typedef isc_uint32_t isc_fsaccess_t;
00059 typedef struct isc_hash isc_hash_t;
00060 typedef struct isc_httpd isc_httpd_t;
00061 typedef void (isc_httpdfree_t)(isc_buffer_t *, void *);
00062 typedef struct isc_httpdmgr isc_httpdmgr_t;
00063 typedef struct isc_httpdurl isc_httpdurl_t;
00064 typedef void (isc_httpdondestroy_t)(void *);
00065 typedef struct isc_interface isc_interface_t;
00066 typedef struct isc_interfaceiter isc_interfaceiter_t;
00067 typedef struct isc_interval isc_interval_t;
00068 typedef struct isc_lex isc_lex_t;
00069 typedef struct isc_log isc_log_t;
00070 typedef struct isc_logcategory isc_logcategory_t;
00071 typedef struct isc_logconfig isc_logconfig_t;
00072 typedef struct isc_logmodule isc_logmodule_t;
00073 typedef struct isc_mem isc_mem_t;
00074 typedef struct isc_mempool isc_mempool_t;
00075 typedef struct isc_msgcat isc_msgcat_t;
00076 typedef struct isc_ondestroy isc_ondestroy_t;
00077 typedef struct isc_netaddr isc_netaddr_t;
00078 typedef struct isc_portset isc_portset_t;
00079 typedef struct isc_quota isc_quota_t;
00080 typedef struct isc_random isc_random_t;
00081 typedef struct isc_ratelimiter isc_ratelimiter_t;
00082 typedef struct isc_region isc_region_t;
00083 typedef isc_uint64_t isc_resourcevalue_t;
00084 typedef unsigned int isc_result_t;
00085 typedef struct isc_rwlock isc_rwlock_t;
00086 typedef struct isc_sockaddr isc_sockaddr_t;
00087 typedef struct isc_socket isc_socket_t;
00088 typedef struct isc_socketevent isc_socketevent_t;
00089 typedef struct isc_socketmgr isc_socketmgr_t;
00090 typedef struct isc_stats isc_stats_t;
00091 typedef int isc_statscounter_t;
00092 typedef struct isc_symtab isc_symtab_t;
00093 typedef struct isc_task isc_task_t;
00094 typedef ISC_LIST(isc_task_t) isc_tasklist_t;
00095 typedef struct isc_taskmgr isc_taskmgr_t;
00096 typedef struct isc_textregion isc_textregion_t;
00097 typedef struct isc_time isc_time_t;
00098 typedef struct isc_timer isc_timer_t;
00099 typedef struct isc_timermgr isc_timermgr_t;
00100
00101 typedef void (*isc_taskaction_t)(isc_task_t *, isc_event_t *);
00102 typedef int (*isc_sockfdwatch_t)(isc_task_t *, isc_socket_t *, void *, int);
00103
00104
00105 typedef isc_result_t (isc_httpdaction_t)(const char *url,
00106 isc_httpdurl_t *urlinfo,
00107 const char *querystring,
00108 const char *headers,
00109 void *arg,
00110 unsigned int *retcode,
00111 const char **retmsg,
00112 const char **mimetype,
00113 isc_buffer_t *body,
00114 isc_httpdfree_t **freecb,
00115 void **freecb_args);
00116 typedef isc_boolean_t (isc_httpdclientok_t)(const isc_sockaddr_t *, void *);
00117
00118
00119 typedef enum {
00120 isc_resource_coresize = 1,
00121 isc_resource_cputime,
00122 isc_resource_datasize,
00123 isc_resource_filesize,
00124 isc_resource_lockedmemory,
00125 isc_resource_openfiles,
00126 isc_resource_processes,
00127 isc_resource_residentsize,
00128 isc_resource_stacksize
00129 } isc_resource_t;
00130
00131
00132 typedef enum {
00133 isc_statsformat_file,
00134 isc_statsformat_xml,
00135 isc_statsformat_json
00136 } isc_statsformat_t;
00137
00138 #endif