]> git.ozlabs.org Git - petitboot/blobdiff - lib/types/types.h
discover: register network devices with the device handler
[petitboot] / lib / types / types.h
index 90b23c37a77446d0cda4b531869c6dee31eed343..bb4b23ca5f601d61e083041580de45a53880eb63 100644 (file)
@@ -1,10 +1,19 @@
 #ifndef _TYPES_H
 #define _TYPES_H
 
+#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;
@@ -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;
 };