summaryrefslogtreecommitdiffstats
path: root/include/blspec.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-07-20 13:58:20 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-26 08:31:35 +0200
commitbf07b3411a023a031bea60140cc47668c7e1af2d (patch)
treef35d6a96e2b9a1a032875e3ddbc20651111faaed /include/blspec.h
parent3ab18b3cd0a07fc6b84248b84dacd3330f02189e (diff)
downloadbarebox-bf07b3411a023a031bea60140cc47668c7e1af2d.tar.gz
barebox-bf07b3411a023a031bea60140cc47668c7e1af2d.tar.xz
bootentries: Move struct bootentries to include/boot.h
The boot function prototypes are declared in include/blspec.h. Move them to include/boot.h where they belong. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/blspec.h')
-rw-r--r--include/blspec.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/include/blspec.h b/include/blspec.h
index 8a79df5738..7d911f030b 100644
--- a/include/blspec.h
+++ b/include/blspec.h
@@ -2,21 +2,7 @@
#define __LOADER_H__
#include <linux/list.h>
-#include <menu.h>
-
-struct bootentries {
- struct list_head entries;
- struct menu *menu;
-};
-
-struct bootentry {
- struct list_head list;
- struct menu_entry me;
- char *title;
- char *description;
- int (*boot)(struct bootentry *entry, int verbose, int dryrun);
- void (*release)(struct bootentry *entry);
-};
+#include <boot.h>
struct blspec_entry {
struct bootentry entry;
@@ -37,9 +23,4 @@ int blspec_scan_device(struct bootentries *bootentries, struct device_d *dev);
int blspec_scan_devicename(struct bootentries *bootentries, const char *devname);
int blspec_scan_directory(struct bootentries *bootentries, const char *root);
-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)
-
#endif /* __LOADER_H__ */