diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-10 15:38:22 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-10 21:50:26 +0200 |
commit | 3ed85d7c69f9b68a709572ab221b9da1c17a146e (patch) | |
tree | e7c78e47d2c36353b2c78ee9a8ab71c5952ff8f3 /libcli/cldap/cldap.c | |
parent | ec0c1f2c34ea520b4a7d636ba284a9c7d3ecd96f (diff) | |
download | samba-3ed85d7c69f9b68a709572ab221b9da1c17a146e.tar.gz samba-3ed85d7c69f9b68a709572ab221b9da1c17a146e.tar.bz2 samba-3ed85d7c69f9b68a709572ab221b9da1c17a146e.zip |
libcli/cldap: pass tevent_context to cldap_set_incoming_handler()
metze
Diffstat (limited to 'libcli/cldap/cldap.c')
-rw-r--r-- | libcli/cldap/cldap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcli/cldap/cldap.c b/libcli/cldap/cldap.c index a5a0e41598..7436bea407 100644 --- a/libcli/cldap/cldap.c +++ b/libcli/cldap/cldap.c @@ -86,6 +86,7 @@ struct cldap_socket { /* what to do with incoming request packets */ struct { + struct tevent_context *ev; void (*handler)(struct cldap_socket *, void *private_data, struct cldap_incoming *); @@ -381,6 +382,7 @@ nterror: setup a handler for incoming requests */ NTSTATUS cldap_set_incoming_handler(struct cldap_socket *c, + struct tevent_context *ev, void (*handler)(struct cldap_socket *, void *private_data, struct cldap_incoming *), @@ -394,7 +396,7 @@ NTSTATUS cldap_set_incoming_handler(struct cldap_socket *c, if (c->event.allow_poll) { return NT_STATUS_INVALID_PIPE_STATE; } - + c->incoming.ev = ev; c->incoming.handler = handler; c->incoming.private_data = private_data; |