From 311a60df9cdbbe8641e7a69ddc1dadd5a7ac7f05 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 5 Mar 2010 14:44:23 +0100 Subject: s4:libcli/wrepl: move wrepl_request_send/recv => wrepl_request_internal_send/recv metze --- source4/libcli/wrepl/winsrepl.c | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'source4/libcli') diff --git a/source4/libcli/wrepl/winsrepl.c b/source4/libcli/wrepl/winsrepl.c index aaf57f9ce8..2b14de30f4 100644 --- a/source4/libcli/wrepl/winsrepl.c +++ b/source4/libcli/wrepl/winsrepl.c @@ -499,9 +499,9 @@ static int wrepl_send_ctrl_destructor(struct wrepl_send_ctrl_state *s) /* send a generic wins replication request */ -struct wrepl_request *wrepl_request_send(struct wrepl_socket *wrepl_socket, - struct wrepl_packet *packet, - struct wrepl_send_ctrl *ctrl) +static struct wrepl_request *wrepl_request_internal_send(struct wrepl_socket *wrepl_socket, + struct wrepl_packet *packet, + struct wrepl_send_ctrl *ctrl) { struct wrepl_request *req; struct wrepl_wrap wrap; @@ -564,9 +564,9 @@ struct wrepl_request *wrepl_request_send(struct wrepl_socket *wrepl_socket, /* receive a generic WINS replication reply */ -NTSTATUS wrepl_request_recv(struct wrepl_request *req, - TALLOC_CTX *mem_ctx, - struct wrepl_packet **packet) +static NTSTATUS wrepl_request_internal_recv(struct wrepl_request *req, + TALLOC_CTX *mem_ctx, + struct wrepl_packet **packet) { NTSTATUS status = wrepl_request_wait(req); if (NT_STATUS_IS_OK(status) && packet) { @@ -576,6 +576,20 @@ NTSTATUS wrepl_request_recv(struct wrepl_request *req, return status; } +struct wrepl_request *wrepl_request_send(struct wrepl_socket *wrepl_socket, + struct wrepl_packet *packet, + struct wrepl_send_ctrl *ctrl) +{ + return wrepl_request_internal_send(wrepl_socket, packet, ctrl); +} + +NTSTATUS wrepl_request_recv(struct wrepl_request *req, + TALLOC_CTX *mem_ctx, + struct wrepl_packet **packet) +{ + return wrepl_request_internal_recv(req, mem_ctx, packet); +} + /* a full WINS replication request/response */ -- cgit