1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

lib/param: Merge "Browse Options" section from source3/param

This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett
This commit is contained in:
Andrew Bartlett 2012-07-26 16:03:09 +10:00
parent 3f1dfdd8b4
commit b727e706c3

View File

@ -77,6 +77,7 @@ static bool defaults_saved = false;
struct parmlist_entry *param_opt; \
char *szRealm; \
char *szConfigFile; \
int iPreferredMaster; \
char *szLdapMachineSuffix; \
char *szLdapUserSuffix; \
char *szLdapIdmapSuffix; \
@ -91,8 +92,7 @@ static bool defaults_saved = false;
char *tls_crlfile; \
char *tls_dhpfile; \
char *loglevel; \
char *panic_action; \
int bPreferredMaster;
char *panic_action;
#include "lib/param/param_global.h"
@ -151,14 +151,6 @@ static struct parm_struct parm_table[] = {
.special = NULL,
.enum_list = enum_bool_auto
},
{
.label = "domain master",
.type = P_ENUM,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(domain_master),
.special = NULL,
.enum_list = enum_bool_auto
},
{
.label = "dos charset",
.type = P_STRING,
@ -865,11 +857,40 @@ static struct parm_struct parm_table[] = {
.enum_list = NULL
},
{N_("Browse Options"), P_SEP, P_SEPARATOR},
{
.label = "os level",
.type = P_INTEGER,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(os_level),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "lm announce",
.type = P_ENUM,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(lm_announce),
.special = NULL,
.enum_list = enum_bool_auto,
.flags = FLAG_ADVANCED,
},
{
.label = "lm interval",
.type = P_INTEGER,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(lm_interval),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_ADVANCED,
},
{
.label = "preferred master",
.type = P_ENUM,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(bPreferredMaster),
.offset = GLOBAL_VAR(iPreferredMaster),
.special = NULL,
.enum_list = enum_bool_auto,
.flags = FLAG_BASIC | FLAG_ADVANCED,
@ -878,7 +899,7 @@ static struct parm_struct parm_table[] = {
.label = "prefered master",
.type = P_ENUM,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(bPreferredMaster),
.offset = GLOBAL_VAR(iPreferredMaster),
.special = NULL,
.enum_list = enum_bool_auto,
.flags = FLAG_HIDE,
@ -889,7 +910,26 @@ static struct parm_struct parm_table[] = {
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(bLocalMaster),
.special = NULL,
.enum_list = NULL
.enum_list = NULL,
.flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "domain master",
.type = P_ENUM,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(domain_master),
.special = NULL,
.enum_list = enum_bool_auto,
.flags = FLAG_BASIC | FLAG_ADVANCED,
},
{
.label = "browse list",
.type = P_BOOL,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(bBrowseList),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_ADVANCED,
},
{
.label = "browseable",
@ -906,7 +946,26 @@ static struct parm_struct parm_table[] = {
.p_class = P_LOCAL,
.offset = LOCAL_VAR(bBrowseable),
.special = NULL,
.enum_list = NULL
.enum_list = NULL,
.flags = FLAG_HIDE,
},
{
.label = "access based share enum",
.type = P_BOOL,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(bAccessBasedShareEnum),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_BASIC | FLAG_ADVANCED | FLAG_SHARE
},
{
.label = "enhanced browsing",
.type = P_BOOL,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(enhanced_browsing),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_ADVANCED,
},
{N_("WINS Options"), P_SEP, P_SEPARATOR},