X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Ftypes%2Ftypes.h;h=bb4b23ca5f601d61e083041580de45a53880eb63;hp=90b23c37a77446d0cda4b531869c6dee31eed343;hb=b324b03e2b603dafddfaac607e5f98d9cd9c0f04;hpb=ab4ca06537f10b768b2e81a178273e9509de0b07 diff --git a/lib/types/types.h b/lib/types/types.h index 90b23c3..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,6 +45,7 @@ struct boot_command { char *option_id; char *boot_image_file; char *initrd_file; + char *dtb_file; char *boot_args; };