r14381: Kill structs.h
authorJelmer Vernooij <jelmer@samba.org>
Tue, 14 Mar 2006 15:22:36 +0000 (15:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:57:17 +0000 (13:57 -0500)
(This used to be commit 1ffb82a7596f989c90df69573083a2c2e28f8808)

source4/include/includes.h
source4/include/structs.h [deleted file]
source4/lib/samba3/samba3.h
source4/lib/util/util.h
source4/librpc/rpc/dcerpc.h
source4/param/config.mk
source4/param/generic.c
source4/param/param.h [moved from source4/param/generic.h with 88% similarity]
source4/scripting/ejs/smbcalls_param.c

index 1a2ff68359c201be5e3e70498de293dd40806b15..43e07ad4823c9e43cdb10568a29ef644ca459dd2 100644 (file)
@@ -111,7 +111,6 @@ enum brl_type {
 #include "talloc/talloc.h"
 #include "core.h"
 #include "charset/charset.h"
-#include "structs.h"
 #include "util/util.h"
 #include "param/param.h"
 #include "libcli/util/nterr.h"
diff --git a/source4/include/structs.h b/source4/include/structs.h
deleted file mode 100644 (file)
index 19a811d..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/* 
-   Unix SMB/CIFS implementation.
-
-   Copyright (C) Andrew Tridgell 2004
-   
-   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.
-*/
-
-/*
-  this file contains pre-declarations of private structures to avoid the
-  "scope is only this definition or declaration" warning
-*/
-
-struct asn1_data;
-struct smbsrv_tcon;
-struct smbsrv_connection;
-struct param_context;
-struct smbcli_tree;
-struct smb2_tree;
-struct socket_address;
index e66be625e00fa01646eb09ffae16f28a8267681c..cfe0f7904ae746a3f3374d7ab804c44b78878074 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "librpc/gen_ndr/security.h"
 #include "librpc/gen_ndr/samr.h"
-#include "param/generic.h"
+#include "param/param.h"
 
 struct samba3_samaccount {
        uint32_t logon_time,
index 318e4971057fbbadc7b741540d4bd1e2b628ddfc..e0255c692c43477f9fd1653a97a6223fc3b563b4 100644 (file)
@@ -30,6 +30,8 @@
  */
 
 struct substitute_context;
+struct asn1_data;
+struct smbsrv_tcon;
 
 #include "util/xfile.h"
 #include "util/debug.h"
index 567246031a921f7a0c22dbca8c4931648d6ec78d..517df4bf7e8eefcd9b61977483872252a05780cd 100644 (file)
@@ -249,6 +249,10 @@ struct rpc_request {
 struct epm_tower;
 struct epm_floor;
 
+struct smbcli_tree;
+struct smb2_tree;
+struct socket_address;
+
 #include "librpc/rpc/dcerpc_proto.h"
 
 #endif /* __DCERPC_H__ */
index 2304195e2640bd5a3368179df85fb78b9abf0afc..af7b98f23e9582b2502389c916d3a06707ddb0b9 100644 (file)
@@ -4,7 +4,7 @@ OBJ_FILES = loadparm.o \
                        generic.o \
                        ../lib/version.o
 REQUIRED_SUBSYSTEMS = LIBBASIC 
-PRIVATE_PROTO_HEADER = param.h
+PRIVATE_PROTO_HEADER = proto.h
 
 PATH_FLAGS = -DCONFIGFILE=\"$(CONFIGFILE)\" \
         -DBINDIR=\"$(BINDIR)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
index adf1eb0b31977e53de9c15c2a59a0407343af0d0..bed675be693ec279231f41af5ea63a2f653aac03 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "includes.h"
 #include "dlinklist.h"
-#include "param/generic.h"
+#include "param/param.h"
 #include "system/filesys.h"
 
 struct param_section *param_get_section(struct param_context *ctx, const char *name)
similarity index 88%
rename from source4/param/generic.h
rename to source4/param/param.h
index 1d3a5c7cb39cd9dec9da07b6287eae29d2fa71be..923b06eb864eb118f0da42d2200cafe4c1f5a5c6 100644 (file)
@@ -18,8 +18,8 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#ifndef _PARAM_GENERIC_H /* _PARAM_GENERIC_H */
-#define _PARAM_GENERIC_
+#ifndef _PARAM_H /* _PARAM_H */
+#define _PARAM_H 
 
 struct param_context {
        struct param_section *sections;
@@ -38,4 +38,9 @@ struct param_section {
        struct param *parameters;
 };
 
-#endif /* _PARAM_GENERIC_H */
+struct param_context;
+struct smbsrv_connection;
+
+#include "param/proto.h"
+
+#endif /* _PARAM_H */
index 23f90c971e1f9effd196d1c45a8d497ff6193acb..0169e0970975770f935833919c01b3aa41ddc987 100644 (file)
@@ -23,7 +23,7 @@
 #include "includes.h"
 #include "scripting/ejs/smbcalls.h"
 #include "lib/appweb/ejs/ejs.h"
-#include "param/generic.h"
+#include "param/param.h"
 
 /*
   get parameter