summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_wrapper.c
AgeCommit message (Collapse)AuthorFilesLines
2023-10-13tevent: split out a tevent_common_fd_disarm() helperStefan Metzmacher1-3/+1
It means tevent_trace_fd_callback(TEVENT_EVENT_TRACE_DETACH) is always called and similar future changes are only needed in one place. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2023-07-19tevent: make use of TEVENT_DEBUG() when using TEVENT_DEBUG_TRACEStefan Metzmacher1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2019-06-11lib/tevent: clang:Noel Power1-0/+2
Fixes: lib/tevent/tevent_wrapper.c:213:6: warning: Access to field 'destroyed' results in a dereference of a null pointer (loaded from variable 'glue') <--[clang] Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Gary Lockyer gary@catalyst.net.nz
2019-01-12tevent: deprecate tevent_wrapper api againStefan Metzmacher1-0/+1
Samba doesn't use it anymore and we don't want to invite new users of that api without further discussion. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Jan 12 03:12:09 CET 2019 on sn-devel-144
2018-07-24tevent: use talloc_zero_size() for the private state in ↵Stefan Metzmacher1-1/+1
tevent_context_wrapper_create() This is watch tevent_req_create() uses and what callers of tevent_context_wrapper_create() would therefore also expect. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2018-07-17tevent: fix CID 1437974 dereference after null checkRalph Boehme1-1/+1
Probably a copy/paste error from the tevent_debug() statement a few lines above as at this place we want to pass main_ev directly to tevent_debug() anyway. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Jul 17 16:21:21 CEST 2018 on sn-devel-144
2018-07-11tevent: add tevent_context_wrapper_create() infrastructureStefan Metzmacher1-0/+568
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>