]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - man/sd_event_source_set_destroy_callback.xml
man: add more details for IMPORT, PROGRAM and RUN keys
[thirdparty/systemd.git] / man / sd_event_source_set_destroy_callback.xml
index f3ebf0cc3a44d5541200d760be96c266b131f02d..3df926b8634f02728fa71ed3078e850fa177c8fb 100644 (file)
@@ -21,7 +21,7 @@
     <refname>sd_event_source_get_destroy_callback</refname>
     <refname>sd_event_destroy_t</refname>
 
-    <refpurpose>Define the callback function for resource cleanup.</refpurpose>
+    <refpurpose>Define the callback function for resource cleanup</refpurpose>
   </refnamediv>
 
   <refsynopsisdiv>
   <refsect1>
     <title>Return Value</title>
 
-    <para>On success, <function>sd_event_source_set_destroy_callback()</function> returns 0 or a positive integer. On
-    failure, it returns a negative errno-style error code.</para>
+    <para>On success, <function>sd_event_source_set_destroy_callback()</function> returns 0 or a positive
+    integer. On failure, it returns a negative errno-style error code.</para>
 
-    <para><function>sd_event_source_get_destroy_callback()</function> returns positive if the destroy callback function
-    is set, 0 if not. On failure, returns a negative errno-style error code.</para>
-  </refsect1>
+    <para><function>sd_event_source_get_destroy_callback()</function> returns positive if the destroy
+    callback function is set, 0 if not. On failure, returns a negative errno-style error code.</para>
 
-  <refsect1>
-    <title>Errors</title>
+    <refsect2>
+      <title>Errors</title>
 
-    <para>Returned errors may indicate the following problems:</para>
+      <para>Returned errors may indicate the following problems:</para>
 
-    <variablelist>
-      <varlistentry>
-        <term><constant>-EINVAL</constant></term>
+      <variablelist>
+        <varlistentry>
+          <term><constant>-EINVAL</constant></term>
 
-        <listitem><para>The <parameter>source</parameter> parameter is <constant>NULL</constant>.</para></listitem>
-      </varlistentry>
-    </variablelist>
+          <listitem><para>The <parameter>source</parameter> parameter is <constant>NULL</constant>.
+          </para></listitem>
+        </varlistentry>
+      </variablelist>
+    </refsect2>
   </refsect1>
 
   <xi:include href="libsystemd-pkgconfig.xml" />