summaryrefslogtreecommitdiffstats
path: root/lib/param
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2014-01-15 17:18:13 +1300
committerAndrew Bartlett <abartlet@samba.org>2014-02-12 13:17:13 +1300
commitcc6a77835bc286b2e570a05596b3b6acc54c1052 (patch)
tree7dbcc1a3346d09f5b197af6c9c060fe9a590407b /lib/param
parent526cf3c119cae83d94d9120ef436482281daaeb4 (diff)
downloadsamba-cc6a77835bc286b2e570a05596b3b6acc54c1052.tar.gz
samba-cc6a77835bc286b2e570a05596b3b6acc54c1052.tar.xz
samba-cc6a77835bc286b2e570a05596b3b6acc54c1052.zip
lib/param: generate the param_functions.h containing the prototypes
Pair-programmed-with: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib/param')
-rw-r--r--lib/param/param.h5
-rw-r--r--lib/param/wscript_build9
2 files changed, 11 insertions, 3 deletions
diff --git a/lib/param/param.h b/lib/param/param.h
index 77c3c770044..428a2a31c29 100644
--- a/lib/param/param.h
+++ b/lib/param/param.h
@@ -49,6 +49,7 @@ struct gensec_settings;
#ifdef CONFIG_H_IS_FROM_SAMBA
#include "lib/param/param_proto.h"
+#include "lib/param/param_functions.h"
#endif
const char **lpcfg_interfaces(struct loadparm_context *);
@@ -61,7 +62,7 @@ int lpcfg_allow_dns_updates(struct loadparm_context *);
void reload_charcnv(struct loadparm_context *lp_ctx);
struct loadparm_service *lpcfg_default_service(struct loadparm_context *lp_ctx);
-
+bool lpcfg_autoloaded(struct loadparm_service *, struct loadparm_service *);
char *lpcfg_tls_keyfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
char *lpcfg_tls_certfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
@@ -69,6 +70,8 @@ char *lpcfg_tls_cafile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
char *lpcfg_tls_dhpfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
char *lpcfg_tls_crlfile(TALLOC_CTX *mem_ctx, struct loadparm_context *);
+const char *lpcfg_dnsdomain(struct loadparm_context *);
+
const char *lpcfg_servicename(const struct loadparm_service *service);
diff --git a/lib/param/wscript_build b/lib/param/wscript_build
index 1b26c5b141f..2a32133bc1d 100644
--- a/lib/param/wscript_build
+++ b/lib/param/wscript_build
@@ -6,6 +6,12 @@ bld.SAMBA_GENERATOR('param_functions.c',
group='build_source',
rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=FUNCTIONS')
+bld.SAMBA_GENERATOR('param_functions.h',
+ source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
+ target='param_functions.h',
+ group='build_source',
+ rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=LIBPROTO')
+
bld.SAMBA_GENERATOR('param_local_h',
source= '../../script/mkparamdefs.pl loadparm.c param_functions.c ',
target='param_local.h',
@@ -38,8 +44,7 @@ bld.SAMBA_LIBRARY('samba-hostconfig',
deps='DYNCONFIG server-role',
public_deps='samba-util param_local_h',
public_headers='param.h',
- autoproto='param_proto.h',
- autoproto_extra_source='param_functions.c'
+ autoproto='param_proto.h'
)