-#include "storage.h"
-
-static struct config *config;
-static struct config_storage *storage;
-
-
-static void config_set_defaults(struct config *config)
-{
- config->autoboot_enabled = true;
- config->autoboot_timeout_sec = 10;
- config->network.interfaces = NULL;
- config->network.n_interfaces = 0;
- config->network.dns_servers = NULL;
- config->network.n_dns_servers = 0;
-
- config->n_boot_priorities = 2;
- config->boot_priorities = talloc_array(config, struct boot_priority,
- config->n_boot_priorities);
- config->boot_priorities[0].type = DEVICE_TYPE_NETWORK;
- config->boot_priorities[1].type = DEVICE_TYPE_DISK;
-
-}
-
-static void dump_config(struct config *config)
+static struct interface_config *config_copy_interface(struct config *ctx,
+ struct interface_config *src)