]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: include sd_bus_message_handler_t prototype in synopsys of all man pages that...
authorLennart Poettering <lennart@poettering.net>
Tue, 19 May 2020 17:05:03 +0000 (19:05 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 May 2020 13:56:09 +0000 (15:56 +0200)
The type is not trivial, and kinda important to understand things, hence
import it everywhere where appropriate.

man/sd_bus_add_match.xml
man/sd_bus_add_object.xml
man/sd_bus_call.xml
man/sd_bus_call_method.xml
man/sd_bus_get_current_handler.xml
man/sd_bus_request_name.xml
man/sd_bus_slot_get_bus.xml

index a1065443869ceee9c582b3038bdbbb6ed37fb869..071060dde6987d98e3fb459858b61065c35c12f5 100644 (file)
@@ -33,7 +33,7 @@
     <funcsynopsis>
       <funcsynopsisinfo>#include &lt;systemd/sd-bus.h&gt;</funcsynopsisinfo>
 
-      <funcprototype>
+      <funcprototype id="sd_bus_message_handler_t">
         <funcdef>typedef int (*<function>sd_bus_message_handler_t</function>)</funcdef>
         <paramdef>sd_bus_message *<parameter>m</parameter></paramdef>
         <paramdef>void *<parameter>userdata</parameter></paramdef>
index 102ee66d297aecf6cf6302675b53e149a36dda5c..bce71bd11a121d0954dc9b5dd1a8cb8838cad256 100644 (file)
     <funcsynopsis>
       <funcsynopsisinfo>#include &lt;systemd/sd-bus-vtable.h&gt;</funcsynopsisinfo>
 
-      <funcprototype>
-        <funcdef>typedef int (*<function>sd_bus_message_handler_t</function>)</funcdef>
-        <paramdef>sd_bus_message *<parameter>m</parameter></paramdef>
-        <paramdef>void *<parameter>userdata</parameter></paramdef>
-        <paramdef>sd_bus_error *<parameter>ret_error</parameter></paramdef>
-      </funcprototype>
+      <xi:include href="sd_bus_add_match.xml" xpointer="sd_bus_message_handler_t"/>
 
       <funcprototype>
         <funcdef>typedef int (*<function>sd_bus_property_get_t</function>)</funcdef>
index 93462f24b594fa42eb15ff3dc39efdddc91769e9..b93efb2622c387baad58594f9e81dc1f896bdacd 100644 (file)
@@ -27,6 +27,8 @@
     <funcsynopsis>
       <funcsynopsisinfo>#include &lt;systemd/sd-bus.h&gt;</funcsynopsisinfo>
 
+      <xi:include href="sd_bus_add_match.xml" xpointer="sd_bus_message_handler_t"/>
+
       <funcprototype>
         <funcdef>int <function>sd_bus_call</function></funcdef>
         <paramdef>sd_bus *<parameter>bus</parameter></paramdef>
index 6348a4ce7725bf9252f983e036a32ded223e63fa..ac9cf143ad18ae92271ae1e38c6a7ef41a275c61 100644 (file)
@@ -30,6 +30,8 @@
     <funcsynopsis>
       <funcsynopsisinfo>#include &lt;systemd/sd-bus.h&gt;</funcsynopsisinfo>
 
+      <xi:include href="sd_bus_add_match.xml" xpointer="sd_bus_message_handler_t"/>
+
       <funcprototype>
         <funcdef>int <function>sd_bus_call_method</function></funcdef>
         <paramdef>sd_bus *<parameter>bus</parameter></paramdef>
index 07c61cd416405a421ffc4c8cac6e4896c06308c4..0a1843a849c7c4da21ae0c7ad767f6cdc0d2d7ef 100644 (file)
@@ -28,6 +28,8 @@
     <funcsynopsis>
       <funcsynopsisinfo>#include &lt;systemd/sd-bus.h&gt;</funcsynopsisinfo>
 
+      <xi:include href="sd_bus_add_match.xml" xpointer="sd_bus_message_handler_t"/>
+
       <funcprototype>
         <funcdef>sd_bus_message_handler_t <function>sd_bus_get_current_handler</function></funcdef>
         <paramdef>sd_bus *<parameter>bus</parameter></paramdef>
index 7229ef517a577051b5bfeaf78e107de75b6f1117..f8a49c006b242900886302050b24c8784c0da0fa 100644 (file)
@@ -28,6 +28,8 @@
     <funcsynopsis>
       <funcsynopsisinfo>#include &lt;systemd/sd-bus.h&gt;</funcsynopsisinfo>
 
+      <xi:include href="sd_bus_add_match.xml" xpointer="sd_bus_message_handler_t"/>
+
       <funcprototype>
         <funcdef>int <function>sd_bus_request_name</function></funcdef>
         <paramdef>sd_bus *<parameter>bus</parameter></paramdef>
index ed3e55b0574e5a510830195eabadd6e823c195ce..26541a9d97b410b188f6ac2fe7561de6f6099048 100644 (file)
@@ -27,6 +27,8 @@
     <funcsynopsis>
       <funcsynopsisinfo>#include &lt;systemd/sd-bus.h&gt;</funcsynopsisinfo>
 
+      <xi:include href="sd_bus_add_match.xml" xpointer="sd_bus_message_handler_t"/>
+
       <funcprototype>
         <funcdef>sd_bus *<function>sd_bus_slot_get_bus</function></funcdef>
         <paramdef>sd_bus_slot *<parameter>slot</parameter></paramdef>