diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-04-17 13:57:40 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-04-17 16:15:30 +0200 |
commit | 8f8cc84ba4612e74cd1e26898c6816e6e60fc4e9 (patch) | |
tree | 6b6de54cbdc1a853a6ddb0ce7c4d2492945973c7 /man/sd_seat_get_active.xml | |
parent | a8cff0034c8271e0042ce6116fd45b5405ae4de3 (diff) | |
download | systemd-8f8cc84ba4612e74cd1e26898c6816e6e60fc4e9.tar.gz |
sd-login: get rid of seat_can_multi_session()
Follow-up for fa2cf64a917d31605d40d34e98ce9e2e066064fa.
Backwards-compat is retained. A short note is added in docs, in case
people see sd_seat_can_multi_session() mentioned somewhere and wonder what
happened to it.
Also see https://github.com/systemd/systemd/pull/15337#issuecomment-610369404.
Diffstat (limited to 'man/sd_seat_get_active.xml')
-rw-r--r-- | man/sd_seat_get_active.xml | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/man/sd_seat_get_active.xml b/man/sd_seat_get_active.xml index 2dba6803f1..cf70b35785 100644 --- a/man/sd_seat_get_active.xml +++ b/man/sd_seat_get_active.xml @@ -19,7 +19,6 @@ <refnamediv> <refname>sd_seat_get_active</refname> <refname>sd_seat_get_sessions</refname> - <refname>sd_seat_can_multi_session</refname> <refname>sd_seat_can_tty</refname> <refname>sd_seat_can_graphical</refname> <refpurpose>Determine state of a specific seat</refpurpose> @@ -45,11 +44,6 @@ </funcprototype> <funcprototype> - <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> @@ -90,11 +84,6 @@ <constant>NULL</constant> may be returned and should be considered equivalent to an empty array.</para> - <para><function>sd_seat_can_multi_session()</function> may be used - to determine whether a specific seat is capable of multi-session, - i.e. allows multiple login sessions in parallel (with 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> @@ -114,7 +103,7 @@ <para> On success, <function>sd_seat_get_active()</function> returns 0 or a positive integer. On success, <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>, + array. If the test succeeds, <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> @@ -158,6 +147,14 @@ <xi:include href="libsystemd-pkgconfig.xml" /> <refsect1> + <title>History</title> + + <para>In the past, <function>sd_seat_can_multi_session()</function> was used to check whether the seat + supports multiple sessions. All seats support that now, so that function has been deprecated and always + returns true.</para> + </refsect1> + + <refsect1> <title>See Also</title> <para> |