9
0
Fork 0
barebox/include/boot.h

29 lines
494 B
C
Raw Normal View History

2007-07-05 16:02:11 +00:00
#ifndef __BOOT_H
#define __BOOT_H
#include <image.h>
#include <list.h>
struct image_data {
struct image_handle *os;
struct image_handle *initrd;
const char *oftree;
int verify;
};
struct image_handler {
struct list_head list;
char *cmdline_options;
int (*cmdline_parse)(struct image_data *data, int opt, char *optarg);
char *help_string;
int image_type;
int (*bootm)(struct image_data *data);
};
int register_image_handler(struct image_handler *handle);
2007-07-05 16:02:11 +00:00
#endif /* __BOOT_H */