summaryrefslogtreecommitdiff
path: root/lib/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/util.h')
-rw-r--r--lib/util/util.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index bb07180872..78fc87ebe1 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -422,12 +422,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 * const *list);
+_PUBLIC_ size_t str_list_length(const char **list);
/**
copy a string list
*/
-_PUBLIC_ char **str_list_copy(TALLOC_CTX *mem_ctx, const char * const *list);
+_PUBLIC_ char **str_list_copy(TALLOC_CTX *mem_ctx, const char **list);
/**
Return true if all the elements of the list match exactly.
@@ -440,11 +440,6 @@ _PUBLIC_ bool str_list_equal(const char **list1, const char **list2);
_PUBLIC_ char **str_list_add(char **list, const char *s);
/**
- add an entry to a string list (if not already in there)
-*/
-_PUBLIC_ char **str_list_add_unique(char **list, const char *s);
-
-/**
remove an entry from a string list
*/
_PUBLIC_ void str_list_remove(const char **list, const char *s);
@@ -461,7 +456,17 @@ _PUBLIC_ bool str_list_check_ci(const char **list, const char *s);
/**
append one list to another - expanding list1
*/
-_PUBLIC_ char **str_list_append(char **list1, const char * const *list2);
+_PUBLIC_ char **str_list_append(char **list1, const char **list2);
+
+/**
+ remove duplicate elements from a list
+*/
+_PUBLIC_ char **str_list_unique(char **list);
+
+/*
+ very useful when debugging complex list related code
+ */
+_PUBLIC_ void str_list_show(const char **list);
/* The following definitions come from lib/util/util_file.c */