summaryrefslogtreecommitdiff
path: root/source4/libcli/wins/winsrepl.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-18 23:13:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:47 -0500
commit42d6a4c4f0d87e8e1bdd1e3152e592822bf95337 (patch)
tree18c0a74f42f9a01e6d6a37426c37c086cce29a2f /source4/libcli/wins/winsrepl.h
parent8ce2133e2c5ce70a3802ca163ce4e857726d64ae (diff)
downloadsamba-42d6a4c4f0d87e8e1bdd1e3152e592822bf95337.tar.gz
samba-42d6a4c4f0d87e8e1bdd1e3152e592822bf95337.tar.bz2
samba-42d6a4c4f0d87e8e1bdd1e3152e592822bf95337.zip
r5451: - added separate wrepl_associate(), wrepl_pull_table() and wrepl_pull_names() functions, with reasonable
parameters, so callers don't need to deal directly with wins replication packet structures - converted the NBT-WINSREPLICATION torture test to use the new APIs (This used to be commit cec1672662b7e5b1bdf843e9dee317aa4b03f719)
Diffstat (limited to 'source4/libcli/wins/winsrepl.h')
-rw-r--r--source4/libcli/wins/winsrepl.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/source4/libcli/wins/winsrepl.h b/source4/libcli/wins/winsrepl.h
index 3fd1e5406c..79b7f1fd70 100644
--- a/source4/libcli/wins/winsrepl.h
+++ b/source4/libcli/wins/winsrepl.h
@@ -20,6 +20,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "librpc/gen_ndr/ndr_nbt.h"
#include "librpc/gen_ndr/ndr_winsrepl.h"
/*
@@ -67,3 +68,47 @@ struct wrepl_request {
void *private;
} async;
};
+
+
+/*
+ setup an association
+*/
+struct wrepl_associate {
+ struct {
+ uint32_t assoc_ctx;
+ } out;
+};
+
+/*
+ pull the partner table
+*/
+struct wrepl_pull_table {
+ struct {
+ uint32_t assoc_ctx;
+ } in;
+ struct {
+ uint32_t num_partners;
+ struct wrepl_wins_owner *partners;
+ } out;
+};
+
+/*
+ a full pull replication
+*/
+struct wrepl_pull_names {
+ struct {
+ uint32_t assoc_ctx;
+ struct wrepl_wins_owner partner;
+ } in;
+ struct {
+ uint32_t num_names;
+ struct wrepl_name {
+ struct nbt_name name;
+ uint32_t num_addresses;
+ struct wrepl_address {
+ const char *owner;
+ const char *address;
+ } *addresses;
+ } *names;
+ } out;
+};