summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-06-02 11:01:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-06-03 09:17:27 +0200
commitcfe5484eb2cac97373da85706732678ab34cedc7 (patch)
tree18b2b243b96886afe78f4dfd58880dc1aeb7fcdb /include
parent5005f599ca88519dfa5139d4e90f3f5c5290bf31 (diff)
downloadbarebox-cfe5484eb2cac97373da85706732678ab34cedc7.tar.gz
barebox-cfe5484eb2cac97373da85706732678ab34cedc7.tar.xz
bbu: export bbu_std_file_handler for use in custom handlers
bbu_register_std_file_update() registers an update handler that updates a single file, usually a partition. Depending on SoC, we may want to compute the file path at install time. To save custom bbu code the hassle of reimplementing bbu_std_file_handler(), export it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220602090133.3190450-5-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/bbu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bbu.h b/include/bbu.h
index bd19fa187f..2dad26a127 100644
--- a/include/bbu.h
+++ b/include/bbu.h
@@ -54,6 +54,9 @@ struct file_list;
int bbu_mmcboot_handler(struct bbu_handler *, struct bbu_data *,
int (*chained_handler)(struct bbu_handler *, struct bbu_data *));
+int bbu_std_file_handler(struct bbu_handler *handler,
+ struct bbu_data *data);
+
#ifdef CONFIG_BAREBOX_UPDATE
int bbu_register_handler(struct bbu_handler *);