sd_seat_get_active.xml | sd_seat_get_active.xml | |||
---|---|---|---|---|
skipping to change at line 102 | skipping to change at line 102 | |||
<para><function>sd_seat_get_active()</function> may be | <para><function>sd_seat_get_active()</function> may be | |||
used to determine which session is currently active on | used to determine which session is currently active on | |||
a seat, if there is any. Returns the session | a seat, if there is any. Returns the session | |||
identifier and the user identifier of the Unix user | identifier and the user identifier of the Unix user | |||
the session is belonging to. Either the session or the | the session is belonging to. Either the session or the | |||
user identifier parameter can be passed | user identifier parameter can be passed | |||
<constant>NULL</constant>, in case only one of the | <constant>NULL</constant>, in case only one of the | |||
parameters shall be queried. The returned string needs | parameters shall be queried. The returned string needs | |||
to be freed with the libc | to be freed with the libc | |||
<citerefentry><refentrytitle>free</refentrytitle><manvolnum >3</manvolnum></citerefentry> | <citerefentry project='man-pages'><refentrytitle>free</refe ntrytitle><manvolnum>3</manvolnum></citerefentry> | |||
call after use.</para> | call after use.</para> | |||
<para><function>sd_seat_get_sessions()</function> may | <para><function>sd_seat_get_sessions()</function> may | |||
be used to determine all sessions on the specified | be used to determine all sessions on the specified | |||
seat. Returns two arrays, one (<constant>NULL</constant> te rminated) with | seat. Returns two arrays, one (<constant>NULL</constant> te rminated) with | |||
the session identifiers of the sessions and one with | the session identifiers of the sessions and one with | |||
the user identifiers of the Unix users the sessions | the user identifiers of the Unix users the sessions | |||
belong to. An additional parameter may be used to | belong to. An additional parameter may be used to | |||
return the number of entries in the latter array. The | return the number of entries in the latter array. The | |||
two arrays and the latter parameter may be passed as | two arrays and the latter parameter may be passed as | |||
<constant>NULL</constant> in case these values need not to be | <constant>NULL</constant> in case these values need not to be | |||
determined. The arrays and the strings referenced by | determined. The arrays and the strings referenced by | |||
them need to be freed with the libc | them need to be freed with the libc | |||
<citerefentry><refentrytitle>free</refentrytitle><manvolnum >3</manvolnum></citerefentry> | <citerefentry project='man-pages'><refentrytitle>free</refe ntrytitle><manvolnum>3</manvolnum></citerefentry> | |||
call after use. Note that instead of an empty array | call after use. Note that instead of an empty array | |||
<constant>NULL</constant> may be returned and should be con sidered | <constant>NULL</constant> may be returned and should be con sidered | |||
equivalent to an empty array.</para> | equivalent to an empty array.</para> | |||
<para><function>sd_seat_can_multi_session()</function> | <para><function>sd_seat_can_multi_session()</function> | |||
may be used to determine whether a specific seat is | may be used to determine whether a specific seat is | |||
capable of multi-session, i.e. allows multiple login | capable of multi-session, i.e. allows multiple login | |||
sessions in parallel (with only one being active at a | sessions in parallel (with only one being active at a | |||
time).</para> | time).</para> | |||
skipping to change at line 169 | skipping to change at line 169 | |||
<refsect1> | <refsect1> | |||
<title>Notes</title> | <title>Notes</title> | |||
<para>The <function>sd_seat_get_active()</function>, | <para>The <function>sd_seat_get_active()</function>, | |||
<function>sd_seat_get_sessions()</function>, | <function>sd_seat_get_sessions()</function>, | |||
<function>sd_seat_can_multi_session()</function>, | <function>sd_seat_can_multi_session()</function>, | |||
<function>sd_seat_can_tty()</function> and | <function>sd_seat_can_tty()</function> and | |||
<function>sd_seat_can_grapical()</function> interfaces | <function>sd_seat_can_grapical()</function> interfaces | |||
are available as a shared library, which can be compiled | are available as a shared library, which can be compiled | |||
and linked to with the | and linked to with the | |||
<constant>libsystemd</constant> <citerefentry><refentrytitl e>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry> | <constant>libsystemd</constant> <citerefentry project='die- net'><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></cit erefentry> | |||
file.</para> | file.</para> | |||
</refsect1> | </refsect1> | |||
<refsect1> | <refsect1> | |||
<title>See Also</title> | <title>See Also</title> | |||
<para> | <para> | |||
<citerefentry><refentrytitle>systemd</refentrytitle ><manvolnum>1</manvolnum></citerefentry>, | <citerefentry><refentrytitle>systemd</refentrytitle ><manvolnum>1</manvolnum></citerefentry>, | |||
<citerefentry><refentrytitle>sd-login</refentrytitl e><manvolnum>3</manvolnum></citerefentry>, | <citerefentry><refentrytitle>sd-login</refentrytitl e><manvolnum>3</manvolnum></citerefentry>, | |||
<citerefentry><refentrytitle>sd_session_get_seat</r efentrytitle><manvolnum>3</manvolnum></citerefentry> | <citerefentry><refentrytitle>sd_session_get_seat</r efentrytitle><manvolnum>3</manvolnum></citerefentry> | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |