<isc/event.h> does not need <stddef.h>.

This commit is contained in:
David Lawrence 2000-04-28 04:34:30 +00:00
parent fc9e755ba3
commit 56433595bb
3 changed files with 14 additions and 16 deletions

View file

@ -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>.

View file

@ -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

View file

@ -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;