mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 10:32:13 -04:00
<isc/event.h> does not need <stddef.h>.
This commit is contained in:
parent
fc9e755ba3
commit
56433595bb
3 changed files with 14 additions and 16 deletions
2
CHANGES
2
CHANGES
|
|
@ -1,3 +1,5 @@
|
|||
123. [cleanup] <isc/event.h> does not need <stddef.h>.
|
||||
|
||||
122. [cleanup] <isc/task.h> does not need <isc/mem.h> or
|
||||
<isc/result.h>.
|
||||
|
||||
|
|
|
|||
|
|
@ -18,13 +18,9 @@
|
|||
#ifndef ISC_EVENT_H
|
||||
#define ISC_EVENT_H 1
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <isc/lang.h>
|
||||
#include <isc/types.h>
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
/*****
|
||||
***** Events.
|
||||
*****/
|
||||
|
|
@ -93,13 +89,14 @@ struct isc_event {
|
|||
#define ISC_EVENTTYPE_FIRSTEVENT 0x00000000
|
||||
#define ISC_EVENTTYPE_LASTEVENT 0xffffffff
|
||||
|
||||
isc_event_t * isc_event_allocate(isc_mem_t *,
|
||||
void *,
|
||||
isc_eventtype_t,
|
||||
isc_taskaction_t,
|
||||
void *arg,
|
||||
size_t);
|
||||
void isc_event_free(isc_event_t **);
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
isc_event_t *
|
||||
isc_event_allocate(isc_mem_t *, void *, isc_eventtype_t, isc_taskaction_t,
|
||||
void *arg, size_t);
|
||||
|
||||
void
|
||||
isc_event_free(isc_event_t **);
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@
|
|||
|
||||
#include <config.h>
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include <isc/assertions.h>
|
||||
#include <isc/event.h>
|
||||
#include <isc/ondestroy.h>
|
||||
|
|
@ -33,10 +35,9 @@ isc_ondestroy_init(isc_ondestroy_t *ondest) {
|
|||
ISC_LIST_INIT(ondest->events);
|
||||
}
|
||||
|
||||
|
||||
isc_result_t
|
||||
isc_ondestroy_register(isc_ondestroy_t *ondest,
|
||||
isc_task_t *task, isc_event_t **eventp)
|
||||
isc_ondestroy_register(isc_ondestroy_t *ondest, isc_task_t *task,
|
||||
isc_event_t **eventp)
|
||||
{
|
||||
isc_event_t *theevent;
|
||||
isc_task_t *thetask = NULL;
|
||||
|
|
@ -58,8 +59,6 @@ isc_ondestroy_register(isc_ondestroy_t *ondest,
|
|||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
isc_ondestroy_notify(isc_ondestroy_t *ondest, void *sender) {
|
||||
isc_event_t *eventp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue