summaryrefslogtreecommitdiff
path: root/source4/libcli/wrepl/winsrepl.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-05 15:49:27 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-07 16:52:37 +0100
commitf1e28a0b410169d3bfc0a069bf5de50c6cc8a27c (patch)
tree297764b9f79cc6887a0490d7297a448b0ff65869 /source4/libcli/wrepl/winsrepl.c
parent2450fc1c271b9f944455370510062164e68a8d59 (diff)
downloadsamba-f1e28a0b410169d3bfc0a069bf5de50c6cc8a27c.tar.gz
samba-f1e28a0b410169d3bfc0a069bf5de50c6cc8a27c.tar.bz2
samba-f1e28a0b410169d3bfc0a069bf5de50c6cc8a27c.zip
s4:libcli/wrepl: make struct wrepl_request private to winsrepl.c
metze
Diffstat (limited to 'source4/libcli/wrepl/winsrepl.c')
-rw-r--r--source4/libcli/wrepl/winsrepl.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/source4/libcli/wrepl/winsrepl.c b/source4/libcli/wrepl/winsrepl.c
index 39d801d606..661a8613fe 100644
--- a/source4/libcli/wrepl/winsrepl.c
+++ b/source4/libcli/wrepl/winsrepl.c
@@ -33,6 +33,34 @@
#include "param/param.h"
#include "lib/util/tevent_ntstatus.h"
+enum wrepl_request_internal_state {
+ WREPL_REQUEST_INIT = 0,
+ WREPL_REQUEST_RECV = 1,
+ WREPL_REQUEST_DONE = 2,
+ WREPL_REQUEST_ERROR = 3
+};
+
+/*
+ a WINS replication request
+*/
+struct wrepl_request {
+ struct wrepl_request *next, *prev;
+ struct wrepl_socket *wrepl_socket;
+
+ enum wrepl_request_internal_state state;
+ bool trigger;
+ NTSTATUS status;
+
+ struct tevent_timer *te;
+
+ struct wrepl_packet *packet;
+
+ struct {
+ void (*fn)(struct wrepl_request *);
+ void *private_data;
+ } async;
+};
+
static struct wrepl_request *wrepl_request_finished(struct wrepl_request *req, NTSTATUS status);
/*