]> git.ozlabs.org Git - petitboot/blobdiff - lib/types/types.h
discover/pxe: Implement default options
[petitboot] / lib / types / types.h
index 5be2cb697597a3c12c177aea26644b67bc9e3dec..bb4b23ca5f601d61e083041580de45a53880eb63 100644 (file)
@@ -4,8 +4,16 @@
 #include <stdbool.h>
 #include <list/list.h>
 
+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;
@@ -24,6 +32,7 @@ struct boot_option {
        char            *icon_file;
        char            *boot_image_file;
        char            *initrd_file;
+       char            *dtb_file;
        char            *boot_args;
        bool            is_default;
 
@@ -36,6 +45,7 @@ struct boot_command {
        char *option_id;
        char *boot_image_file;
        char *initrd_file;
+       char *dtb_file;
        char *boot_args;
 };