r3424: don't run mkproto.pl on pidl generated code, instead rely on pidl generating the
authorAndrew Tridgell <tridge@samba.org>
Mon, 1 Nov 2004 05:26:28 +0000 (05:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:08 +0000 (13:05 -0500)
prototypes itself
(This used to be commit e694aeefe7c725d417abdd3c48d16ff1d932c223)

source4/include/includes.h
source4/include/rewrite.h
source4/include/smb_interfaces.h
source4/librpc/config.m4
source4/librpc/ndr/libndr.h

index 9df5e2381661be4840dfdabc153bc08ce1c013c2..7ff466b7d73af5a812214bb36b833fb4257b8768 100644 (file)
@@ -651,13 +651,6 @@ extern int errno;
 #include "md5.h"
 #include "hmacmd5.h"
 
-#include "libcli/auth/ntlmssp.h"
-#include "libcli/auth/credentials.h"
-#include "libcli/auth/kerberos.h"
-#include "libcli/auth/gensec.h"
-#include "libcli/auth/spnego.h"
-
-#include "auth/auth.h"
 
 #include "module.h"
 
@@ -665,8 +658,21 @@ extern int errno;
 
 #include "mutex.h"
 
+#include "librpc/ndr/libndr.h"
+#include "librpc/gen_ndr/ndr_misc.h"
+#include "librpc/gen_ndr/ndr_dcerpc.h"
 #include "librpc/rpc/dcerpc.h"
+#include "librpc/ndr/ndr_sec.h"
+#include "librpc/gen_ndr/tables.h"
+
+#include "libcli/auth/ntlmssp.h"
+#include "libcli/auth/credentials.h"
+#include "libcli/auth/kerberos.h"
+#include "libcli/auth/gensec.h"
+#include "libcli/auth/spnego.h"
+#include "auth/auth.h"
 
+#include "smb_interfaces.h"
 #include "smbd/server.h"
 #include "smbd/service.h"
 #include "rpc_server/dcerpc_server.h"
index eb4419fcbd4bc2dce7a9903dadaa5f5a048ad918..599503be12d66f4978051d5225d440a9c6b3a630 100644 (file)
@@ -60,11 +60,18 @@ typedef struct data_blob {
        size_t length;
 } DATA_BLOB;
 
+/* Globally Unique ID */
+#define GUID_SIZE 16
+
+/* 64 bit time (100 nanosec) 1601 - cifs6.txt, section 3.5, page 30 */
+typedef uint64_t NTTIME;
+
+/* 8 byte aligned 'hyper' type from MS IDL */
+typedef uint64_t HYPER_T;
+
+
 #include "enums.h"
 #include "events.h"
-#include "librpc/gen_ndr/ndr_misc.h"
-#include "smb_interfaces.h"
-#include "librpc/ndr/libndr.h"
 
 /* used for network interfaces */
 struct interface
@@ -75,26 +82,6 @@ struct interface
        struct in_addr nmask;
 };
 
-/* key and data in the connections database - used in smbstatus and smbd */
-struct connections_key {
-       pid_t pid;
-       int cnum;
-       fstring name;
-};
-
-struct connections_data {
-       int magic;
-       pid_t pid;
-       int cnum;
-       uid_t uid;
-       gid_t gid;
-       char name[24];
-       char addr[24];
-       char machine[FSTRING_LEN];
-       time_t start;
-       uint32_t bcast_msg_flags;
-};
-
 /* the following are used by loadparm for option lists */
 typedef enum
 {
index 771dce8803b5bb860a954b5fc5ac25daadd321a0..bdf8282356d2d00e3be17ef4104cf9c1e0c45455 100644 (file)
 */
 
 
-/* Globally Unique ID */
-#define GUID_SIZE 16
-
-/* 64 bit time (100 nanosec) 1601 - cifs6.txt, section 3.5, page 30 */
-typedef uint64_t NTTIME;
-
-/* 8 byte aligned 'hyper' type from MS IDL */
-typedef uint64_t HYPER_T;
-
-
 
 /* this structure is just a wrapper for a string, the only reason we
    bother with this is that it allows us to check the length provided
index 22abcc6f2052af9c620b83199b7a8f709df97a5f..5c5ba9321ca61c4a7d357aed714fb5c71f29669c 100644 (file)
@@ -4,8 +4,11 @@ SMB_SUBSYSTEM(LIBNDR_RAW,[],
                [librpc/ndr/ndr.o
                librpc/ndr/ndr_basic.o
                librpc/ndr/ndr_sec.o
-               librpc/ndr/ndr_spoolss_buf.o
-               librpc/gen_ndr/tables.o
+               librpc/ndr/ndr_spoolss_buf.o])
+
+SMB_SUBSYSTEM_NOPROTO(LIBNDR_GEN)
+SMB_SUBSYSTEM(LIBNDR_GEN,[],
+               [librpc/gen_ndr/tables.o
                librpc/gen_ndr/ndr_audiosrv.o
                librpc/gen_ndr/ndr_dcerpc.o
                librpc/gen_ndr/ndr_echo.o
@@ -59,4 +62,4 @@ SMB_SUBSYSTEM(LIBRPC_RAW,[],
                librpc/rpc/dcerpc_sock.o])
 
 SMB_SUBSYSTEM(LIBRPC,[],[],[],
-               [LIBNDR_RAW LIBRPC_RAW])
+               [LIBNDR_RAW LIBNDR_GEN LIBRPC_RAW])
index 0efa4af19cd12291a9a20306bd4a8c4166bc7d9f..09d06a7c7f6485d4a36e60630f34e096e348e8ca 100644 (file)
@@ -252,7 +252,3 @@ typedef void (*ndr_print_fn_t)(struct ndr_print *, const char *, void *);
 typedef void (*ndr_print_function_t)(struct ndr_print *, const char *, int, void *);
 typedef void (*ndr_print_union_fn_t)(struct ndr_print *, const char *, uint32_t, void *);
 
-#include "librpc/ndr/ndr_sec.h"
-
-/* now pull in the individual parsers */
-#include "librpc/gen_ndr/tables.h"