diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-09-27 02:29:57 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-17 12:38:08 +0100 |
commit | 50b9f154d22f5c356e66bba341e9ee0292218cfd (patch) | |
tree | 3ead5cfe68d2dad847c8436e7bdd2c9840d78278 /libcli | |
parent | 0ed93e099af833045d9d00b9a8faeb5b93b6ef2e (diff) | |
download | samba-50b9f154d22f5c356e66bba341e9ee0292218cfd.tar.gz samba-50b9f154d22f5c356e66bba341e9ee0292218cfd.tar.xz samba-50b9f154d22f5c356e66bba341e9ee0292218cfd.zip |
tevent: add tevent_req_set_cleanup_fn()
Note that some callers used their own destructor for their
tevent_req instance, they'll just overwrite this,
which is not intended, but works without problems.
The intended way is to specify a cleanup function
and handle the TEVENT_REQ_RECEIVED state as destructor.
Note that the TEVENT_REQ_RECEIVED cleanup event might
be triggered by an explicit tevent_req_received()
in the _recv() function. The TEVENT_REQ_RECEIVED event
is only triggered once as tevent_req_received()
will remove the destructor.
So the difference compared to a custom destructor
is that the struct tevent_req itself can continue
to be there, while tevent_req_received() removed
all internal state.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'libcli')
0 files changed, 0 insertions, 0 deletions