chiark / gitweb /
logs-show: export logic to add matches for units
[elogind.git] / man / sd_login_monitor_new.xml
index 4642e99f7405209b00a75ad05445d3d01a071f77..2c4d05dcb944bf3617dd145def2fa71b9ad1d038 100644 (file)
@@ -21,7 +21,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
 
-<refentry id="sd_login_monitor_new">
+<refentry id="sd_login_monitor_new" conditional='HAVE_PAM'>
 
         <refentryinfo>
                 <title>sd_login_monitor_new</title>
@@ -47,6 +47,7 @@
                 <refname>sd_login_monitor_unref</refname>
                 <refname>sd_login_monitor_flush</refname>
                 <refname>sd_login_monitor_get_fd</refname>
+                <refname>sd_login_monitor</refname>
                 <refpurpose>Monitor login sessions, seats and users</refpurpose>
         </refnamediv>
 
                 <title>Description</title>
 
                 <para><function>sd_login_monitor_new()</function> may
-                be used to monitor login session, users and seats. Via
+                be used to monitor login sessions, users and seats. Via
                 a monitor object a file descriptor can be integrated
                 into an application defined event loop which is woken
                 up each time a user logs in, logs out or a seat is
                 added or removed, or a session, user, or seat changes
                 state otherwise. The first parameter takes a string
-                which can be either <literal>seat</literal> (to get
+                which can be <literal>seat</literal> (to get
                 only notifications about seats being added, removed or
                 changed), <literal>session</literal> (to get only
                 notifications about sessions being created or removed
                 or changed) or <literal>uid</literal> (to get only
                 notifications when a user changes state in respect to
                 logins). If notifications shall be generated in all
-                these conditions, NULL may be passed. Note that in
+                these conditions, NULL may be passed. Note that in the
                 future additional categories may be defined. The
                 second parameter returns a monitor object and needs to
                 be freed with the
 
                 <para>
                         <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
-                        <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
+                        <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
                         <citerefentry><refentrytitle>sd_get_seats</refentrytitle><manvolnum>3</manvolnum></citerefentry>
                 </para>
         </refsect1>