From c4ed3b223126e69d697fbf482ab60e125bbe3d43 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Sun, 7 Oct 2018 23:35:16 -0700 Subject: bbu: Add "handler" parameter to barebox_update() Add "handler" parameter to barebox_update() and remove the code that was respondible for header lookup before. With this change finding appropriate handler is caller's responsibility, which makes it possible to implement custom handler lookup/existence check, chache it, and then re-use it without calling handler_find_by_* functions for the second time. Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- include/bbu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/bbu.h') diff --git a/include/bbu.h b/include/bbu.h index 775d7a3100..0ed355b539 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -40,7 +40,7 @@ int bbu_force(struct bbu_data *, const char *fmt, ...) int bbu_confirm(struct bbu_data *); -int barebox_update(struct bbu_data *); +int barebox_update(struct bbu_data *, struct bbu_handler *); struct bbu_handler *bbu_find_handler_by_name(const char *name); struct bbu_handler *bbu_find_handler_by_device(const char *devicepath); -- cgit v1.2.3