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       -EPERM
39           Message call has been sealed.
40
41       -ENOTCONN
42           The bus to which message call is attached is not connected.
43
44       -ENOMEM
45           Memory allocation failed.
46
47       In addition, any error returned by sd_bus_send(1) may be returned.
48

NOTES

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

SEE ALSO

54       systemd(1), sd-bus(3), sd_bus_message_new_method_return(3)
55
56
57
58systemd 246                                      SD_BUS_REPLY_METHOD_RETURN(3)
Impressum