diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-03-30 06:32:37 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-03-30 06:32:37 +0000 |
commit | fcff593da564d69c00a6a0bf92b97c16f4311ce1 (patch) | |
tree | 134f6ee2805e71107ed05e36a3706f5d9ed7b02f /lib/libevent/event.h | |
parent | b7aa5de49394fb2cccba24b4beb9a06d28c8058a (diff) |
introduce a way to free the base.
From libevent CVS
Diffstat (limited to 'lib/libevent/event.h')
-rw-r--r-- | lib/libevent/event.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libevent/event.h b/lib/libevent/event.h index 9e79233123c..1c8d29a2203 100644 --- a/lib/libevent/event.h +++ b/lib/libevent/event.h @@ -1,4 +1,4 @@ -/* $OpenBSD: event.h,v 1.14 2006/01/25 05:25:34 brad Exp $ */ +/* $OpenBSD: event.h,v 1.15 2006/03/30 06:32:36 brad Exp $ */ /* * Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu> @@ -125,6 +125,7 @@ struct eventop { int (*del)(void *, struct event *); int (*recalc)(struct event_base *, void *, int); int (*dispatch)(struct event_base *, void *, struct timeval *); + void (*dealloc)(void *); }; #define TIMEOUT_DEFAULT {5, 0} @@ -132,6 +133,7 @@ struct eventop { void *event_init(void); int event_dispatch(void); int event_base_dispatch(struct event_base *); +void event_base_free(struct event_base *); #define _EVENT_LOG_DEBUG 0 #define _EVENT_LOG_MSG 1 |