1 #ifndef CONFIGURATION_H
2 #define CONFIGURATION_H
7 #include <types/types.h>
11 struct interface_config {
12 uint8_t hwaddr[HWADDR_SIZE];
28 struct network_config {
29 struct interface_config **interfaces;
31 const char **dns_servers;
35 struct boot_priority {
36 enum device_type type;
40 bool autoboot_enabled;
41 int autoboot_timeout_sec;
42 struct network_config network;
43 struct boot_priority *boot_priorities;
44 int n_boot_priorities;
48 int config_init(void *ctx);
49 const struct config *config_get(void);
50 void config_set_autoboot(bool autoboot_enabled);
51 int config_fini(void);
53 #endif /* CONFIGURATION_H */