pb_log(" %10s: %d\n", device_type_name(prio->type),
prio->priority);
}
+
+ pb_log(" language: %s\n", config->lang ?: "");
}
void config_set_defaults(struct config *config)
config->network.dns_servers = NULL;
config->network.n_dns_servers = 0;
config->boot_device = NULL;
+ config->lang = NULL;
config->n_boot_priorities = 2;
config->boot_priorities = talloc_array(config, struct boot_priority,
else
dest->boot_device = NULL;
+ if (src->lang && strlen(src->lang))
+ dest->lang = talloc_strdup(dest, src->lang);
+ else
+ dest->lang = NULL;
+
return dest;
}
len += 4 + optional_strlen(config->boot_device);
+ len += 4 + optional_strlen(config->lang);
+
return len;
}
pos += pb_protocol_serialise_string(pos, config->boot_device);
+ pos += pb_protocol_serialise_string(pos, config->lang);
+
assert(pos <= buf + buf_len);
(void)buf_len;
config->boot_device = str;
+ if (read_string(config, &pos, &len, &str))
+ goto out;
+
+ config->lang = str;
+
rc = 0;
out:
struct boot_priority *boot_priorities;
unsigned int n_boot_priorities;
char *boot_device;
+ char *lang;
};
#endif /* _TYPES_H */