diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-09-27 12:27:32 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-09-27 14:02:20 +0200 |
commit | bed2c7741b185d8242a70529bbfbcc20b3a84418 (patch) | |
tree | 82babfd24370c04c44219f98aeee8d3e0751ca15 /include/bbu.h | |
parent | a3976c3a84f204b005835dd6b358d72b18eeffa3 (diff) | |
download | barebox-bed2c7741b185d8242a70529bbfbcc20b3a84418.tar.gz barebox-bed2c7741b185d8242a70529bbfbcc20b3a84418.tar.xz |
bbu: Add function to iterate over registered handlers
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bbu.h')
-rw-r--r-- | include/bbu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bbu.h b/include/bbu.h index 9d24ffc395..54434b03e0 100644 --- a/include/bbu.h +++ b/include/bbu.h @@ -42,6 +42,8 @@ bool barebox_update_handler_exists(struct bbu_data *); void bbu_handlers_list(void); +int bbu_handlers_iterate(int (*fn)(struct bbu_handler *, void *), void *); + #ifdef CONFIG_BAREBOX_UPDATE int bbu_register_handler(struct bbu_handler *); |