]> git.ozlabs.org Git - petitboot/blobdiff - lib/types/types.h
lib/fold: Add text fold utility
[petitboot] / lib / types / types.h
index 3a76cdaa751b6e0230e761c97df46942542efc0a..129319309cc0882ee36f3c7775fe56e780e1afd1 100644 (file)
@@ -9,6 +9,7 @@ enum device_type {
        DEVICE_TYPE_NETWORK,
        DEVICE_TYPE_DISK,
        DEVICE_TYPE_OPTICAL,
+       DEVICE_TYPE_ANY,
        DEVICE_TYPE_UNKNOWN,
 };
 
@@ -109,6 +110,11 @@ struct network_config {
 };
 
 struct boot_priority {
+       /* Boot options with higher priority values will take precedence over
+        * lower values. Negative priorities signify "don't boot this by
+        * default".
+        */
+       int                     priority;
        enum device_type        type;
 };