X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=725e491d1f6f9c87d11f1918826b049e0ba76885;hb=059262751021d17ffa6d7f474cf25df0f297d23e;hp=cfd0c7bf8b5effede8b706493301c44d7ffc5503;hpb=b8e53cb4b96eb17dc7fa0ffc505dfebae37e6cbf;p=petitboot diff --git a/discover/device-handler.c b/discover/device-handler.c index cfd0c7b..725e491 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -1,4 +1,3 @@ - #include #include #include @@ -368,7 +367,7 @@ static int default_option_priority(struct discover_boot_option *opt) { const struct config *config; struct boot_priority *prio; - int i; + unsigned int i; config = config_get(); @@ -717,6 +716,13 @@ void device_handler_cancel_default(struct device_handler *handler) discover_server_notify_boot_status(handler->server, &status); } +void device_handler_update_config(struct device_handler *handler, + struct config *config) +{ + config_set(config); + discover_server_notify_config(handler->server, config); +} + #ifndef PETITBOOT_TEST static bool check_existing_mount(struct discover_device *dev) {