summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-03-29 18:59:56 +0200
committerVolker Lendecke <vl@samba.org>2009-04-06 21:32:06 +0200
commit03becb506613b4ec1d365ff2bbd63e53b0847805 (patch)
treea96633af1273e90bafb16ec9f72cc333c7e5cf42 /source3/rpc_client
parent95c792b6afe1e4a3176d95eb451b67ba1ce4a380 (diff)
downloadsamba-03becb506613b4ec1d365ff2bbd63e53b0847805.tar.gz
samba-03becb506613b4ec1d365ff2bbd63e53b0847805.tar.bz2
samba-03becb506613b4ec1d365ff2bbd63e53b0847805.zip
Convert cli_negprot to tevent_req
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/rpc_transport_smbd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/rpc_client/rpc_transport_smbd.c b/source3/rpc_client/rpc_transport_smbd.c
index bbd9b24a91..c1cf9fb24e 100644
--- a/source3/rpc_client/rpc_transport_smbd.c
+++ b/source3/rpc_client/rpc_transport_smbd.c
@@ -128,7 +128,7 @@ struct get_anon_ipc_state {
struct cli_state *cli;
};
-static void get_anon_ipc_negprot_done(struct async_req *subreq);
+static void get_anon_ipc_negprot_done(struct tevent_req *subreq);
static void get_anon_ipc_sesssetup_done(struct tevent_req *subreq);
static void get_anon_ipc_tcon_done(struct async_req *subreq);
@@ -136,7 +136,8 @@ static struct async_req *get_anon_ipc_send(TALLOC_CTX *mem_ctx,
struct event_context *ev,
struct cli_state *cli)
{
- struct async_req *result, *subreq;
+ struct async_req *result;
+ struct tevent_req *subreq;
struct get_anon_ipc_state *state;
if (!async_req_setup(mem_ctx, &result, &state,
@@ -151,18 +152,17 @@ static struct async_req *get_anon_ipc_send(TALLOC_CTX *mem_ctx,
if (subreq == NULL) {
goto fail;
}
- subreq->async.fn = get_anon_ipc_negprot_done;
- subreq->async.priv = result;
+ tevent_req_set_callback(subreq, get_anon_ipc_negprot_done, result);
return result;
fail:
TALLOC_FREE(result);
return NULL;
}
-static void get_anon_ipc_negprot_done(struct async_req *subreq)
+static void get_anon_ipc_negprot_done(struct tevent_req *subreq)
{
- struct async_req *req = talloc_get_type_abort(
- subreq->async.priv, struct async_req);
+ struct async_req *req = tevent_req_callback_data(
+ subreq, struct async_req);
struct get_anon_ipc_state *state = talloc_get_type_abort(
req->private_data, struct get_anon_ipc_state);
struct tevent_req *subreq2;