From 4b1b73661ffa970aba2d551aaa4353407d93ff85 Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Tue, 10 Aug 2021 07:29:27 +0200 Subject: 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 Link: https://lore.barebox.org/20210810052928.101783-1-r.czerwinski@pengutronix.de Signed-off-by: Sascha Hauer --- include/file-list.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 *); -- cgit v1.2.3