X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=lib%2Ftypes%2Ftypes.h;h=bb4b23ca5f601d61e083041580de45a53880eb63;hb=1a9af828d9ad0da0efa7af286db78c8904344e6b;hp=fb53826902d7507e1f82d874c2fbc947167664d8;hpb=bd06734362bb727b09b943688d9b69aa0a84590d;p=petitboot diff --git a/lib/types/types.h b/lib/types/types.h index fb53826..bb4b23c 100644 --- a/lib/types/types.h +++ b/lib/types/types.h @@ -1,10 +1,19 @@ #ifndef _TYPES_H #define _TYPES_H +#include #include +enum device_type { + DEVICE_TYPE_NETWORK, + DEVICE_TYPE_DISK, + DEVICE_TYPE_OPTICAL, + DEVICE_TYPE_UNKNOWN, +}; + struct device { char *id; + enum device_type type; char *name; char *description; char *icon_file; @@ -23,7 +32,9 @@ struct boot_option { char *icon_file; char *boot_image_file; char *initrd_file; + char *dtb_file; char *boot_args; + bool is_default; struct list_item list; @@ -34,7 +45,18 @@ struct boot_command { char *option_id; char *boot_image_file; char *initrd_file; + char *dtb_file; char *boot_args; }; +struct boot_status { + enum { + BOOT_STATUS_INFO, + BOOT_STATUS_ERROR, + } type; + char *message; + char *detail; + int progress; +}; + #endif /* _TYPES_H */