]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Add notification to splash plugins when / gets mounted
authorRay Strode <rstrode@redhat.com>
Thu, 21 Aug 2008 20:04:35 +0000 (16:04 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 27 Aug 2008 14:55:37 +0000 (10:55 -0400)
We'll need it to know when we can dlopen support libraries
for rendering text.

src/libplybootsplash/ply-boot-splash-plugin.h
src/main.c
src/ply-boot-splash.c
src/ply-boot-splash.h

index 920bdccba737bf35b8beac55c88190344cb5d523..25b3fe68bbc68b4bd576bfcaced6299cbe90d959 100644 (file)
@@ -49,6 +49,7 @@ typedef struct
   void (* on_boot_output) (ply_boot_splash_plugin_t *plugin,
                            const char               *output,
                            size_t                    size);
+  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,
                                ply_window_t             *window);
index afa0f82fd1b384c4277a2c75b2f2d75b421d9891..e5bceae4d78f467f462a5ef89708f7c863a946ab 100644 (file)
@@ -158,6 +158,8 @@ on_newroot (state_t    *state,
   chdir(root_dir);
   chroot(".");
   chdir("/");
+
+  ply_boot_splash_root_mounted (state->boot_splash);
 }
 
 static void
index 69b7c3561f18da2eeb0272795ab4ebbc98819967..e5c6b5b2ce1829c6904a2b9bfc40665c38412585 100644 (file)
@@ -214,6 +214,15 @@ ply_boot_splash_update_output (ply_boot_splash_t *splash,
     splash->plugin_interface->on_boot_output (splash->plugin, output, size);
 }
 
+void
+ply_boot_splash_root_mounted (ply_boot_splash_t *splash)
+{
+  assert (splash != NULL);
+
+  if (splash->plugin_interface->on_root_mounted != NULL)
+    splash->plugin_interface->on_root_mounted (splash->plugin);
+}
+
 void
 ply_boot_splash_ask_for_password (ply_boot_splash_t *splash,
                                   const char        *prompt,
index 94c032ce628aaecba75468fdf7245514e9044a00..aeddc249320c00c4ed124a96beae65ace5f54135 100644 (file)
@@ -45,6 +45,7 @@ void ply_boot_splash_update_status (ply_boot_splash_t *splash,
 void ply_boot_splash_update_output (ply_boot_splash_t *splash,
                                     const char        *output,
                                     size_t             size);
+void ply_boot_splash_root_mounted (ply_boot_splash_t *splash);
 
 void ply_boot_splash_ask_for_password (ply_boot_splash_t *splash,
                                        const char        *prompt,