]> git.ozlabs.org Git - petitboot/blobdiff - lib/types/types.h
types: Add is_default to struct boot_option
[petitboot] / lib / types / types.h
index fb53826902d7507e1f82d874c2fbc947167664d8..5be2cb697597a3c12c177aea26644b67bc9e3dec 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _TYPES_H
 #define _TYPES_H
 
+#include <stdbool.h>
 #include <list/list.h>
 
 struct device {
@@ -24,6 +25,7 @@ struct boot_option {
        char            *boot_image_file;
        char            *initrd_file;
        char            *boot_args;
+       bool            is_default;
 
        struct list_item        list;
 
@@ -37,4 +39,14 @@ struct boot_command {
        char *boot_args;
 };
 
+struct boot_status {
+       enum {
+               BOOT_STATUS_INFO,
+               BOOT_STATUS_ERROR,
+       } type;
+       char    *message;
+       char    *detail;
+       int     progress;
+};
+
 #endif /* _TYPES_H */