mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 08:58:05 +02:00
[script] Preset plymouth callback functions to script NULL objects
They were set to the real NULL which most script-object functions cannot deal with.
This commit is contained in:
parent
bc214f2b2b
commit
9879f3312f
1 changed files with 8 additions and 8 deletions
|
|
@ -60,14 +60,14 @@ script_lib_plymouth_data_t *script_lib_plymouth_setup (script_state_t *state)
|
|||
{
|
||||
script_lib_plymouth_data_t *data = malloc (sizeof (script_lib_plymouth_data_t));
|
||||
|
||||
data->script_refresh_func = NULL;
|
||||
data->script_boot_progress_func = NULL;
|
||||
data->script_root_mounted_func = NULL;
|
||||
data->script_keyboard_input_func = NULL;
|
||||
data->script_update_status_func = NULL;
|
||||
data->script_display_normal_func = NULL;
|
||||
data->script_display_password_func = NULL;
|
||||
data->script_display_question_func = NULL;
|
||||
data->script_refresh_func = script_obj_new_null ();
|
||||
data->script_boot_progress_func = script_obj_new_null ();
|
||||
data->script_root_mounted_func = script_obj_new_null ();
|
||||
data->script_keyboard_input_func = script_obj_new_null ();
|
||||
data->script_update_status_func = script_obj_new_null ();
|
||||
data->script_display_normal_func = script_obj_new_null ();
|
||||
data->script_display_password_func = script_obj_new_null ();
|
||||
data->script_display_question_func = script_obj_new_null ();
|
||||
|
||||
script_add_native_function (state->global,
|
||||
"PlymouthSetRefreshFunction",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue