From 88be27dc0613eb15f6f5499ea18b8253631ad92e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 23 Nov 2010 12:26:46 -0500 Subject: [PATCH] Document event_get_assignment --- include/event2/event.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/event2/event.h b/include/event2/event.h index f2ee18d1..ce677f1c 100644 --- a/include/event2/event.h +++ b/include/event2/event.h @@ -632,7 +632,16 @@ event_callback_fn event_get_callback(const struct event *ev); */ void *event_get_callback_arg(const struct event *ev); -void event_get_assignment(const struct event *event, struct event_base **base_out, evutil_socket_t *fd_out, short *events_out, event_callback_fn *callback_out, void **arg_out); +/** + Extract _all_ of arguments given to construct a given event. The + event_base is copied into *base_out, the fd is copied into *fd_out, and so + on. + + If any of the "_out" arguments is NULL, it will be ignored. + */ +void event_get_assignment(const struct event *event, + struct event_base **base_out, evutil_socket_t *fd_out, short *events_out, + event_callback_fn *callback_out, void **arg_out); /** Return the size of struct event that the Libevent library was compiled -- 2.40.0