From 9735c644be672f5ba3b319417e266648ed133d42 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 16 Mar 2020 20:41:57 +0100 Subject: sd-bus: Add sd_bus_method_call/sd_bus_method_call_async docs + cleanups. --- man/sd_bus_message_new_method_call.xml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'man/sd_bus_message_new_method_call.xml') diff --git a/man/sd_bus_message_new_method_call.xml b/man/sd_bus_message_new_method_call.xml index 0d181ed82e..1201262690 100644 --- a/man/sd_bus_message_new_method_call.xml +++ b/man/sd_bus_message_new_method_call.xml @@ -28,7 +28,7 @@ #include <systemd/sd-bus.h> - int sd_bus_message_new_method_call + int sd_bus_message_new_method_call sd_bus *bus sd_bus_message **m const char *destination @@ -38,7 +38,7 @@ - int sd_bus_message_new_method_return + int sd_bus_message_new_method_return sd_bus_message *call sd_bus_message **m @@ -70,7 +70,11 @@ has only a single member with the given name and there is no ambiguity if the interface name is omitted. - The sd_bus_message_new_method_call() function creates a new bus + Note that this is a low level interface. See + sd_bus_call_method3 + for a more convenient way of calling D-Bus methods. + + The sd_bus_message_new_method_return() function creates a new bus message object that is a reply to the method call call and returns it in the m output parameter. The call parameter must be a method call message. The sender of call is used as the destination. @@ -80,8 +84,8 @@ Return Value - This function returns 0 if the message object was successfully created, and a negative - errno-style error code otherwise. + On success, these functions returns a non-negative integer. On failure, they return a + negative errno-style error code. Errors @@ -160,6 +164,7 @@ systemd1, sd-bus3, sd_bus_path_encode3 + sd_bus_call_method3 -- cgit v1.2.1