From 44ded3abc28620279633f51a05f2416e5aa3e8e2 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Wed, 11 Sep 2013 18:48:20 +0200 Subject: sd-login: add a public accessor for the VT number The VT number was already part of the DBus API, but was not exposed in the C API. --- man/sd_session_is_active.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'man/sd_session_is_active.xml') diff --git a/man/sd_session_is_active.xml b/man/sd_session_is_active.xml index e89117d99..9362fbcc5 100644 --- a/man/sd_session_is_active.xml +++ b/man/sd_session_is_active.xml @@ -52,6 +52,7 @@ sd_session_get_class sd_session_get_display sd_session_get_tty + sd_session_get_vt Determine state of a specific session @@ -111,6 +112,12 @@ const char* session char** tty + + + int sd_session_get_vt + const char* session + unsigned* vt + @@ -202,6 +209,12 @@ free3 call after use. + sd_session_get_vt() + may be used to determine the VT number of the + session identified by the specified session + identifier. This function will return an error if + the seat does not support VTs. + If the session parameter of any of these functions is passed as NULL the operation is executed -- cgit v1.2.3