diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-06-21 16:52:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-06-21 16:52:54 +0200 |
commit | 20747498c68575646fae88f4dd270fab219a25a6 (patch) | |
tree | 5c229f9401637bd431c105849a3df5a34a5c9e5d /man/sd_seat_get_active.xml | |
parent | 7ea9cb91207f49965bc23bfdac9d5475940bea51 (diff) |
login: wrap CanTTY and CanGraphical seat attributes in libsystemd-login
Diffstat (limited to 'man/sd_seat_get_active.xml')
-rw-r--r-- | man/sd_seat_get_active.xml | 31 |
1 files changed, 27 insertions, 4 deletions
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 @@ <funcdef>int <function>sd_seat_can_multi_session</function></funcdef> <paramdef>const char* <parameter>seat</parameter></paramdef> </funcprototype> + + <funcprototype> + <funcdef>int <function>sd_seat_can_tty</function></funcdef> + <paramdef>const char* <parameter>seat</parameter></paramdef> + </funcprototype> + + <funcprototype> + <funcdef>int <function>sd_seat_can_graphical</function></funcdef> + <paramdef>const char* <parameter>seat</parameter></paramdef> + </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -111,6 +121,15 @@ sessions in parallel (whith only one being active at a time).</para> + <para><function>sd_seat_can_tty()</function> may be + used to determine whether a specific seat provides TTY + functionality, i.e. is useful as a text console.</para> + + <para><function>sd_seat_can_graphical()</function> may + be used to determine whether a specific seat provides + graphics functionality, i.e. is useful as a graphics + display.</para> + <para>If the <literal>seat</literal> 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 @@ <function>sd_seat_get_sessions()</function> returns the number of entries in the session identifier array. If the test succeeds - <function>sd_seat_can_multi_session</function> returns - a positive integer, if it fails 0. On failure, these + <function>sd_seat_can_multi_session</function>, + <function>sd_seat_can_tty</function> and + <function>sd_seat_can_graphical</function> return a + positive integer, if it fails 0. On failure, these calls return a negative errno-style error code.</para> </refsect1> @@ -135,8 +156,10 @@ <title>Notes</title> <para>The <function>sd_seat_get_active()</function>, - <function>sd_seat_get_sessions()</function>, and - <function>sd_seat_can_multi_session()</function> interfaces + <function>sd_seat_get_sessions()</function>, + <function>sd_seat_can_multi_session()</function>, + <function>sd_seat_can_tty()</function> and + <function>sd_seat_can_grapical()</function> interfaces are available as shared library, which can be compiled and linked to with the <literal>libsystemd-login</literal> |