r20008: add stubs for a libnet_BecomeDC() call
authorStefan Metzmacher <metze@samba.org>
Sat, 2 Dec 2006 12:46:13 +0000 (12:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:28:46 +0000 (14:28 -0500)
metze

source/libnet/config.mk
source/libnet/libnet.h
source/libnet/libnet_become_dc.c [new file with mode: 0644]
source/libnet/libnet_become_dc.h [new file with mode: 0644]

index 9dcaff57d22279605aa11a32e7f87e07bb782944..2402974a822c92e0da04aab9d77064c9d9176cd1 100644 (file)
@@ -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 \
index c70c419a2d339f10b9fc792d0997bd1e21843626..7f5ac96b307a624775d73d7b956f38a763ecf56e 100644 (file)
@@ -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/source/libnet/libnet_become_dc.c b/source/libnet/libnet_become_dc.c
new file mode 100644 (file)
index 0000000..158210c
--- /dev/null
@@ -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/source/libnet/libnet_become_dc.h b/source/libnet/libnet_become_dc.h
new file mode 100644 (file)
index 0000000..6cda4d8
--- /dev/null
@@ -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;
+};