X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Fpb-config%2Fpb-config.h;h=c74fa1b530188410478e3414a2c8759a813fdfda;hp=cfcf025fee046f9d8d3d142b0ee1cf5de88a91b0;hb=a60ef7083d77029e7bd6f0b948c560c239406dbf;hpb=32fe8024f5af5cd8de23c638ddad8ada67a46cd5 diff --git a/lib/pb-config/pb-config.h b/lib/pb-config/pb-config.h index cfcf025..c74fa1b 100644 --- a/lib/pb-config/pb-config.h +++ b/lib/pb-config/pb-config.h @@ -6,7 +6,7 @@ #define HWADDR_SIZE 6 -struct network_config { +struct interface_config { uint8_t hwaddr[HWADDR_SIZE]; bool ignore; enum { @@ -19,20 +19,27 @@ struct network_config { struct { char *address; char *gateway; - char *dns; } static_config; }; }; +struct network_config { + struct interface_config **interfaces; + int n_interfaces; + const char **dns_servers; + int n_dns_servers; +}; + struct config { bool autoboot_enabled; - struct network_config **network_configs; - int n_network_configs; + int autoboot_timeout_sec; + struct network_config network; }; int config_init(void *ctx); const struct config *config_get(void); +void config_set_autoboot(bool autoboot_enabled); int config_fini(void); #endif /* CONFIGURATION_H */