mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 20:38:11 +02:00
boot-splash: Add "hide message" splash plugin call
No splashes use this yet.
This commit is contained in:
parent
df5d6ded7e
commit
eed3b65b4c
3 changed files with 15 additions and 1 deletions
|
|
@ -76,9 +76,11 @@ typedef struct
|
|||
void (* on_root_mounted) (ply_boot_splash_plugin_t *plugin);
|
||||
void (* hide_splash_screen) (ply_boot_splash_plugin_t *plugin,
|
||||
ply_event_loop_t *loop);
|
||||
void (* display_normal) (ply_boot_splash_plugin_t *plugin);
|
||||
void (* display_message) (ply_boot_splash_plugin_t *plugin,
|
||||
const char *message);
|
||||
void (* hide_message) (ply_boot_splash_plugin_t *plugin,
|
||||
const char *message);
|
||||
void (* display_normal) (ply_boot_splash_plugin_t *plugin);
|
||||
void (* display_password) (ply_boot_splash_plugin_t *plugin,
|
||||
const char *prompt,
|
||||
int bullets);
|
||||
|
|
|
|||
|
|
@ -645,6 +645,16 @@ void ply_boot_splash_display_message (ply_boot_splash_t *splash,
|
|||
splash->plugin_interface->display_message (splash->plugin, message);
|
||||
}
|
||||
|
||||
void ply_boot_splash_hide_message (ply_boot_splash_t *splash,
|
||||
const char *message)
|
||||
{
|
||||
assert (splash != NULL);
|
||||
assert (splash->plugin_interface != NULL);
|
||||
assert (splash->plugin != NULL);
|
||||
if (splash->plugin_interface->hide_message != NULL)
|
||||
splash->plugin_interface->hide_message (splash->plugin, message);
|
||||
}
|
||||
|
||||
void ply_boot_splash_display_normal (ply_boot_splash_t *splash)
|
||||
{
|
||||
assert (splash != NULL);
|
||||
|
|
|
|||
|
|
@ -71,6 +71,8 @@ void ply_boot_splash_update_output (ply_boot_splash_t *splash,
|
|||
void ply_boot_splash_root_mounted (ply_boot_splash_t *splash);
|
||||
void ply_boot_splash_display_message (ply_boot_splash_t *splash,
|
||||
const char *message);
|
||||
void ply_boot_splash_hide_message (ply_boot_splash_t *splash,
|
||||
const char *message);
|
||||
void ply_boot_splash_hide (ply_boot_splash_t *splash);
|
||||
void ply_boot_splash_display_normal (ply_boot_splash_t *splash);
|
||||
void ply_boot_splash_display_password (ply_boot_splash_t *splash,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue