diff options
author | Rafal Szczesniak <mimir@samba.org> | 2005-05-06 07:14:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:32 -0500 |
commit | c19d6aeca70a770c76aa42117d0b6f2ada67e024 (patch) | |
tree | 84d979864b53607e26a2ce62cc7917cb351bbe61 | |
parent | 88f0a6e5e26e42fe80c0b907dabdcb16071aeff7 (diff) | |
download | samba-c19d6aeca70a770c76aa42117d0b6f2ada67e024.tar.gz samba-c19d6aeca70a770c76aa42117d0b6f2ada67e024.tar.bz2 samba-c19d6aeca70a770c76aa42117d0b6f2ada67e024.zip |
r6624: I have put monitor function pointer into userinfo call, but I haven't put
any possibility to pass such pointer from calling function... :)
rafal
(This used to be commit 08a8878436f3ba21666f43e9abafb27055a02e8a)
-rw-r--r-- | source4/libnet/userinfo.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source4/libnet/userinfo.c b/source4/libnet/userinfo.c index ed3affdb6d..07d97caae6 100644 --- a/source4/libnet/userinfo.c +++ b/source4/libnet/userinfo.c @@ -174,7 +174,8 @@ static void userinfo_handler(struct rpc_request *req) * @param io arguments and results of the call */ struct composite_context *rpc_composite_userinfo_send(struct dcerpc_pipe *p, - struct rpc_composite_userinfo *io) + struct rpc_composite_userinfo *io, + void (*monitor)(struct monitor_msg *)) { struct composite_context *c; struct userinfo_state *s; @@ -192,9 +193,10 @@ struct composite_context *rpc_composite_userinfo_send(struct dcerpc_pipe *p, sid = dom_sid_parse_talloc(s, io->in.sid); if (sid == NULL) goto failure; - c->state = SMBCLI_REQUEST_SEND; - c->private = s; - c->event_ctx = dcerpc_event_context(p); + c->state = SMBCLI_REQUEST_SEND; + c->private = s; + c->event_ctx = dcerpc_event_context(p); + c->monitor_fn = monitor; /* preparing parameters to send rpc request */ s->openuser.in.domain_handle = &io->in.domain_handle; @@ -261,6 +263,6 @@ NTSTATUS rpc_composite_userinfo(struct dcerpc_pipe *pipe, TALLOC_CTX *mem_ctx, struct rpc_composite_userinfo *io) { - struct composite_context *c = rpc_composite_userinfo_send(pipe, io); + struct composite_context *c = rpc_composite_userinfo_send(pipe, io, NULL); return rpc_composite_userinfo_recv(c, mem_ctx, io); } |