From 3532882d02ff30c1ea47dd433715246351297e4e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 27 Jul 2009 14:28:52 +0200 Subject: Lift the event loop in rpc_api_pipe_req() one level into cli_do_rpc_ndr --- source3/rpc_client/cli_pipe.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'source3/rpc_client/cli_pipe.c') diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 70660da8b2..c9f17c65ad 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2284,39 +2284,6 @@ NTSTATUS rpc_api_pipe_req_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, return NT_STATUS_OK; } -NTSTATUS rpc_api_pipe_req(TALLOC_CTX *mem_ctx, struct rpc_pipe_client *cli, - uint8 op_num, - prs_struct *in_data, - prs_struct *out_data) -{ - TALLOC_CTX *frame = talloc_stackframe(); - struct event_context *ev; - struct tevent_req *req; - NTSTATUS status = NT_STATUS_OK; - - ev = event_context_init(frame); - if (ev == NULL) { - status = NT_STATUS_NO_MEMORY; - goto fail; - } - - req = rpc_api_pipe_req_send(frame, ev, cli, op_num, in_data); - if (req == NULL) { - status = NT_STATUS_NO_MEMORY; - goto fail; - } - - if (!tevent_req_poll(req, ev)) { - status = map_nt_error_from_unix(errno); - goto fail; - } - - status = rpc_api_pipe_req_recv(req, mem_ctx, out_data); - fail: - TALLOC_FREE(frame); - return status; -} - #if 0 /**************************************************************************** Set the handle state. -- cgit