From ce7bccef5fa41d5445a97f32daf387c9ed85030e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 1 Oct 2007 19:46:00 +0000 Subject: r25449: Add convenience function for opening the default smb.conf for openchange. (This used to be commit 5f023ef7a4046442a96768b926546f93735c9666) --- source4/param/loadparm.c | 5 +++++ source4/script/mkproto.pl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 1d12a2b73c..39b02f0ccb 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -2452,6 +2452,11 @@ bool loadparm_init(struct loadparm_context *lp_ctx) return true; } +_PUBLIC_ _DEPRECATED_ bool lp_load_default(void) +{ + return lp_load(dyn_CONFIGFILE); +} + /*************************************************************************** Load the services array from the services file. Return True on success, False on failure. diff --git a/source4/script/mkproto.pl b/source4/script/mkproto.pl index 5e434d843a..6d76b9bc4f 100755 --- a/source4/script/mkproto.pl +++ b/source4/script/mkproto.pl @@ -198,7 +198,7 @@ sub process_file($$$) } next unless ( $is_public || $line =~ / - (_DEPRECATED_ |_NORETURN_ |_WARN_UNUSED_RESULT_ |_PURE_ )*^( + ^(_DEPRECATED_ |_NORETURN_ |_WARN_UNUSED_RESULT_ |_PURE_ )*( void|BOOL|bool|int|struct|char|const|\w+_[tT]\s|uint|unsigned|long|NTSTATUS| ADS_STATUS|enum\s.*\(|DATA_BLOB|WERROR|XFILE|FILE|DIR| double|TDB_CONTEXT|TDB_DATA|TALLOC_CTX|NTTIME|FN_|init_module| -- cgit