summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-05 14:44:23 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-07 16:52:35 +0100
commit311a60df9cdbbe8641e7a69ddc1dadd5a7ac7f05 (patch)
tree095c19f43eb854036880900d61f494cefe3c647d
parentfc41e4791f3a59cd391d63ebc155407ea4787bae (diff)
downloadsamba-311a60df9cdbbe8641e7a69ddc1dadd5a7ac7f05.tar.gz
samba-311a60df9cdbbe8641e7a69ddc1dadd5a7ac7f05.tar.bz2
samba-311a60df9cdbbe8641e7a69ddc1dadd5a7ac7f05.zip
s4:libcli/wrepl: move wrepl_request_send/recv => wrepl_request_internal_send/recv
metze
-rw-r--r--source4/libcli/wrepl/winsrepl.c26
1 files changed, 20 insertions, 6 deletions
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
*/