summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-10-29 10:59:49 +0100
committerJeremy Allison <jra@samba.org>2014-11-14 23:27:04 +0100
commitc5db62c9a35668e105a8a2da045bfd33f2d91a81 (patch)
tree529b793908af09bac1f40ae7ffa4ef50bc01cf20 /lib
parent94fadfc89bab0c28f5c126c653569c5f1b99a64e (diff)
downloadsamba-c5db62c9a35668e105a8a2da045bfd33f2d91a81.tar.gz
samba-c5db62c9a35668e105a8a2da045bfd33f2d91a81.tar.xz
samba-c5db62c9a35668e105a8a2da045bfd33f2d91a81.zip
lib/util: add str_list_make_v3_const()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/util/samba_util.h4
-rw-r--r--lib/util/util_strlist.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h
index 41b3fc8ecd..2f762ac28d 100644
--- a/lib/util/samba_util.h
+++ b/lib/util/samba_util.h
@@ -476,6 +476,10 @@ char **str_list_make_v3(TALLOC_CTX *mem_ctx, const char *string,
const char *sep);
+const char **str_list_make_v3_const(TALLOC_CTX *mem_ctx,
+ const char *string,
+ const char *sep);
+
/* The following definitions come from lib/util/util_file.c */
diff --git a/lib/util/util_strlist.c b/lib/util/util_strlist.c
index d0be917a5e..9dd4ab3f34 100644
--- a/lib/util/util_strlist.c
+++ b/lib/util/util_strlist.c
@@ -588,3 +588,10 @@ char **str_list_make_v3(TALLOC_CTX *mem_ctx, const char *string,
TALLOC_FREE(s);
return list;
}
+
+const char **str_list_make_v3_const(TALLOC_CTX *mem_ctx,
+ const char *string,
+ const char *sep)
+{
+ return const_str_list(str_list_make_v3(mem_ctx, string, sep));
+}