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.

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

diff --git a/TODO b/TODO
index 954cc5f..36c05d5 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 d8fc9a8..9c14528 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 0ba5a5e..17e2212 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 10c8f98..0409b17 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 32b4ff9..9d97e3d 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 d10c98c..32b917e 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 0499d62..8796441 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 9ebc7f4..020bae3 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 3764afe..55e1147 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 058eb26..60e3fb0 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 8e64484..7538bc0 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 82309ad..9df95f4 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 81614ed..0ab0b5f 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 ce65a6e..c76f8f7 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "includes.h"
 #include "libnet/libnet.h"
+#include "auth/gensec/schannel_proto.h"
 
 
 /**
index 177ce5d..84ec59e 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 f97ae4c..5656a96 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 dd7994c..d5259bc 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 ad06a95..ce14877 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 800e130..7b97331 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 1bb0ed6..02fc004 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 73f6160..13b5a4d 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 d506d91..1b13548 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 e9787eb..6c109ff 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 cc0f0aa..998005c 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 47e4b99..c336538 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 8e23ac2..35cae68 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 3e4c9a0..863ddae 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 4dfba4a..185a2a6 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 f0f19f0..0b4fb14 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 3ad781c..ee16d2d 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 b245492..067af25 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;