From: J-P Nurmi Date: Mon, 9 Mar 2020 14:36:42 +0000 (+0100) Subject: Fix SetSystemUpdateFunction X-Git-Tag: 0.9.5~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04388af28556bad23eade0de71206b37638a4839;p=thirdparty%2Fplymouth.git Fix SetSystemUpdateFunction script_lib_plymouth_on_system_update() was never called, because the plugin interface mapping was missing. Fixes: #79 Signed-off-by: J-P Nurmi --- diff --git a/src/plugins/splash/script/plugin.c b/src/plugins/splash/script/plugin.c index 64847661..8be19f1e 100644 --- a/src/plugins/splash/script/plugin.c +++ b/src/plugins/splash/script/plugin.c @@ -425,6 +425,15 @@ show_splash_screen (ply_boot_splash_plugin_t *plugin, return start_animation (plugin); } +static void +system_update (ply_boot_splash_plugin_t *plugin, + int progress) +{ + script_lib_plymouth_on_system_update( plugin->script_state, + plugin->script_plymouth_lib, + progress); +} + static void update_status (ply_boot_splash_plugin_t *plugin, const char *status) @@ -534,6 +543,7 @@ ply_boot_splash_plugin_get_interface (void) .add_pixel_display = add_pixel_display, .remove_pixel_display = remove_pixel_display, .show_splash_screen = show_splash_screen, + .system_update = system_update, .update_status = update_status, .on_boot_progress = on_boot_progress, .hide_splash_screen = hide_splash_screen,