1SD_BUS_REPLY_METHOD_RETURN(s3d)_bus_reply_method_retuSrDn_BUS_REPLY_METHOD_RETURN(3)
2
3
4

NAME

6       sd_bus_reply_method_return, sd_bus_reply_method_returnv - Reply to a
7       D-Bus method call
8

SYNOPSIS

10       #include <systemd/sd-bus.h>
11
12       int sd_bus_reply_method_return(sd_bus_message *call, const char *types,
13                                      ...);
14
15       int sd_bus_reply_method_returnv(sd_bus_message *call,
16                                       const char *types, va_list ap);
17

DESCRIPTION

19       sd_bus_reply_method_return() sends a reply to the call message. The
20       type string types and the arguments that follow it must adhere to the
21       format described in sd_bus_message_append(3). If no reply is expected
22       to call, this function succeeds without sending a reply.
23

RETURN VALUE

25       On success, this function returns a non-negative integer. On failure,
26       it returns a negative errno-style error code.
27
28   Errors
29       Returned errors may indicate the following problems:
30
31       -EINVAL
32           The input parameter call is NULL.
33
34           Message call is not a method call message.
35
36           Message call is not attached to a bus.
37
38           Message m is not a method reply message.
39
40       -EPERM
41           Message call has been sealed.
42
43       -ENOTCONN
44           The bus to which message call is attached is not connected.
45
46       -ENOMEM
47           Memory allocation failed.
48
49       In addition, any error returned by sd_bus_send(1) may be returned.
50

NOTES

52       These APIs are implemented as a shared library, which can be compiled
53       and linked to with the libsystemd pkg-config(1) file.
54

SEE ALSO

56       systemd(1), sd-bus(3), sd_bus_message_new_method_return(3)
57
58
59
60systemd 249                                      SD_BUS_REPLY_METHOD_RETURN(3)
Impressum