From 4ca96834f3b77757d1e03fbc5290677b6724b785 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 11 Aug 2010 13:35:14 +1000 Subject: s3-param: added lp_set_cmdline() and --option= parameter Pair-Programmed-With: Andrew Bartlett --- source3/include/proto.h | 2 ++ source3/include/smb.h | 1 + 2 files changed, 3 insertions(+) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index a49aa66564..180e1c03bd 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -3605,6 +3605,8 @@ const char *lp_ldap_group_suffix(void); const char *lp_ldap_idmap_suffix(void); void *lp_local_ptr_by_snum(int snum, void *ptr); bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue); +bool lp_set_cmdline(const char *pszParmName, const char *pszParmValue); +bool lp_set_option(const char *option); void init_locals(void); bool lp_is_default(int snum, struct parm_struct *parm); bool dump_a_parameter(int snum, char *parm_name, FILE * f, bool isGlobal); diff --git a/source3/include/smb.h b/source3/include/smb.h index 129be1cad8..f109739a42 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -905,6 +905,7 @@ struct parm_struct { #define FLAG_HIDE 0x2000 /* options that should be hidden in SWAT */ #define FLAG_DOS_STRING 0x4000 /* convert from UNIX to DOS codepage when reading this string. */ #define FLAG_META 0x8000 /* A meta directive - not a real parameter */ +#define FLAG_CMDLINE 0x10000 /* option has been overridden */ struct bitmap { uint32 *b; -- cgit