summaryrefslogtreecommitdiffstats
path: root/src/splash-plugins
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-05-19 23:45:50 -0400
committerRay Strode <rstrode@redhat.com>2008-05-19 23:45:50 -0400
commitb8781ead8406cf21603b0b2b4760f90e436f9c24 (patch)
treecc341b4ad6a2cdb0b0876a81124b8ab4584b19a3 /src/splash-plugins
parent2103fb014f00c03ac52efce2d7b29fb8fff23ca9 (diff)
downloadplymouth-b8781ead8406cf21603b0b2b4760f90e436f9c24.tar.gz
plymouth-b8781ead8406cf21603b0b2b4760f90e436f9c24.tar.xz
plymouth-b8781ead8406cf21603b0b2b4760f90e436f9c24.zip
Add hook to ply-terminal-session to notify on boot output.
Drop set_output_buffer api and propagate boot output to splash plugins
Diffstat (limited to 'src/splash-plugins')
-rw-r--r--src/splash-plugins/details/details.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/splash-plugins/details/details.c b/src/splash-plugins/details/details.c
index c5142a2..6eca872 100644
--- a/src/splash-plugins/details/details.c
+++ b/src/splash-plugins/details/details.c
@@ -106,6 +106,15 @@ update_status (ply_boot_splash_plugin_t *plugin,
ply_trace ("status update");
}
+void
+on_boot_output (ply_boot_splash_plugin_t *plugin,
+ const char *output,
+ size_t size)
+{
+ if (size > 0)
+ write (STDOUT_FILENO, output, size);
+}
+
static void
detach_from_event_loop (ply_boot_splash_plugin_t *plugin)
{
@@ -185,6 +194,7 @@ ply_boot_splash_plugin_get_interface (void)
.destroy_plugin = destroy_plugin,
.show_splash_screen = show_splash_screen,
.update_status = update_status,
+ .on_boot_output = on_boot_output,
.hide_splash_screen = hide_splash_screen,
.attach_to_event_loop = attach_to_event_loop,
.ask_for_password = ask_for_password,