]> git.ozlabs.org Git - petitboot/blobdiff - lib/types/types.h
types: Add device_type to struct device
[petitboot] / lib / types / types.h
index 9fed7aaaba65d3a5948d248c6482299197cde3e9..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;