diff --git a/include/blspec.h b/include/blspec.h index 8a79df5..7d911f0 100644 --- a/include/blspec.h +++ b/include/blspec.h @@ -2,21 +2,7 @@ #define __LOADER_H__ #include -#include - -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 struct blspec_entry { struct bootentry entry; @@ -37,9 +23,4 @@ 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__ */ diff --git a/include/boot.h b/include/boot.h index da40ac2..e0a61c5 100644 --- a/include/boot.h +++ b/include/boot.h @@ -2,6 +2,7 @@ #define __BOOT_H #include +#include #include #ifdef CONFIG_FLEXIBLE_BOOTARGS @@ -19,4 +20,23 @@ } #endif +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); +}; + +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 /* __BOOT_H */