summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-02 12:46:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:46 -0500
commit1e02e77fe1c6540e75d98a0a089c1faffa77a31f (patch)
tree75b18c27b1e29e08e52ecb646db39b1ec26ac4ef
parent989b47d1f125eff1f41a223fd152814bb308d547 (diff)
downloadsamba-1e02e77fe1c6540e75d98a0a089c1faffa77a31f.tar.gz
samba-1e02e77fe1c6540e75d98a0a089c1faffa77a31f.tar.bz2
samba-1e02e77fe1c6540e75d98a0a089c1faffa77a31f.zip
r20008: add stubs for a libnet_BecomeDC() call
metze (This used to be commit 103ac9a96bb43f512915196eb8869f9633410618)
-rw-r--r--source4/libnet/config.mk1
-rw-r--r--source4/libnet/libnet.h1
-rw-r--r--source4/libnet/libnet_become_dc.c41
-rw-r--r--source4/libnet/libnet_become_dc.h29
4 files changed, 72 insertions, 0 deletions
diff --git a/source4/libnet/config.mk b/source4/libnet/config.mk
index 9dcaff57d2..2402974a82 100644
--- a/source4/libnet/config.mk
+++ b/source4/libnet/config.mk
@@ -14,6 +14,7 @@ OBJ_FILES = \
libnet_rpc.o \
libnet_join.o \
libnet_site.o \
+ libnet_become_dc.o \
libnet_vampire.o \
libnet_samdump.o \
libnet_samdump_keytab.o \
diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h
index c70c419a2d..7f5ac96b30 100644
--- a/source4/libnet/libnet.h
+++ b/source4/libnet/libnet.h
@@ -58,6 +58,7 @@ struct libnet_context {
#include "libnet/libnet_rpc.h"
#include "libnet/libnet_join.h"
#include "libnet/libnet_site.h"
+#include "libnet/libnet_become_dc.h"
#include "libnet/libnet_vampire.h"
#include "libnet/libnet_user.h"
#include "libnet/libnet_share.h"
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
new file mode 100644
index 0000000000..158210c11c
--- /dev/null
+++ b/source4/libnet/libnet_become_dc.c
@@ -0,0 +1,41 @@
+/*
+ Unix SMB/CIFS implementation.
+
+ Copyright (C) Stefan Metzmacher 2006
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#include "includes.h"
+#include "libnet/libnet.h"
+
+struct composite_context *libnet_BecomeDC_send(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r)
+{
+ return NULL;
+}
+
+NTSTATUS libnet_BecomeDC_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r)
+{
+ return NT_STATUS_NOT_IMPLEMENTED;
+}
+
+NTSTATUS libnet_BecomeDC(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, struct libnet_BecomeDC *r)
+{
+ NTSTATUS status;
+ struct composite_context *c;
+ c = libnet_BecomeDC_send(ctx, mem_ctx, r);
+ status = libnet_BecomeDC_recv(c, mem_ctx, r);
+ return status;
+}
diff --git a/source4/libnet/libnet_become_dc.h b/source4/libnet/libnet_become_dc.h
new file mode 100644
index 0000000000..6cda4d89b3
--- /dev/null
+++ b/source4/libnet/libnet_become_dc.h
@@ -0,0 +1,29 @@
+/*
+ Unix SMB/CIFS implementation.
+
+ Copyright (C) Stefan Metzmacher 2006
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+struct libnet_BecomeDC {
+ struct {
+ const char *dest_address;
+ } in;
+
+ struct {
+ const char *error_string;
+ } out;
+};