r14511: Install more headers
authorJelmer Vernooij <jelmer@samba.org>
Fri, 17 Mar 2006 13:55:10 +0000 (13:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:57:35 +0000 (13:57 -0500)
(This used to be commit e1f896948fad8cf5a1aec300865c250c5721ee7d)

17 files changed:
source4/build/smb_build/config_mk.pm
source4/build/smb_build/input.pm
source4/headermap.txt
source4/lib/charset/charset.h
source4/lib/cmdline/config.mk
source4/lib/cmdline/popt_common.h
source4/lib/util/util.h
source4/libcli/config.mk
source4/libcli/ldap/config.mk
source4/libcli/libcli.h
source4/libcli/raw/interfaces.h
source4/libcli/raw/libcliraw.h
source4/libcli/smb2/smb2.h
source4/libcli/smb2/smb2_calls.h
source4/librpc/config.mk
source4/smb_server/smb_server.h
source4/torture/config.mk

index 2bc2953567467e428a6c88bde938577aebc11216..6be817c58d55ce0c2782b9f8e3054baec57b06ec 100644 (file)
@@ -63,7 +63,8 @@ my $section_types = {
                "MANPAGE"               => "string",
                "INSTALLDIR"            => "string",
                "PRIVATE_PROTO_HEADER"  => "string",
-               "PUBLIC_HEADERS"        => "string", 
+               "PUBLIC_PROTO_HEADER"   => "string",
+               "PUBLIC_HEADERS"        => "list", 
 
                "EXTRA_CFLAGS"          => "string"
                },
index 369e4aa75b6336ccd9a159dd013dae6ba200e128..704dafa37146ec0b3ff07733922de7fd3886b8fa 100644 (file)
@@ -147,18 +147,6 @@ sub check($$$$$)
        my ($INPUT, $enabled, $subsys_ot, $lib_ot, $module_ot) = @_;
 
        foreach my $part (values %$INPUT) {
-               unless(defined($part->{NOPROTO})) {
-                       if ($part->{TYPE} eq "MODULE" or $part->{TYPE} eq "BINARY") {
-                               $part->{NOPROTO} = "YES";
-                       } else {
-                               $part->{NOPROTO} = "NO";
-                       }
-               }
-
-               if (defined($part->{PRIVATE_PROTO_HEADER})) {
-                       $part->{NOPROTO} = "YES";
-               }
-
                unless (defined($part->{STANDARD_VISIBILITY})) {
                        if ($part->{TYPE} eq "MODULE" or $part->{TYPE} eq "BINARY") {
                                $part->{STANDARD_VISIBILITY} = "hidden";
@@ -170,9 +158,12 @@ sub check($$$$$)
                unless (defined($part->{EXTRA_CFLAGS})) {
                        $part->{EXTRA_CFLAGS} = "";
                }
+
+               unless (defined($part->{PUBLIC_HEADERS})) {
+                       $part->{PUBLIC_HEADERS} = [];
+               }
                
                if (defined($part->{PUBLIC_PROTO_HEADER})) {
-                       $part->{NOPROTO} = "YES";
                        push (@{$part->{PUBLIC_HEADERS}}, $part->{PUBLIC_PROTO_HEADER});
                }
 
index c761272abe6a48689c957a47ce336447b8f68a14..816c75da9536f7417bcbf2eef58dcc6e524d98b5 100644 (file)
@@ -60,3 +60,12 @@ auth/gensec/gensec_proto.h: gensec/proto.h
 libcli/auth/credentials.h: domain_credentials.h
 lib/charset/charset.h: charset.h
 lib/charset/charset_proto.h: charset/proto.h
+libcli/ldap/ldap.h: ldap.h
+libcli/ldap/ldap_proto.h: ldap_proto.h
+torture/torture.h: torture.h
+torture/proto.h: torture/proto.h
+libcli/libcli.h: client.h
+libcli/libcli_proto.h: client/proto.h
+librpc/gen_ndr/nbt.h: gen_ndr/nbt.h
+librpc/gen_ndr/svcctl.h: gen_ndr/nbt.h
+lib/cmdline/popt_common.h: samba/popt.h
index df67aebb55928b0eecdc5216c967f9fa528c8736..629786ee95080d2f10637a7ee5fcba4104bec3c7 100644 (file)
@@ -22,6 +22,8 @@
 #ifndef __CHARSET_H__
 #define __CHARSET_H__
 
+#include "lib/talloc/talloc.h"
+
 /* this defines the charset types used in samba */
 typedef enum {CH_UTF16=0, CH_UNIX=1, CH_DISPLAY=2, CH_DOS=3, CH_UTF8=4, CH_UTF16BE=5} charset_t;
 
index 2dc957cc4d1d061e2c3b626275e30e80a577e231..cc82ba443eb7eec3e2766ec13bc9590a47c6da12 100644 (file)
@@ -4,6 +4,7 @@ OBJ_FILES = credentials.o
 REQUIRED_SUBSYSTEMS = CREDENTIALS
 
 [SUBSYSTEM::POPT_SAMBA]
+PUBLIC_HEADERS = popt_common.h 
 OBJ_FILES = popt_common.o
 
 [SUBSYSTEM::POPT_CREDENTIALS]
index 785a50ae70c8bef28d2c7b166aac6afeb10f305e..a2eaebbbeaa71dc3f6a1174d6300542bd64cf4ac 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef _POPT_COMMON_H
 #define _POPT_COMMON_H
 
-#include "popt.h"
+#include <popt.h>
 
 /* Common popt structures */
 extern struct poptOption popt_common_samba[];
index 60cba737a9712d85905c2f814eae859f702d1170..d6b412ee71995ba468c2b9b4b43a334db3fa4ab7 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef _SAMBA_UTIL_H_
 #define _SAMBA_UTIL_H_
 
+#include "core.h"
 #include "charset/charset.h"
 
 /**
index b21480321520d480036c7d2e629549d866475111..465146ec17f728ce82309db517be3eff89afda25 100644 (file)
@@ -96,6 +96,7 @@ OBJ_FILES = \
 REQUIRED_SUBSYSTEMS = LIBCLI_NBT MESSAGING
 
 [LIBRARY::LIBCLI]
+PUBLIC_HEADERS = libcli.h
 VERSION = 0.0.1
 SO_VERSION = 0
 DESCRIPTION = SMB/CIFS client library
@@ -105,7 +106,7 @@ REQUIRED_SUBSYSTEMS = LIBCLI_RAW LIBCLI_UTILS LIBCLI_AUTH \
 
 [SUBSYSTEM::LIBSMB]
 REQUIRED_SUBSYSTEMS = LIBCLI SOCKET
-PRIVATE_PROTO_HEADER = libcli_proto.h
+PUBLIC_PROTO_HEADER = libcli_proto.h
 OBJ_FILES = clireadwrite.o \
                cliconnect.o \
                clifile.o \
index c0ad8d157f23957b0fd816f71b14f4978326af83..624b2603ecc2eb13d9dee74fec9aec6978825893 100644 (file)
@@ -1,7 +1,8 @@
 #################################
 # Start SUBSYSTEM LIBCLI_LDAP
 [SUBSYSTEM::LIBCLI_LDAP]
-PRIVATE_PROTO_HEADER = ldap_proto.h
+PUBLIC_PROTO_HEADER = ldap_proto.h
+PUBLIC_HEADERS = ldap.h
 OBJ_FILES = ldap.o \
                ldap_client.o \
                ldap_bind.o \
index c358ac5752419767acc0c6beb5694520b47f936c..c104fcf80eb704e7bf87bab23c1cec5e33000a84 100644 (file)
@@ -22,7 +22,8 @@
 #ifndef __LIBCLI_H__
 #define __LIBCLI_H__
 
-#include "smb.h"
+#include <core.h>
+#include "librpc/gen_ndr/nbt.h"
 
 /* 
    smbcli_state: internal state used in libcli library for single-threaded callers, 
@@ -49,6 +50,9 @@ struct nbt_dc_name {
        const char *name;
 };
 
+struct cli_credentials;
+struct event_context;
+#include "libcli/raw/libcliraw.h"
 #include "libcli/libcli_proto.h"
 
 #endif /* __LIBCLI_H__ */
index 20b729caba3d43ace9f04058913380be7cee1420..d662b9f5ae52ac7fb5612408f584377bcd478fea 100644 (file)
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#ifndef __LIBCLI_RAW_INTERFACES_H__
+#define __LIBCLI_RAW_INTERFACES_H__
+
+#include "smb.h" 
+
 /* 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
    on the wire in testsuite test code to ensure that we are
@@ -2048,3 +2053,4 @@ union smb_search_close {
        } findclose;
 };
 
+#endif /* __LIBCLI_RAW_INTERFACES_H__ */
index f115a18d231cd9109dc8f7d850a8280a19e656d5..21d0b0dcdb4077ccc878b5047f8300f1843d63b7 100644 (file)
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#ifndef __LIBCLI_RAW_H__
+#define __LIBCLI_RAW_H__
+
 #include "libcli/raw/request.h"
-#include "smb.h"
 #include "librpc/gen_ndr/nbt.h"
 
 struct smbcli_tree;  /* forward declare */
@@ -271,4 +273,7 @@ struct smbcli_request {
       goto failed; \
 }
 
+#include "libcli/raw/interfaces.h" 
 #include "libcli/raw/raw_proto.h"
+
+#endif /* __LIBCLI_RAW__H__ */
index 913d58409b0b6532ac32f469682929d5a7393240..ceafacf9d4036097223d988f7cf994e9dde60ffe 100644 (file)
@@ -20,8 +20,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include "smb.h"
-
 struct smb2_options {
        uint32_t timeout;
 };
index 7349b609cb743faf8a8bb0a71eba4d9aaab354d9..af1730aeeeb7bb8738c26ccd68c4ac3ba9fcc611 100644 (file)
@@ -20,6 +20,7 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#include "libcli/raw/interfaces.h"
 
 struct smb2_negprot {
        struct {
index c886c8148638afa469ba9d52b2d58f723d539b07..f9286736eff89e6cf15271d4f52171d70609160a 100644 (file)
@@ -201,6 +201,7 @@ REQUIRED_SUBSYSTEMS = LIBNDR NDR_SVCCTL
 
 [LIBRARY::NDR_SVCCTL]
 VERSION = 0.0.1
+PUBLIC_HEADERS = gen_ndr/svcctl.h
 SO_VERSION = 0
 DESCRIPTION =
 OBJ_FILES = gen_ndr/ndr_svcctl.o
@@ -409,6 +410,7 @@ VERSION = 0.0.1
 SO_VERSION = 0
 DESCRIPTION =
 OBJ_FILES = gen_ndr/ndr_nbt.o
+PUBLIC_HEADERS = gen_ndr/nbt.h
 REQUIRED_SUBSYSTEMS = LIBNDR NDR_MISC NDR_NBT_BUF NDR_SVCCTL
 
 [LIBRARY::NDR_WINSREPL]
index ab110890d0be38009b56cf693351c73d498a7abf..c266d1b99477445c9b7e3b2d009616083d60e95b 100644 (file)
@@ -20,9 +20,9 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include "smb.h"
 #include "libcli/raw/request.h"
 #include "smbd/process_model.h"
+#include "libcli/raw/interfaces.h"
 
 /*
   this header declares the core context structures associated with smb
index 3b75135e6f54466db7e6d17f90efe6d7ae86a32f..be165fb3709555ab7348fcf69dfe253b8d7fe2a0 100644 (file)
@@ -220,7 +220,8 @@ REQUIRED_SUBSYSTEMS = \
 # Start BINARY smbtorture
 [BINARY::smbtorture]
 INSTALLDIR = BINDIR
-PRIVATE_PROTO_HEADER = proto.h
+PUBLIC_HEADERS = torture.h
+PUBLIC_PROTO_HEADER = proto.h
 OBJ_FILES = \
                torture.o \
                torture_util.o