summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-07-20 16:25:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-26 08:31:35 +0200
commit89c8ac578f309eb2d9aa86e9c507d2fa117d0308 (patch)
tree4d5242732ca20d4a914af7dd7e395f4d93620e4f /include
parented71dfbbc578173fb2fe8eb6d4bb293c9c320954 (diff)
downloadbarebox-89c8ac578f309eb2d9aa86e9c507d2fa117d0308.tar.gz
barebox-89c8ac578f309eb2d9aa86e9c507d2fa117d0308.tar.xz
boot: Move code to common/
Normally code in commands/ shall only do the option parsing whereas the functionality shall be in common/ to make the code usable from C aswell. Do this in the boot code aswell, move it to common/boot.c and add the function prototypes to include/boot.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/boot.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/boot.h b/include/boot.h
index e0a61c5644..a855cbe1e5 100644
--- a/include/boot.h
+++ b/include/boot.h
@@ -39,4 +39,13 @@ int bootentries_add_entry(struct bootentries *entries, struct bootentry *entry);
#define bootentries_for_each_entry(bootentries, entry) \
list_for_each_entry(entry, &bootentries->entries, list)
+void boot_set_watchdog_timeout(unsigned int timeout);
+struct bootentries *bootentries_alloc(void);
+void bootentries_free(struct bootentries *bootentries);
+int bootentry_create_from_name(struct bootentries *bootentries,
+ const char *name);
+void bootsources_menu(struct bootentries *bootentries, int timeout);
+void bootsources_list(struct bootentries *bootentries);
+int boot_entry(struct bootentry *be, int verbose, int dryrun);
+
#endif /* __BOOT_H */