From 19eae537739daf95d10b67d9888769e7bf895d76 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 17 Nov 2016 14:22:41 +0100 Subject: s3/smbd: convert "mangled names" option to an enum This is in preparation of adding an additional setting for this option. No change in behaviour by this commit, that comes in the next one. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- lib/param/loadparm.h | 3 +++ lib/param/param_table.c | 10 ++++++++++ 2 files changed, 13 insertions(+) (limited to 'lib/param') diff --git a/lib/param/loadparm.h b/lib/param/loadparm.h index f9fb7d8d804..2cd5ccac1c2 100644 --- a/lib/param/loadparm.h +++ b/lib/param/loadparm.h @@ -236,6 +236,9 @@ enum inheritowner_options { INHERIT_OWNER_UNIX_ONLY }; +/* mangled names options */ +enum mangled_names_options {MANGLED_NAMES_NO, MANGLED_NAMES_YES}; + /* * Default passwd chat script. */ diff --git a/lib/param/param_table.c b/lib/param/param_table.c index 4b5234a7c9e..8eb791aa2c4 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -315,6 +315,16 @@ static const struct enum_list enum_inherit_owner_vals[] = { {INHERIT_OWNER_UNIX_ONLY, "unix only"}, {-1, NULL}}; +static const struct enum_list enum_mangled_names[] = { + {MANGLED_NAMES_NO, "no"}, + {MANGLED_NAMES_NO, "false"}, + {MANGLED_NAMES_NO, "0"}, + {MANGLED_NAMES_YES, "yes"}, + {MANGLED_NAMES_YES, "true"}, + {MANGLED_NAMES_YES, "1"}, + {-1, NULL} +}; + /* Note: We do not initialise the defaults union - it is not allowed in ANSI C * * NOTE: Handling of duplicated (synonym) parameters: -- cgit v1.2.1