From c976d456d2f564764cd1a12f2d1fe37ae4023d17 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Mon, 18 Feb 2019 19:33:29 +0100 Subject: [PATCH] s3:rpc_server: Make dcerpc_ncacn_packet_process public In preparation to remove the named_pipe_client struct, this function will be set as tevent callback from rpc_ncacn_np.c Signed-off-by: Samuel Cabrero Reviewed-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- source3/rpc_server/rpc_server.c | 4 +--- source3/rpc_server/rpc_server.h | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c index 8eb138434d1..e8752d5ec2b 100644 --- a/source3/rpc_server/rpc_server.c +++ b/source3/rpc_server/rpc_server.c @@ -1027,8 +1027,6 @@ NTSTATUS dcerpc_ncacn_conn_init(TALLOC_CTX *mem_ctx, return NT_STATUS_OK; } -static void dcerpc_ncacn_packet_process(struct tevent_req *subreq); - static void dcerpc_ncacn_packet_done(struct tevent_req *subreq); static void dcesrv_ncacn_accept_step2(struct dcerpc_ncacn_conn *ncacn_conn); @@ -1246,7 +1244,7 @@ static void dcesrv_ncacn_accept_step2(struct dcerpc_ncacn_conn *ncacn_conn) return; } -static void dcerpc_ncacn_packet_process(struct tevent_req *subreq) +void dcerpc_ncacn_packet_process(struct tevent_req *subreq) { struct dcerpc_ncacn_conn *ncacn_conn = tevent_req_callback_data(subreq, struct dcerpc_ncacn_conn); diff --git a/source3/rpc_server/rpc_server.h b/source3/rpc_server/rpc_server.h index 34651a821a0..7223890d057 100644 --- a/source3/rpc_server/rpc_server.h +++ b/source3/rpc_server/rpc_server.h @@ -153,5 +153,6 @@ void dcerpc_ncacn_accept(struct tevent_context *ev_ctx, dcerpc_ncacn_disconnect_fn disconnect_fn, dcerpc_ncacn_termination_fn termination_fn, void *termination_data); +void dcerpc_ncacn_packet_process(struct tevent_req *subreq); #endif /* _PRC_SERVER_H_ */