types: Add is_default to struct boot_option
[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            *boot_args;
28         bool            is_default;
29
30         struct list_item        list;
31
32         void            *ui_info;
33 };
34
35 struct boot_command {
36         char *option_id;
37         char *boot_image_file;
38         char *initrd_file;
39         char *boot_args;
40 };
41
42 struct boot_status {
43         enum {
44                 BOOT_STATUS_INFO,
45                 BOOT_STATUS_ERROR,
46         } type;
47         char    *message;
48         char    *detail;
49         int     progress;
50 };
51
52 #endif /* _TYPES_H */