From 20747498c68575646fae88f4dd270fab219a25a6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 21 Jun 2012 16:52:54 +0200 Subject: login: wrap CanTTY and CanGraphical seat attributes in libsystemd-login --- man/sd_seat_get_active.xml | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'man/sd_seat_get_active.xml') diff --git a/man/sd_seat_get_active.xml b/man/sd_seat_get_active.xml index 997c388901..82a1ea0481 100644 --- a/man/sd_seat_get_active.xml +++ b/man/sd_seat_get_active.xml @@ -72,6 +72,16 @@ int sd_seat_can_multi_session const char* seat + + + int sd_seat_can_tty + const char* seat + + + + int sd_seat_can_graphical + const char* seat + @@ -111,6 +121,15 @@ sessions in parallel (whith only one being active at a time). + sd_seat_can_tty() may be + used to determine whether a specific seat provides TTY + functionality, i.e. is useful as a text console. + + sd_seat_can_graphical() may + be used to determine whether a specific seat provides + graphics functionality, i.e. is useful as a graphics + display. + If the seat parameter of any of these functions is passed as NULL the operation is executed for the seat of the session of the calling @@ -126,8 +145,10 @@ sd_seat_get_sessions() returns the number of entries in the session identifier array. If the test succeeds - sd_seat_can_multi_session returns - a positive integer, if it fails 0. On failure, these + sd_seat_can_multi_session, + sd_seat_can_tty and + sd_seat_can_graphical return a + positive integer, if it fails 0. On failure, these calls return a negative errno-style error code. @@ -135,8 +156,10 @@ Notes The sd_seat_get_active(), - sd_seat_get_sessions(), and - sd_seat_can_multi_session() interfaces + sd_seat_get_sessions(), + sd_seat_can_multi_session(), + sd_seat_can_tty() and + sd_seat_can_grapical() interfaces are available as shared library, which can be compiled and linked to with the libsystemd-login -- cgit v1.2.3-54-g00ecf