[PATCH 08/20] [terminal] export functions to enable/disable VT watching
Scott James Remnant
scott at ubuntu.com
Thu Mar 18 13:32:59 PDT 2010
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 | 4 ++--
src/libply-splash-core/ply-terminal.h | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/libply-splash-core/ply-terminal.c b/src/libply-splash-core/ply-terminal.c
index 4b4b287..0f70bf7 100644
--- a/src/libply-splash-core/ply-terminal.c
+++ b/src/libply-splash-core/ply-terminal.c
@@ -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 };
diff --git a/src/libply-splash-core/ply-terminal.h b/src/libply-splash-core/ply-terminal.h
index 8ac47c6..5e4f1fc 100644
--- a/src/libply-splash-core/ply-terminal.h
+++ b/src/libply-splash-core/ply-terminal.h
@@ -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);
--
1.7.0
More information about the plymouth
mailing list