From: Scott James Remnant Date: Thu, 18 Mar 2010 20:32:59 +0000 (+0000) Subject: [terminal] export functions to enable/disable VT watching X-Git-Tag: 0.8.0~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6b8a6538f031c7ecc429bb24c2029a274050099;p=thirdparty%2Fplymouth.git [terminal] export functions to enable/disable VT watching 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. --- diff --git a/src/libply-splash-core/ply-terminal.c b/src/libply-splash-core/ply-terminal.c index babeffc0..5267814c 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 8ac47c6c..5e4f1fca 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);