tevent: add tevent_context_wrapper_create() infrastructure
authorStefan Metzmacher <metze@samba.org>
Tue, 22 Jul 2014 14:51:38 +0000 (16:51 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 11 Jul 2018 21:04:21 +0000 (23:04 +0200)
commitac9569b1a61319166e497d51917db7f04a2746ce
tree51af89ac5bb309f5b977d17c94cb3b418bce56ed
parente239cbc1fd7ad3008ecb423f7dcb82651d2df420
tevent: add tevent_context_wrapper_create() infrastructure

This allows to specify wrapper tevent_contexts, which adds the ability
to run functions before and after the event handler functions.

This can be used to implement impersonation hooks
or advanced debugging/profiling hooks.

We'll undo the 0.9.36 ABI change on the 0.9.37 release
at the end of this patchset.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
14 files changed:
lib/tevent/ABI/tevent-0.9.36.sigs
lib/tevent/tevent.c
lib/tevent/tevent.h
lib/tevent/tevent_debug.c
lib/tevent/tevent_epoll.c
lib/tevent/tevent_fd.c
lib/tevent/tevent_immediate.c
lib/tevent/tevent_internal.h
lib/tevent/tevent_poll.c
lib/tevent/tevent_signal.c
lib/tevent/tevent_threads.c
lib/tevent/tevent_timed.c
lib/tevent/tevent_wrapper.c [new file with mode: 0644]
lib/tevent/wscript