config: Split interface configuration from network configuration
[petitboot] / lib / pb-config / pb-config.h
index c377087414dbc30c788a6d4ac88fc475e7ba8961..748b409ada3c04a5ff85602c55b33fc53291685a 100644 (file)
@@ -6,7 +6,7 @@
 
 #define HWADDR_SIZE    6
 
-struct network_config {
+struct interface_config {
        uint8_t hwaddr[HWADDR_SIZE];
        bool    ignore;
        enum {
@@ -24,10 +24,14 @@ struct network_config {
        };
 };
 
+struct network_config {
+       struct interface_config **interfaces;
+       int                     n_interfaces;
+};
+
 struct config {
        bool                    autoboot_enabled;
-       struct network_config   **network_configs;
-       int                     n_network_configs;
+       struct network_config   network;
 };