From 651cf893903147cf6d3f1ccb6432c2661cdc36c5 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 14 Oct 2013 15:39:10 +1300 Subject: 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 Reviewed-by: Stefan Metzmacher --- source3/include/proto.h | 2 ++ source3/param/wscript_build | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'source3') 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', -- cgit