summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-10-14 15:39:10 +1300
committerStefan Metzmacher <metze@samba.org>2013-10-16 09:31:01 +0200
commit651cf893903147cf6d3f1ccb6432c2661cdc36c5 (patch)
tree4c336321c78a1639b10825ef5ec9cc134cf14a53 /source3
parent22ca0404fc973a6f716f76e7b4bbfa4656f33ab3 (diff)
downloadsamba-651cf893903147cf6d3f1ccb6432c2661cdc36c5.tar.gz
samba-651cf893903147cf6d3f1ccb6432c2661cdc36c5.tar.bz2
samba-651cf893903147cf6d3f1ccb6432c2661cdc36c5.zip
s3/param: Autogenerate parameters prototypes again after proto.h was frozen
This autogenerates the parameters so that we can keep everything in sync easier, particularly when adding new parameters. This will also make it easier to move to a fully autogenerated system in the future, as it reduces special cases. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/param/wscript_build5
2 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 9612a07f66..db6063c7f6 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -984,6 +984,8 @@ NTSTATUS change_trust_account_password( const char *domain, const char *remote_m
/* The following definitions come from param/loadparm.c */
+#include "source3/param/param_proto.h"
+
const char **lp_smb_ports(void);
const char *lp_dos_charset(void);
const char *lp_unix_charset(void);
diff --git a/source3/param/wscript_build b/source3/param/wscript_build
index 278d5f5d5f..643c27eac4 100644
--- a/source3/param/wscript_build
+++ b/source3/param/wscript_build
@@ -13,6 +13,11 @@ bld.SAMBA_GENERATOR('s3_param_global_h',
target='param_global.h',
rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
+bld.SAMBA_GENERATOR('s3_param_proto_h',
+ source= '../../script/mks3param_proto.pl loadparm.c ../../lib/param/param_functions.c',
+ target='param_proto.h',
+ rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT}')
+
bld.SAMBA3_PYTHON('pys3param',
source='pyparam.c',
deps='param',