]> git.ozlabs.org Git - petitboot/blobdiff - lib/types/types.h
lib/log: Always flush after writing logs
[petitboot] / lib / types / types.h
index 9fed7aaaba65d3a5948d248c6482299197cde3e9..9bb800ca4d125daa5d57169c8256e3d898eb05ea 100644 (file)
@@ -2,10 +2,19 @@
 #define _TYPES_H
 
 #include <stdbool.h>
+#include <stdint.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;
@@ -51,4 +60,18 @@ struct boot_status {
        int     progress;
 };
 
+struct interface_info {
+       unsigned int    hwaddr_size;
+       uint8_t         *hwaddr;
+       char            *name;
+};
+
+struct system_info {
+       char                    *type;
+       char                    *identifier;
+       struct interface_info   **interfaces;
+       unsigned int            n_interfaces;
+};
+
+
 #endif /* _TYPES_H */