]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[terminal] export functions to enable/disable VT watching
authorScott James Remnant <scott@ubuntu.com>
Thu, 18 Mar 2010 20:32:59 +0000 (20:32 +0000)
committerRay Strode <rstrode@redhat.com>
Mon, 22 Mar 2010 03:15:07 +0000 (23:15 -0400)
In order to deactivate without pulling everything, we need to be able
to take the terminal in and out of VT_PROCESS mode directly; so change
the two functions from static to exported.

src/libply-splash-core/ply-terminal.c
src/libply-splash-core/ply-terminal.h

index babeffc0ce9cf12f565b9839a88e1a5b4e368b17..5267814ce8bbaf8b9e693dcb55b86685fcc9b978 100644 (file)
@@ -348,7 +348,7 @@ on_enter_vt (ply_terminal_t *terminal)
   do_active_vt_changed (terminal);
 }
 
-static void
+void
 ply_terminal_watch_for_vt_changes (ply_terminal_t *terminal)
 {
   assert (terminal != NULL);
@@ -384,7 +384,7 @@ ply_terminal_watch_for_vt_changes (ply_terminal_t *terminal)
   terminal->is_watching_for_vt_changes = true;
 }
 
-static void
+void
 ply_terminal_stop_watching_for_vt_changes (ply_terminal_t *terminal)
 {
   struct vt_mode mode = { 0 };
index 8ac47c6c06b3e155c5578955b5b8df71cce809b7..5e4f1fca5a7b055f67798dba6e77d7786130487b 100644 (file)
@@ -93,6 +93,9 @@ void ply_terminal_ignore_mode_changes (ply_terminal_t *terminal,
 int ply_terminal_get_vt_number (ply_terminal_t *terminal);
 bool ply_terminal_activate_vt (ply_terminal_t *terminal);
 
+void ply_terminal_watch_for_vt_changes (ply_terminal_t *terminal);
+void ply_terminal_stop_watching_for_vt_changes (ply_terminal_t *terminal);
+
 void ply_terminal_watch_for_active_vt_change (ply_terminal_t *terminal,
                                               ply_terminal_active_vt_changed_handler_t active_vt_changed_handler,
                                               void *user_data);