]> git.ozlabs.org Git - petitboot/blob - lib/types/types.h
9fed7aaaba65d3a5948d248c6482299197cde3e9
[petitboot] / lib / types / types.h
1 #ifndef _TYPES_H
2 #define _TYPES_H
3
4 #include <stdbool.h>
5 #include <list/list.h>
6
7 struct device {
8         char            *id;
9         char            *name;
10         char            *description;
11         char            *icon_file;
12
13         int             n_options;
14         struct list     boot_options;
15
16         void            *ui_info;
17 };
18
19 struct boot_option {
20         char            *device_id;
21         char            *id;
22         char            *name;
23         char            *description;
24         char            *icon_file;
25         char            *boot_image_file;
26         char            *initrd_file;
27         char            *dtb_file;
28         char            *boot_args;
29         bool            is_default;
30
31         struct list_item        list;
32
33         void            *ui_info;
34 };
35
36 struct boot_command {
37         char *option_id;
38         char *boot_image_file;
39         char *initrd_file;
40         char *dtb_file;
41         char *boot_args;
42 };
43
44 struct boot_status {
45         enum {
46                 BOOT_STATUS_INFO,
47                 BOOT_STATUS_ERROR,
48         } type;
49         char    *message;
50         char    *detail;
51         int     progress;
52 };
53
54 #endif /* _TYPES_H */