summaryrefslogtreecommitdiffstats
path: root/include/stringlist.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-05-03 13:48:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-05-12 07:59:59 +0200
commit15e26bb72b334da1830c26917e28ffcac64e8e4c (patch)
treec2d334fe86fb95e1b963172e349ea00a6249ad4f /include/stringlist.h
parentfab1f406fdb82f2876f48c3c9e33672c963809e2 (diff)
downloadbarebox-15e26bb72b334da1830c26917e28ffcac64e8e4c.tar.gz
barebox-15e26bb72b334da1830c26917e28ffcac64e8e4c.tar.xz
param: introduce file-list parameter type
DFU, fastboot and incoming mass storage support all use file lists as input, but individually check syntax correctness only on use. A dedicated file list parameter would improve the user experience and makes the code using it easier to handle: the struct file_list can be passed around directly instead of having to parse it first on use. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210503114901.13095-6-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/stringlist.h')
-rw-r--r--include/stringlist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stringlist.h b/include/stringlist.h
index c5d6e70a36..01491082ea 100644
--- a/include/stringlist.h
+++ b/include/stringlist.h
@@ -14,6 +14,7 @@ int string_list_add_asprintf(struct string_list *sl, const char *fmt, ...);
int string_list_add_sorted(struct string_list *sl, const char *str);
int string_list_add_sort_uniq(struct string_list *sl, const char *str);
int string_list_contains(struct string_list *sl, const char *str);
+char *string_list_join(const struct string_list *sl, const char *joinstr);
void string_list_print_by_column(struct string_list *sl);
static inline void string_list_init(struct string_list *sl)