param: Only include param_proto.h for Samba builds, provide those
authorJelmer Vernooij <jelmer@samba.org>
Mon, 13 Sep 2010 18:40:19 +0000 (20:40 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 13 Sep 2010 18:42:01 +0000 (20:42 +0200)
prototypes necessary for external users (OpenChange) manually.

source4/param/param.h
source4/param/wscript_build

index 7441493d0acf965e44df79a87d135d08ed77f565..93c759451b033a21c8352a8ea939bf5375d26b9e 100644 (file)
@@ -69,7 +69,13 @@ struct smbcli_options;
 struct smbcli_session_options;
 struct gensec_settings;
 
+#ifdef CONFIG_H_IS_FROM_SAMBA
 #include "param/param_proto.h"
+#endif
+
+const char **lpcfg_interfaces(struct loadparm_context *);
+const char *lpcfg_realm(struct loadparm_context *);
+const char *lpcfg_netbios_name(struct loadparm_context *);
 
 void reload_charcnv(struct loadparm_context *lp_ctx);
 
index 0f0f1d0c04eafbebbab95d3db2a2d05fc4c32344..749aab36e254cff174d99ed3aff9bbd624b9c1aa 100644 (file)
@@ -7,7 +7,7 @@ bld.SAMBA_LIBRARY('LIBSAMBA-HOSTCONFIG',
        deps='DYNCONFIG CHARSET',
        public_deps='LIBSAMBA-UTIL',
        public_headers='param.h',
-        autoproto='param_proto.h'                 
+       autoproto='param_proto.h',
        )