summaryrefslogtreecommitdiff
path: root/lib/util/util.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-12 00:56:56 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-12 00:56:56 +0200
commit218f482fbfe96b2cddec8c05f6b8f174481d2e27 (patch)
treef54c33f277840e089793fff8547b05875546eac5 /lib/util/util.h
parentcb78d4593b5ac4eaa0cbead6f86027d040a9e88a (diff)
downloadsamba-218f482fbfe96b2cddec8c05f6b8f174481d2e27.tar.gz
samba-218f482fbfe96b2cddec8c05f6b8f174481d2e27.tar.bz2
samba-218f482fbfe96b2cddec8c05f6b8f174481d2e27.zip
Use common strlist implementation in Samba 3 and Samba 4.
Diffstat (limited to 'lib/util/util.h')
-rw-r--r--lib/util/util.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index 861b6affe5..5cecad7350 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -21,10 +21,9 @@
#ifndef _SAMBA_UTIL_H_
#define _SAMBA_UTIL_H_
+#include "lib/charset/charset.h"
#include "../lib/util/attr.h"
-#include "charset/charset.h"
-
/* for TALLOC_CTX */
#include <talloc.h>
@@ -452,7 +451,7 @@ _PUBLIC_ bool strequal(const char *s1, const char *s2);
separator list. The separator list must contain characters less than
or equal to 0x2f for this to work correctly on multi-byte strings
*/
-_PUBLIC_ const char **str_list_make(TALLOC_CTX *mem_ctx, const char *string, const char *sep);
+_PUBLIC_ char **str_list_make(TALLOC_CTX *mem_ctx, const char *string, const char *sep);
/**
* build a null terminated list of strings from an argv-like input string
@@ -473,12 +472,12 @@ _PUBLIC_ char *str_list_join_shell(TALLOC_CTX *mem_ctx, const char **list, char
/**
return the number of elements in a string list
*/
-_PUBLIC_ size_t str_list_length(const char **list);
+_PUBLIC_ size_t str_list_length(const char * const *list);
/**
copy a string list
*/
-_PUBLIC_ const char **str_list_copy(TALLOC_CTX *mem_ctx, const char **list);
+_PUBLIC_ char **str_list_copy(TALLOC_CTX *mem_ctx, const char **list);
/**
Return true if all the elements of the list match exactly.