boot-splash: Add "hide message" splash plugin call

No splashes use this yet.
This commit is contained in:
Charlie Brej 2010-09-07 21:45:57 +01:00
parent df5d6ded7e
commit eed3b65b4c
3 changed files with 15 additions and 1 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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,