isc_interval_t and isc_time_t typedefs moved to isc/types.h

This commit is contained in:
David Lawrence
2000-04-25 19:33:07 +00:00
parent c23f524c07
commit 0a7bde9fa8
4 changed files with 31 additions and 34 deletions
-4
View File
@@ -70,10 +70,6 @@
***/
#include <isc/types.h>
#include <isc/result.h>
#include <isc/boolean.h>
#include <isc/time.h>
#include <isc/task.h>
#include <isc/event.h>
#include <isc/eventclass.h>
#include <isc/lang.h>
+21 -19
View File
@@ -23,35 +23,37 @@
#include <isc/list.h>
/***
*** Core Types.
*** Core Types. Alphabetized by defined type.
***/
typedef unsigned int isc_result_t;
typedef struct isc_bitstring isc_bitstring_t;
typedef struct isc_buffer isc_buffer_t;
typedef struct isc_event isc_event_t;
typedef ISC_LIST(struct isc_event) isc_eventlist_t;
typedef unsigned int isc_eventtype_t;
typedef struct isc_interval isc_interval_t;
typedef struct isc_lex isc_lex_t;
typedef struct isc_log isc_log_t;
typedef struct isc_logcategory isc_logcategory_t;
typedef struct isc_logconfig isc_logconfig_t;
typedef struct isc_logmodule isc_logmodule_t;
typedef struct isc_mem isc_mem_t;
typedef struct isc_mempool isc_mempool_t;
typedef struct isc_msgcat isc_msgcat_t;
typedef unsigned int isc_eventtype_t;
typedef struct isc_event isc_event_t;
typedef ISC_LIST(struct isc_event) isc_eventlist_t;
typedef struct isc_task isc_task_t;
typedef struct isc_netaddr isc_netaddr_t;
typedef struct isc_region isc_region_t;
typedef unsigned int isc_result_t;
typedef struct isc_rwlock isc_rwlock_t;
typedef struct isc_sockaddr isc_sockaddr_t;
typedef struct isc_socket isc_socket_t;
typedef struct isc_socketmgr isc_socketmgr_t;
typedef struct isc_socketevent isc_socketevent_t;
typedef struct isc_socketmgr isc_socketmgr_t;
typedef struct isc_task isc_task_t;
typedef struct isc_taskmgr isc_taskmgr_t;
typedef struct isc_textregion isc_textregion_t;
typedef struct isc_time isc_time_t;
typedef struct isc_timer isc_timer_t;
typedef struct isc_timermgr isc_timermgr_t;
typedef struct isc_rwlock isc_rwlock_t;
typedef struct isc_bitstring isc_bitstring_t;
typedef struct isc_sockaddr isc_sockaddr_t;
typedef struct isc_netaddr isc_netaddr_t;
typedef struct isc_buffer isc_buffer_t;
typedef struct isc_log isc_log_t;
typedef struct isc_logconfig isc_logconfig_t;
typedef struct isc_logcategory isc_logcategory_t;
typedef struct isc_logmodule isc_logmodule_t;
typedef struct isc_region isc_region_t;
typedef struct isc_textregion isc_textregion_t;
typedef struct isc_lex isc_lex_t;
typedef void (*isc_taskaction_t)(isc_task_t *, isc_event_t *);
+5 -5
View File
@@ -22,7 +22,7 @@
#include <isc/lang.h>
#include <isc/result.h>
#include <isc/boolean.h>
#include <isc/types.h>
ISC_LANG_BEGINDECLS
@@ -36,10 +36,10 @@ ISC_LANG_BEGINDECLS
*
* The contents are exposed only to allow callers to avoid dynamic allocation.
*/
typedef struct isc_interval {
struct isc_interval {
unsigned int seconds;
unsigned int nanoseconds;
} isc_interval_t;
};
extern isc_interval_t *isc_interval_zero;
@@ -79,10 +79,10 @@ isc_interval_iszero(isc_interval_t *i);
* The contents are exposed only to allow callers to avoid dynamic allocation.
*/
typedef struct isc_time {
struct isc_time {
time_t seconds;
unsigned int nanoseconds;
} isc_time_t;
};
extern isc_time_t *isc_time_epoch;
+5 -6
View File
@@ -20,10 +20,9 @@
#include <windows.h>
#include <isc/int.h>
#include <isc/lang.h>
#include <isc/result.h>
#include <isc/boolean.h>
#include <isc/types.h>
ISC_LANG_BEGINDECLS
@@ -37,9 +36,9 @@ ISC_LANG_BEGINDECLS
*
* The contents are exposed only to allow callers to avoid dynamic allocation.
*/
typedef struct isc_interval {
struct isc_interval {
isc_int64_t interval;
} isc_interval_t;
};
extern isc_interval_t *isc_interval_zero;
@@ -79,9 +78,9 @@ isc_interval_iszero(isc_interval_t *i);
* The contents are exposed only to allow callers to avoid dynamic allocation.
*/
typedef struct isc_time {
struct isc_time {
FILETIME absolute;
} isc_time_t;
};
extern isc_time_t *isc_time_epoch;