summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-10 15:38:22 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-10 21:50:26 +0200
commit3ed85d7c69f9b68a709572ab221b9da1c17a146e (patch)
treee7c78e47d2c36353b2c78ee9a8ab71c5952ff8f3 /libcli
parentec0c1f2c34ea520b4a7d636ba284a9c7d3ecd96f (diff)
downloadsamba-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')
-rw-r--r--libcli/cldap/cldap.c4
-rw-r--r--libcli/cldap/cldap.h1
2 files changed, 4 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;
diff --git a/libcli/cldap/cldap.h b/libcli/cldap/cldap.h
index d1197481fb..0098da521a 100644
--- a/libcli/cldap/cldap.h
+++ b/libcli/cldap/cldap.h
@@ -58,6 +58,7 @@ NTSTATUS cldap_socket_init(TALLOC_CTX *mem_ctx,
struct cldap_socket **_cldap);
NTSTATUS cldap_set_incoming_handler(struct cldap_socket *cldap,
+ struct tevent_context *ev,
void (*handler)(struct cldap_socket *,
void *private_data,
struct cldap_incoming *),