summaryrefslogtreecommitdiffstats
path: root/include/boot.h
blob: 2ba918b5c9c387ce28d8833198e315239933f105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#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);

#endif /* __BOOT_H */