svn commit: samba r20008 - in branches/SAMBA_4_0/source/libnet: .

metze at samba.org metze at samba.org
Sat Dec 2 12:46:14 GMT 2006


Author: metze
Date: 2006-12-02 12:46:13 +0000 (Sat, 02 Dec 2006)
New Revision: 20008

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20008

Log:
add stubs for a libnet_BecomeDC() call

metze
Added:
   branches/SAMBA_4_0/source/libnet/libnet_become_dc.c
   branches/SAMBA_4_0/source/libnet/libnet_become_dc.h
Modified:
   branches/SAMBA_4_0/source/libnet/config.mk
   branches/SAMBA_4_0/source/libnet/libnet.h


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/config.mk
===================================================================
--- branches/SAMBA_4_0/source/libnet/config.mk	2006-12-02 11:18:19 UTC (rev 20007)
+++ branches/SAMBA_4_0/source/libnet/config.mk	2006-12-02 12:46:13 UTC (rev 20008)
@@ -14,6 +14,7 @@
 		libnet_rpc.o \
 		libnet_join.o \
 		libnet_site.o \
+		libnet_become_dc.o \
 		libnet_vampire.o \
 		libnet_samdump.o \
 		libnet_samdump_keytab.o \

Modified: branches/SAMBA_4_0/source/libnet/libnet.h
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet.h	2006-12-02 11:18:19 UTC (rev 20007)
+++ branches/SAMBA_4_0/source/libnet/libnet.h	2006-12-02 12:46:13 UTC (rev 20008)
@@ -58,6 +58,7 @@
 #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"

Added: branches/SAMBA_4_0/source/libnet/libnet_become_dc.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_become_dc.c	2006-12-02 11:18:19 UTC (rev 20007)
+++ branches/SAMBA_4_0/source/libnet/libnet_become_dc.c	2006-12-02 12:46:13 UTC (rev 20008)
@@ -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;
+}

Added: branches/SAMBA_4_0/source/libnet/libnet_become_dc.h
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_become_dc.h	2006-12-02 11:18:19 UTC (rev 20007)
+++ branches/SAMBA_4_0/source/libnet/libnet_become_dc.h	2006-12-02 12:46:13 UTC (rev 20008)
@@ -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;
+};



More information about the samba-cvs mailing list