]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
boot-splash: Add "hide message" splash plugin call
authorCharlie Brej <cbrej@cs.man.ac.uk>
Tue, 7 Sep 2010 20:45:57 +0000 (21:45 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Tue, 7 Sep 2010 20:45:57 +0000 (21:45 +0100)
No splashes use this yet.

src/libply-splash-core/ply-boot-splash-plugin.h
src/libply-splash-core/ply-boot-splash.c
src/libply-splash-core/ply-boot-splash.h

index d22eb4370a138216a6deac81776ba32c092eb89e..4b221b06bd77198860ae39c2c107065d007408b1 100644 (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);
index 819e0baab79fb38d32186d3bee78fb6dadef3410..173062fe1d60a312e4124bb2920dcc21dfe6bca5 100644 (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);
index 7865f002f39dbf5c6eb59479945d2d8e426108c8..1efb8b1680bfdb349e3bb7d511fa0907f6fae2de 100644 (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,