r13903: Don't generate prototypes for modules and binaries in include/proto.h by
authorJelmer Vernooij <jelmer@samba.org>
Mon, 6 Mar 2006 23:28:18 +0000 (23:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:52:21 +0000 (13:52 -0500)
default.
(This used to be commit c80a8f1102caf744b66c13bebde38fba74983dc4)

31 files changed:
TODO
source4/auth/config.mk
source4/auth/gensec/config.mk
source4/auth/gensec/schannel.c
source4/auth/gensec/spnego.c
source4/auth/ntlmssp/config.mk
source4/build/smb_build/input.pm
source4/gtk/tools/gwcrontab.c
source4/gtk/tools/gwsam.c
source4/include/includes.h
source4/kdc/kpasswdd.c
source4/lib/registry/config.mk
source4/lib/util/config.mk
source4/libnet/libnet_vampire.c
source4/ntvfs/config.mk
source4/ntvfs/ipc/ipc_rap.c
source4/ntvfs/ipc/vfs_ipc.c
source4/ntvfs/simple/vfs_simple.c
source4/param/config.mk
source4/param/loadparm.h
source4/rpc_server/config.mk
source4/rpc_server/netlogon/dcerpc_netlogon.c
source4/rpc_server/samr/dcesrv_samr.c
source4/rpc_server/samr/samr_password.c
source4/scripting/ejs/config.mk
source4/torture/gentest.c
source4/torture/nbench/nbio.c
source4/torture/rpc/samlogon.c
source4/torture/rpc/samsync.c
source4/torture/rpc/schannel.c
source4/torture/torture.c

diff --git a/TODO b/TODO
index 954cc5f80607a094efab6c7c7f365ea5824b71bd..36c05d5a28dd372b8cd4efd04dffe38a200c4f94 100644 (file)
--- a/TODO
+++ b/TODO
@@ -13,6 +13,8 @@ upgrade process (from Samba3):
   Perhaps similar to eventlog so we can also use eventlog to retrieve the data?
 - improve handling of test results in testsuite
 
+- testsuite for the 'net' tool
+
 Configuration options
 =====================
 
index d8fc9a8ddfed80f2a5de7a767a2d7930e64722b2..9c14528572ade25bf41bd4df83fb0a6c8da6a226 100644 (file)
@@ -9,6 +9,7 @@ include credentials/config.mk
 [MODULE::auth_sam]
 INIT_FUNCTION = auth_sam_init
 SUBSYSTEM = AUTH
+NOPROTO = NO
 OBJ_FILES = \
                auth_sam.o
 REQUIRED_SUBSYSTEMS = \
index 0ba5a5e282f55f724070e4754ff9b26d94b81b38..17e22123ab90600f3ece08bc71b7b2ec5e648d44 100644 (file)
@@ -38,6 +38,7 @@ REQUIRED_SUBSYSTEMS = KERBEROS AUTH
 [MODULE::gensec_spnego]
 SUBSYSTEM = GENSEC
 INIT_FUNCTION = gensec_spnego_init
+PRIVATE_PROTO_HEADER = spnego_proto.h
 OBJ_FILES = spnego.o \
                        spnego_parse.o
 # End MODULE gensec_spnego
@@ -47,6 +48,7 @@ OBJ_FILES = spnego.o \
 # Start MODULE gensec_schannel
 [MODULE::gensec_schannel]
 SUBSYSTEM = GENSEC
+PRIVATE_PROTO_HEADER = schannel_proto.h
 INIT_FUNCTION = gensec_schannel_init
 OBJ_FILES = schannel.o \
                        schannel_sign.o
index 10c8f9853a0cf0693aed7579f27f43c3a54865ff..0409b17c4de370def71deaaa1a460aef2dee72ca 100644 (file)
@@ -25,6 +25,7 @@
 #include "librpc/gen_ndr/ndr_schannel.h"
 #include "auth/auth.h"
 #include "auth/gensec/schannel.h"
+#include "auth/gensec/schannel_proto.h"
 
 static size_t schannel_sig_size(struct gensec_security *gensec_security, size_t data_size)
 {
index 32b4ff96be668ee13fdae8119b6e90e710d32b97..9d97e3d7091c3c21cacb479301d406bb20c22647 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "includes.h"
 #include "auth/auth.h"
+#include "auth/gensec/spnego_proto.h"
 
 enum spnego_state_position {
        SPNEGO_SERVER_START,
index d10c98c838eefaa91905ce94bf26216f19cefe20..32b917e4ce940774f15fca99e22470a38f019878 100644 (file)
@@ -2,11 +2,12 @@
 # Start MODULE gensec_ntlmssp
 [MODULE::gensec_ntlmssp]
 SUBSYSTEM = GENSEC
+NOPROTO = NO
 INIT_FUNCTION = gensec_ntlmssp_init
 OBJ_FILES = ntlmssp.o \
-               ntlmssp_parse.o \
                ntlmssp_sign.o \
                ntlmssp_client.o \
+               ntlmssp_parse.o \
                ntlmssp_server.o
 REQUIRED_SUBSYSTEMS = AUTH
 # End MODULE gensec_ntlmssp
index 0499d625652da00c7d3af54b2d69f6ebf2e875f2..8796441a221dddea4ecf36cf432efaa5eebc3fc0 100644 (file)
@@ -148,7 +148,11 @@ sub check($$$$$)
 
        foreach my $part (values %$INPUT) {
                unless(defined($part->{NOPROTO})) {
-                       $part->{NOPROTO} = "NO";
+                       if ($part->{TYPE} eq "MODULE" or $part->{TYPE} eq "BINARY") {
+                               $part->{NOPROTO} = "YES";
+                       } else {
+                               $part->{NOPROTO} = "NO";
+                       }
                }
 
                if (defined($part->{PRIVATE_PROTO_HEADER})) {
index 9ebc7f43fdcf75b646435ac7f6887f8778a17e04..020bae30f29bb9c453ebe1d0dbfd6211734d30d7 100644 (file)
@@ -32,7 +32,7 @@ static GtkWidget *entry_repeat_weekly;
 static GtkWidget *entry_repeat_monthly;
 static GtkWidget *delete;
 
-void update_joblist(void)
+static void update_joblist(void)
 {
        TALLOC_CTX *mem_ctx = talloc_init("update_joblist");
        NTSTATUS status;
index 3764afe04679248933c03fa1438cb6e6429067a4..55e11471e23f651173e28b89ac3092cecc40df86 100644 (file)
@@ -31,13 +31,13 @@ GtkWidget *mainwin;
 GtkWidget *seldomain;
 static GtkWidget *mnu_disconnect;
 
-void update_grouplist(void)
+static void update_grouplist(void)
 {
        if(!sam_pipe) return;
        //FIXME
 }
 
-void update_userlist(void)
+static void update_userlist(void)
 {
        NTSTATUS status;
        struct samr_EnumDomainUsers r;
index 058eb267a8a4f9f460838599c72089f1c17543a0..60e3fb034bc0813ed6a8f71fd3d3135389ec2b2e 100644 (file)
@@ -111,6 +111,7 @@ enum brl_type {
 #include "charset/charset.h"
 #include "structs.h"
 #include "util/util.h"
+#include "param/param.h"
 #include "libcli/util/nterr.h"
 #include "libcli/util/doserr.h"
 #include "librpc/ndr/libndr.h"
index 8e6448435b7a7ef59b053b7b142b1ef4b407adcf..7538bc04efd080b42d6379960ec370c3feb2fd37 100644 (file)
@@ -32,6 +32,7 @@
 #include "heimdal/lib/krb5/krb5-private.h"
 #include "auth/auth.h"
 #include "dsdb/samdb/samdb.h"
+#include "rpc_server/samr/proto.h"
 
 /* hold information about one kdc socket */
 struct kpasswd_socket {
index 82309ad470107c1ced36eb5b9aae0ffaf9157242..9df95f4f2f4beaf7a6f665abcfd68bd17bcec43c 100644 (file)
@@ -46,6 +46,7 @@ OBJ_FILES = \
 # Start MODULE registry_rpc
 [MODULE::registry_rpc]
 INIT_FUNCTION = registry_rpc_init
+NOPROTO = NO
 OUTPUT_TYPE = MERGEDOBJ
 SUBSYSTEM = REGISTRY
 OBJ_FILES = \
index 81614ed64705ef3cfff8a9bc301022f9e583ba9c..0ab0b5f809464d19f010ae595f59a227067eccff 100644 (file)
@@ -34,7 +34,9 @@ OBJ_FILES = xfile.o \
                module.o
 REQUIRED_SUBSYSTEMS = \
                CHARSET LIBREPLACE LIBCRYPTO EXT_LIB_DL LIBTALLOC \
-               SOCKET_WRAPPER CONFIG
+               SOCKET_WRAPPER CONFIG \
+# for the base64 functions
+               LIBLDB 
 
 [SUBSYSTEM::PIDFILE]
 OBJ_FILES = pidfile.o
index ce65a6e460a2a05a3076a6883d1ea8bb591a0558..c76f8f7cde0180e77d71d63f92b76d392858d869 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "includes.h"
 #include "libnet/libnet.h"
+#include "auth/gensec/schannel_proto.h"
 
 
 /**
index 177ce5d77b11b4edb0bca49e7252b08eee466378..84ec59e0289bbe6abf26cf60dea69350302f4205 100644 (file)
@@ -19,6 +19,7 @@ REQUIRED_SUBSYSTEMS = \
 [MODULE::ntvfs_simple]
 INIT_FUNCTION = ntvfs_simple_init 
 SUBSYSTEM = NTVFS
+PRIVATE_PROTO_HEADER = simple/proto.h
 OBJ_FILES = \
                simple/vfs_simple.o \
                simple/svfs_util.o
@@ -40,6 +41,7 @@ OBJ_FILES = \
 [MODULE::ntvfs_ipc]
 SUBSYSTEM = NTVFS
 INIT_FUNCTION = ntvfs_ipc_init 
+PRIVATE_PROTO_HEADER = ipc/proto.h
 OBJ_FILES = \
                ipc/vfs_ipc.o \
                ipc/ipc_rap.o \
index f97ae4cd896c3e2fb9eb37e291f14b11ed95bffd..5656a966212403eff89891866179b7804f8122b4 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 #include "libcli/rap/rap.h"
+#include "ntvfs/ipc/proto.h"
 
 #define NERR_Success 0
 #define NERR_badpass 86
index dd7994c1fb851c04c2b8bd584044064eff1ad79f..d5259bc9a61cf57ab0fe210e203455706df9ae14 100644 (file)
@@ -29,6 +29,7 @@
 #include "dlinklist.h"
 #include "smb_server/smb_server.h"
 #include "ntvfs/ntvfs.h"
+#include "ntvfs/ipc/proto.h"
 #include "rpc_server/dcerpc_server.h"
 
 #define IPC_BASE_FNUM 0x400
index ad06a9504160af51dbf7167ba9506d4b3a05a338..ce1487727727b51041f60af46803b552f9d1569b 100644 (file)
@@ -34,6 +34,7 @@
 #include "dlinklist.h"
 #include "smb_server/smb_server.h"
 #include "ntvfs/ntvfs.h"
+#include "ntvfs/simple/proto.h"
 
 #ifndef O_DIRECTORY
 #define O_DIRECTORY 0
index 800e130e9e62215987bb9081ad4fdf2113eb9b2a..7b97331310202f67cd55631c45000c046eb604ae 100644 (file)
@@ -3,4 +3,5 @@ OBJ_FILES = ../dynconfig.o \
                                loadparm.o \
                                params.o \
                                generic.o
-REQUIRED_SUBSYSTEMS = LIBBASIC DB_WRAP
+REQUIRED_SUBSYSTEMS = LIBBASIC 
+PRIVATE_PROTO_HEADER = param.h
index 1bb0ed66180abe67d7177b8a5cf9f15d15cce3bb..02fc004f9a4c9cc1f526341fa81e5b7c3367a709 100644 (file)
@@ -71,10 +71,6 @@ struct parm_struct {
 #define FLAG_DEFAULT    0x4000 /* this option was a default */
 #define FLAG_CMDLINE    0x8000 /* this option was set from the command line */
 
-#ifndef GLOBAL_NAME
-#define GLOBAL_NAME "global"
-#endif
-
 #ifndef PRINTERS_NAME
 #define PRINTERS_NAME "printers"
 #endif
index 73f61602bd447374ad0052a8de85d754b19bc5d3..13b5a4d1f5f672102b81372aab38fa8e69e4df5d 100644 (file)
@@ -103,6 +103,7 @@ REQUIRED_SUBSYSTEMS = \
 # Start MODULE dcerpc_samr
 [MODULE::dcerpc_samr]
 INIT_FUNCTION = dcerpc_server_samr_init
+PRIVATE_PROTO_HEADER = samr/proto.h
 SUBSYSTEM = DCERPC_SERVER
 OBJ_FILES = \
                samr/dcesrv_samr.o \
index d506d9192d529d701da9ce2aae936e764c34c902..1b13548c6bc84f3d268e038974b64794538c9dd5 100644 (file)
@@ -27,6 +27,7 @@
 #include "lib/ldb/include/ldb.h"
 #include "auth/auth.h"
 #include "dsdb/samdb/samdb.h"
+#include "rpc_server/samr/proto.h"
 
 struct server_pipe_state {
        struct netr_Credential client_challenge;
index e9787eb041b1ee8098e2cba9d019c1276371f682..6c109ff0c2b93edfa2c9398e3410382806710af5 100644 (file)
@@ -32,6 +32,7 @@
 #include "ads.h"
 #include "dsdb/samdb/samdb.h"
 #include "libcli/ldap/ldap.h"
+#include "rpc_server/samr/proto.h"
 
 
 /*
index cc0f0aa3b7c0920deafd6ce953a04d7983fdd442..998005cb0e576eae9c891936a92b275253fc9190 100644 (file)
@@ -31,6 +31,7 @@
 #include "libcli/ldap/ldap.h"
 #include "dsdb/samdb/samdb.h"
 #include "auth/auth.h"
+#include "rpc_server/samr/proto.h"
 
 /* 
   samr_ChangePasswordUser 
index 47e4b99becbafc6317291654aab1d944ad03b0be..c3365388d2319ff6eec413beee78866ca1dd3743 100644 (file)
@@ -39,6 +39,7 @@ REQUIRED_SUBSYSTEMS = AUTH EJS LIBBASIC EJSRPC MESSAGING LIBSAMBA3 LIBNET \
 # Start BINARY SMBSCRIPT
 [BINARY::smbscript]
 INSTALLDIR = BINDIR
+NOPROTO = NO
 OBJ_FILES = \
                smbscript.o
 REQUIRED_SUBSYSTEMS = EJS LIBBASIC SMBCALLS CONFIG 
index 8e23ac244f6835efc0238fb948018003979c2cac..35cae68636ab25ffd15be8483eca3db071eb646f 100644 (file)
@@ -26,6 +26,7 @@
 #include "libcli/raw/libcliraw.h"
 #include "librpc/gen_ndr/ndr_security.h"
 #include "auth/gensec/gensec.h"
+#include "torture/torture.h"
 
 #define NSERVERS 2
 #define NINSTANCES 2
index 3e4c9a0f9247971b7f1cc4040dff47deec544a85..863ddae83f577d31ae704c584d5f64377d831631 100644 (file)
@@ -26,6 +26,7 @@
 #include "dlinklist.h"
 #include "libcli/libcli.h"
 #include "libcli/raw/libcliraw.h"
+#include "torture/torture.h"
 
 #define MAX_FILES 100
 
index 4dfba4a9fc61761bdc807caadc6b528157f90282..185a2a6870dd97b54e633219d92395de90e2463d 100644 (file)
@@ -28,6 +28,7 @@
 #include "lib/crypto/crypto.h"
 #include "lib/cmdline/popt_common.h"
 #include "torture/rpc/proto.h"
+#include "auth/gensec/schannel_proto.h"
 
 #define TEST_MACHINE_NAME "samlogontest"
 #define TEST_USER_NAME "samlogontestuser"
index f0f19f0818a9a346dc392b1c53a71726b4745b96..0b4fb14fdaf8a6b9f406f0066798a858716e2240 100644 (file)
@@ -29,6 +29,7 @@
 #include "lib/crypto/crypto.h"
 #include "system/time.h"
 #include "torture/rpc/proto.h"
+#include "auth/gensec/schannel_proto.h"
 
 #define TEST_MACHINE_NAME "samsynctest"
 #define TEST_WKSTA_MACHINE_NAME "samsynctest2"
index 3ad781c14528871aca4fe7ff18b3b4129a55da39..ee16d2de75f1700ab0d7f2176ea0ca73ae867cd7 100644 (file)
@@ -24,6 +24,7 @@
 #include "librpc/gen_ndr/ndr_netlogon.h"
 #include "torture/rpc/proto.h"
 #include "lib/cmdline/popt_common.h"
+#include "auth/gensec/schannel_proto.h"
 
 #define TEST_MACHINE_NAME "schannel"
 
index b245492ad6d73fc3fbbc35c50785e7c293a677d6..067af257fab071a6f626f30dfd2f2f6ddc024149 100644 (file)
@@ -42,6 +42,7 @@
 #include "torture/com/proto.h"
 #include "torture/nbt/proto.h"
 #include "torture/libnet/proto.h"
+#include "torture/torture.h"
 
 int torture_nprocs=4;
 int torture_numops=10;