nbt: merge in LIBCLI_NDR_NETLOGON helper into NDR_NBT.
authorGünther Deschner <gd@samba.org>
Wed, 2 Nov 2011 17:31:40 +0000 (18:31 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 3 Nov 2011 17:35:08 +0000 (18:35 +0100)
Guenther

libcli/netlogon/ndr_netlogon_proto.h [deleted file]
libcli/netlogon/netlogon.h
libcli/netlogon/wscript_build
librpc/idl/nbt.idl
librpc/ndr/ndr_nbt.c [moved from libcli/netlogon/ndr_netlogon.c with 100% similarity]
librpc/ndr/ndr_nbt.h [new file with mode: 0644]
librpc/wscript_build
source3/Makefile.in
source3/wscript_build

diff --git a/libcli/netlogon/ndr_netlogon_proto.h b/libcli/netlogon/ndr_netlogon_proto.h
deleted file mode 100644 (file)
index ca61c16..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef _____LIBCLI_NDR_NETLOGON_PROTO_H__
-#define _____LIBCLI_NDR_NETLOGON_PROTO_H__
-
-#undef _PRINTF_ATTRIBUTE
-#define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
-/* This file was automatically generated by mkproto.pl. DO NOT EDIT */
-
-/* this file contains prototypes for functions that are private 
- * to this subsystem or library. These functions should not be 
- * used outside this particular subsystem! */
-
-
-/* The following definitions come from ../libcli/ndr_netlogon.c  */
-
-enum ndr_err_code ndr_push_NETLOGON_SAM_LOGON_REQUEST(struct ndr_push *ndr, int ndr_flags, const struct NETLOGON_SAM_LOGON_REQUEST *r);
-enum ndr_err_code ndr_pull_NETLOGON_SAM_LOGON_REQUEST(struct ndr_pull *ndr, int ndr_flags, struct NETLOGON_SAM_LOGON_REQUEST *r);
-enum ndr_err_code ndr_push_NETLOGON_SAM_LOGON_RESPONSE_EX_with_flags(struct ndr_push *ndr, int ndr_flags, const struct NETLOGON_SAM_LOGON_RESPONSE_EX *r);
-enum ndr_err_code ndr_pull_NETLOGON_SAM_LOGON_RESPONSE_EX_with_flags(struct ndr_pull *ndr, int ndr_flags, struct NETLOGON_SAM_LOGON_RESPONSE_EX *r,
-                                                                    uint32_t nt_version_flags);
-#undef _PRINTF_ATTRIBUTE
-#define _PRINTF_ATTRIBUTE(a1, a2)
-
-#endif /* _____LIBCLI_NDR_NETLOGON_PROTO_H__ */
-
index d9589f8ce2e73c9b5bc191ea607f9a79912deb0d..a68c7fab82abfa24c7aeb2f41ff4757c06cf379e 100644 (file)
@@ -49,5 +49,4 @@ struct nbt_netlogon_response
 };
 
 #include "../libcli/netlogon/netlogon_proto.h"
-#include "../libcli/netlogon/ndr_netlogon_proto.h"
 #endif /* __CLDAP_SERVER_PROTO_H__ */
index 35fb4c71c8e07dae0383a2a3bf22b7d29f8082e7..ad37c0c32543dc05d261f4047537ce9801406d33 100644 (file)
@@ -1,11 +1,6 @@
 #!/usr/bin/env python
 
-bld.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
-       source='ndr_netlogon.c',
-       public_deps='ndr NDR_SECURITY NDR_NBT'
-       )
-
 bld.SAMBA_SUBSYSTEM('LIBCLI_NETLOGON',
        source='netlogon.c',
-       public_deps='samba-util LIBCLI_NDR_NETLOGON'
+       public_deps='samba-util NDR_NBT'
        )
index 227e0a46a4b3ff744049be7a3a13b9eeab7d845a..cd81081267f247e492c651763b15ce817d56273b 100644 (file)
@@ -10,7 +10,7 @@
 
 import "misc.idl", "security.idl";
 [
-       helper("../libcli/netlogon/netlogon.h", "../libcli/nbt/libnbt.h"),
+       helper("../libcli/netlogon/netlogon.h", "../libcli/nbt/libnbt.h", "../librpc/ndr/ndr_nbt.h"),
        helpstring("NBT messages"),
        uuid("6def41b6-86e4-4c32-997c-ed33af7bcd8e")
 ]
diff --git a/librpc/ndr/ndr_nbt.h b/librpc/ndr/ndr_nbt.h
new file mode 100644 (file)
index 0000000..69863f0
--- /dev/null
@@ -0,0 +1,32 @@
+#/*
+   Unix SMB/CIFS implementation.
+
+   CLDAP server structures
+
+   Copyright (C) Andrew Bartlett <abartlet@samba.org> 2008
+
+   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 3 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, see <http://www.gnu.org/licenses/>.
+*/
+
+/* The following definitions come from ../librpc/ndr/ndr_nbt.c  */
+
+#ifndef _LIBRPC_NDR_NDR_NBT_H
+#define _LIBRPC_NDR_NDR_NBT_H
+
+enum ndr_err_code ndr_push_NETLOGON_SAM_LOGON_REQUEST(struct ndr_push *ndr, int ndr_flags, const struct NETLOGON_SAM_LOGON_REQUEST *r);
+enum ndr_err_code ndr_pull_NETLOGON_SAM_LOGON_REQUEST(struct ndr_pull *ndr, int ndr_flags, struct NETLOGON_SAM_LOGON_REQUEST *r);
+enum ndr_err_code ndr_push_NETLOGON_SAM_LOGON_RESPONSE_EX_with_flags(struct ndr_push *ndr, int ndr_flags, const struct NETLOGON_SAM_LOGON_RESPONSE_EX *r);
+enum ndr_err_code ndr_pull_NETLOGON_SAM_LOGON_RESPONSE_EX_with_flags(struct ndr_pull *ndr, int ndr_flags, struct NETLOGON_SAM_LOGON_RESPONSE_EX *r,
+                                                                    uint32_t nt_version_flags);
+#endif /* _LIBRPC_NDR_NDR_NBT_H */
index dc35de5ecc66b7e11106aa4b5399273f92bf8551..e6fde1558fb903da9cead3ec35c3576ee9953ec1 100644 (file)
@@ -335,8 +335,8 @@ bld.SAMBA_SUBSYSTEM('NDR_SCHANNEL',
        )
 
 bld.SAMBA_SUBSYSTEM('NDR_NBT',
-       source='gen_ndr/ndr_nbt.c',
-       public_deps='ndr NDR_NBT_BUF NDR_SECURITY ndr-standard LIBCLI_NDR_NETLOGON',
+       source='gen_ndr/ndr_nbt.c ndr/ndr_nbt.c',
+       public_deps='ndr NDR_NBT_BUF NDR_SECURITY ndr-standard',
        public_headers='gen_ndr/nbt.h',
         header_path='gen_ndr'
        )
index 1453434730fecab3d7c9a9fe27efd5d9e8d8cea1..66530c770b5082a05498cb7420625cecda64062d 100644 (file)
@@ -532,8 +532,8 @@ SECRETS_OBJ = passdb/secrets.o passdb/machine_account_secrets.o passdb/machine_s
 
 LIBNBT_OBJ = ../libcli/nbt/nbtname.o \
             ../libcli/netlogon/netlogon.o \
-            ../libcli/netlogon/ndr_netlogon.o \
             librpc/gen_ndr/ndr_nbt.o \
+            ../librpc/ndr/ndr_nbt.o \
             librpc/gen_ndr/ndr_svcctl.o \
             ../librpc/ndr/ndr_svcctl.o
 
index 7988bd1dcad7fc809912462a3bc42380082900ae..54c7075fe51fd57f9aea487f207bdc34c2e4a3af 100755 (executable)
@@ -975,7 +975,7 @@ bld.SAMBA3_SUBSYSTEM('LIBNMB',
 
 bld.SAMBA3_SUBSYSTEM('LIBNBT',
                     source='',
-                    deps='NDR_SVCCTL NDR_NBT LIBCLI_NETLOGON LIBCLI_NDR_NETLOGON',
+                    deps='NDR_SVCCTL NDR_NBT LIBCLI_NETLOGON',
                     vars=locals())
 
 bld.SAMBA3_SUBSYSTEM('SERVICES',