summaryrefslogtreecommitdiffstats
path: root/common/bbu.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/bbu.c')
-rw-r--r--common/bbu.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/bbu.c b/common/bbu.c
index 031c433820..3b372263b1 100644
--- a/common/bbu.c
+++ b/common/bbu.c
@@ -30,6 +30,21 @@
static LIST_HEAD(bbu_image_handlers);
+int bbu_handlers_iterate(int (*fn)(struct bbu_handler *, void *), void *ctx)
+{
+ struct bbu_handler *handler;
+
+ list_for_each_entry(handler, &bbu_image_handlers, list) {
+ int ret;
+
+ ret = fn(handler, ctx);
+ if (ret)
+ return ret;
+ }
+
+ return 0;
+}
+
int bbu_force(struct bbu_data *data, const char *fmt, ...)
{
va_list args;