diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-09-27 12:21:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-09-27 14:02:20 +0200 |
commit | dc8c2c4b942f499fedb284b096eff3b2b9970b9c (patch) | |
tree | f98c42a4bd13e8158af5ae7f77b9edb4f82ad89a /include | |
parent | 9f36f6d615ab6eca2e37823213c0f6f3ead25921 (diff) | |
download | barebox-dc8c2c4b942f499fedb284b096eff3b2b9970b9c.tar.gz barebox-dc8c2c4b942f499fedb284b096eff3b2b9970b9c.tar.xz |
file_list: Add function to get entry by its name
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/file-list.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/file-list.h b/include/file-list.h index ccdc2b5efd..1e02539d4d 100644 --- a/include/file-list.h +++ b/include/file-list.h @@ -23,6 +23,8 @@ void file_list_free(struct file_list *); int file_list_add_entry(struct file_list *files, const char *name, const char *filename, unsigned long flags); +struct file_list_entry *file_list_entry_by_name(struct file_list *files, const char *name); + #define file_list_for_each_entry(files, entry) \ list_for_each_entry(entry, &files->list, list) |