X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Fpb-config%2Fpb-config.h;h=523cada5cab3f745c792ff2d748610ee14f6832e;hp=c377087414dbc30c788a6d4ac88fc475e7ba8961;hb=c12cebabba5c4647f558ef40f8cbc8c6a204593e;hpb=37d865eb008f746a0b013557312c6b44c7236eb7 diff --git a/lib/pb-config/pb-config.h b/lib/pb-config/pb-config.h index c377087..523cada 100644 --- a/lib/pb-config/pb-config.h +++ b/lib/pb-config/pb-config.h @@ -4,9 +4,11 @@ #include #include +#include + #define HWADDR_SIZE 6 -struct network_config { +struct interface_config { uint8_t hwaddr[HWADDR_SIZE]; bool ignore; enum { @@ -19,15 +21,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 boot_priority { + enum device_type type; +}; + struct config { bool autoboot_enabled; - struct network_config **network_configs; - int n_network_configs; + int autoboot_timeout_sec; + struct network_config network; + struct boot_priority *boot_priorities; + int n_boot_priorities; };