chiark / gitweb /
man: document sd_journal_next()
[elogind.git] / man / sd_journal_open.xml
index eb0b8c515ec8b8aa8946f642b02590eda3428e8f..12b80551a273b8bc793b3cba4dc23874bb82c0e2 100644 (file)
@@ -89,7 +89,7 @@
                 be opened. <literal>SD_JOURNAL_RUNTIME_ONLY</literal>
                 makes sure only volatile journal files will be opened,
                 excluding those which are stored on persistant
-                storage. <literal>SD_JOURNAL_RUNTIME_ONLY</literal>
+                storage. <literal>SD_JOURNAL_SYSTEM_ONLY</literal>
                 will ensure that only journal files of system services
                 and the kernel (in opposition to user session processes) will
                 be opened.</para>
                 accessible to the calling user will be opened. If
                 journal files are not accessible to the caller this
                 will be silently ignored.</para>
+
+                <para>See
+                <citerefentry><refentrytitle>sd_journal_next</refentrytitle><manvolnum>3</manvolnum></citerefentry>
+                for an example how to iterate through the journal
+                after opening it it with
+                <function>sd_journal_open()</function>.</para>
         </refsect1>
 
         <refsect1>