chiark / gitweb /
sd-login: add a public accessor for the VT number
[elogind.git] / man / sd_journal_get_catalog.xml
index fa9bbc9b2d7e2015317636fa65f204b0af14b1c7..53ca3083b131c7e2deb5fc5735b2ebdf361f7e17 100644 (file)
                         <funcprototype>
                                 <funcdef>int <function>sd_journal_get_catalog</function></funcdef>
                                 <paramdef>sd_journal* <parameter>j</parameter></paramdef>
-                                <paramdef>const char** <parameter>ret</parameter></paramdef>
+                                <paramdef>char** <parameter>ret</parameter></paramdef>
                         </funcprototype>
 
                         <funcprototype>
                                 <funcdef>int <function>sd_journal_get_catalog_for_message_id</function></funcdef>
                                 <paramdef>sd_id128_t <parameter>id</parameter></paramdef>
-                                <paramdef>const char** <parameter>ret</parameter></paramdef>
+                                <paramdef>char** <parameter>ret</parameter></paramdef>
                         </funcprototype>
 
 
@@ -89,7 +89,7 @@
                 <function>sd_journal_get_catalog()</function> but the
                 entry is looked up by the specified message ID (no
                 open journal context is necessary for this), and no
-                field substitution is done.</para>
+                field substitution is performed.</para>
 
                 <para>For more information about the journal message
                 catalog please refer to the <ulink
                 <para><function>sd_journal_get_catalog()</function>
                 and
                 <function>sd_journal_get_catalog_for_message_id()</function>
-                returns 0 on success or a negative errno-style error
+                return 0 on success or a negative errno-style error
                 code. If no matching message catalog entry is found
                 -ENOENT is returned.</para>
+
+                <para>On successful return, <parameter>ret</parameter>
+                points to a new string, which must be freed with
+                <citerefentry><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
+                </para>
         </refsect1>
 
         <refsect1>
                 <function>sd_journal_get_catalog_for_message_id()</function>
                 interfaces are available as shared library, which can
                 be compiled and linked to with the
-                <literal>libsystemd-journal</literal>
-                <citerefentry><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+                <constant>libsystemd-journal</constant> <citerefentry><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>
                 file.</para>
         </refsect1>
 
                         <citerefentry><refentrytitle>sd_journal_open</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
                         <citerefentry><refentrytitle>sd_journal_next</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
                         <citerefentry><refentrytitle>sd_journal_get_data</refentrytitle><manvolnum>3</manvolnum></citerefentry>
+                        <citerefentry><refentrytitle>malloc</refentrytitle><manvolnum>3</manvolnum></citerefentry>
                 </para>
         </refsect1>