lib/util: add str_list_make_v3_const()
authorStefan Metzmacher <metze@samba.org>
Wed, 29 Oct 2014 09:59:49 +0000 (10:59 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 14 Nov 2014 22:27:04 +0000 (23:27 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/samba_util.h
lib/util/util_strlist.c

index 41b3fc8ecda8610b1bb1e412eb2c6c7ef99d1102..2f762ac28d1ccc1af793186774ca19c7d32e6ef6 100644 (file)
@@ -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  */
 
 
index d0be917a5e3aa3aefc3d36572562ebfdf7b27f13..9dd4ab3f348bd8b84cad4af7d8a4367cecaf00a6 100644 (file)
@@ -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));
+}