david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Having forced __table() to natural structure alignment, it now seems

that we *can* place arrays in tables, which means we can force the
order within a table without having to resort to explicitly numbered
sections on everything.
This commit is contained in:
Michael Brown 2007-01-10 05:08:05 +00:00
parent dad5274522
commit 77bb7b13a7
1 changed files with 43 additions and 41 deletions

View File

@ -357,45 +357,47 @@ struct config_setting_type config_setting_type_int8 __config_setting_type = {
}; };
/** Some basic setting definitions */ /** Some basic setting definitions */
struct config_setting ip_config_setting __config_setting = { struct config_setting basic_config_settings[] __config_setting = {
.name = "ip", {
.description = "IP address of this machine (e.g. 192.168.0.1)", .name = "ip",
.tag = DHCP_EB_YIADDR, .description = "IP address of this machine (e.g. 192.168.0.1)",
.type = &config_setting_type_ipv4, .tag = DHCP_EB_YIADDR,
}; .type = &config_setting_type_ipv4,
struct config_setting hostname_config_setting __config_setting = { },
.name = "hostname", {
.description = "Host name of this machine", .name = "hostname",
.tag = DHCP_HOST_NAME, .description = "Host name of this machine",
.type = &config_setting_type_string, .tag = DHCP_HOST_NAME,
}; .type = &config_setting_type_string,
struct config_setting username_config_setting __config_setting = { },
.name = "username", {
.description = "User name for authentication to servers", .name = "username",
.tag = DHCP_EB_USERNAME, .description = "User name for authentication to servers",
.type = &config_setting_type_string, .tag = DHCP_EB_USERNAME,
}; .type = &config_setting_type_string,
struct config_setting password_config_setting __config_setting = { },
.name = "password", {
.description = "Password for authentication to servers", .name = "password",
.tag = DHCP_EB_PASSWORD, .description = "Password for authentication to servers",
.type = &config_setting_type_string, .tag = DHCP_EB_PASSWORD,
}; .type = &config_setting_type_string,
struct config_setting root_path_config_setting __config_setting = { },
.name = "root-path", {
.description = "NFS/iSCSI root path", .name = "root-path",
.tag = DHCP_ROOT_PATH, .description = "NFS/iSCSI root path",
.type = &config_setting_type_string, .tag = DHCP_ROOT_PATH,
}; .type = &config_setting_type_string,
struct config_setting priority_config_setting __config_setting = { },
.name = "priority", {
.description = "Priority of these options", .name = "priority",
.tag = DHCP_EB_PRIORITY, .description = "Priority of these options",
.type = &config_setting_type_int8, .tag = DHCP_EB_PRIORITY,
}; .type = &config_setting_type_int8,
struct config_setting iscsi_initiator_setting __config_setting = { },
.name = "initiator-iqn", {
.description = "iSCSI qualified name of this machine", .name = "initiator-iqn",
.tag = DHCP_ISCSI_INITIATOR_IQN, .description = "iSCSI qualified name of this machine",
.type = &config_setting_type_string, .tag = DHCP_ISCSI_INITIATOR_IQN,
.type = &config_setting_type_string,
}
}; };