summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2021-08-10 07:29:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-10-05 09:03:39 +0200
commit4b1b73661ffa970aba2d551aaa4353407d93ff85 (patch)
tree4fe986145be9f237ce4ab52f3389b1d079b33611 /include
parent032727c039f296ba3f5865cd37e52bf947bc460e (diff)
downloadbarebox-4b1b73661ffa970aba2d551aaa4353407d93ff85.tar.gz
barebox-4b1b73661ffa970aba2d551aaa4353407d93ff85.tar.xz
file_list: add file_list_parse_null()
Move the usbgadget parse() function to file_list and rename it to file_list_parse_null() which will return a NULL pointer instead of an error. Also adjust the callers in the usbgadget code. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Link: https://lore.barebox.org/20210810052928.101783-1-r.czerwinski@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/file-list.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/file-list.h b/include/file-list.h
index 7e2a4d9205..5090313739 100644
--- a/include/file-list.h
+++ b/include/file-list.h
@@ -22,6 +22,7 @@ struct file_list {
};
struct file_list *file_list_parse(const char *str);
+struct file_list *file_list_parse_null(const char *str);
char *file_list_to_str(const struct file_list *files);
void file_list_free(struct file_list *);