X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=lib%2Ftypes%2Ftypes.h;h=bb4b23ca5f601d61e083041580de45a53880eb63;hb=402884d9d5835879f3c75657a46492cc03261255;hp=1843557728814111383342402c64c98f46974514;hpb=c25601a71b0951225691aa2edc389826f7f3836c;p=petitboot diff --git a/lib/types/types.h b/lib/types/types.h index 1843557..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; @@ -16,13 +25,16 @@ struct device { }; struct boot_option { + char *device_id; char *id; char *name; char *description; char *icon_file; char *boot_image_file; char *initrd_file; + char *dtb_file; char *boot_args; + bool is_default; struct list_item list; @@ -33,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 */