1SD_BUS_MESSAGE_SET_EXPECTs_dR_EbPuLsY_(m3e)ssage_set_exSpDe_cBtU_Sr_eMpElSySAGE_SET_EXPECT_REPLY(3)
2
3
4
6 sd_bus_message_set_expect_reply, sd_bus_message_get_expect_reply,
7 sd_bus_message_set_auto_start, sd_bus_message_get_auto_start - Set and
8 query bus message metadata
9
11 #include <systemd/sd-bus.h>
12
13 int sd_bus_message_set_expect_reply(sd_bus_message *message, int b);
14
15 int sd_bus_message_get_expect_reply(sd_bus_message *message);
16
17 int sd_bus_message_set_auto_start(sd_bus_message *message, int b);
18
19 int sd_bus_message_get_auto_start(sd_bus_message *message);
20
22 sd_bus_message_set_expect_reply() sets or clears the NO_REPLY_EXPECTED
23 flag on the message m. This flag matters only for method call messages
24 and is used to specify that no method return or error reply is
25 expected. It is ignored for other types. Thus, for a method call
26 message, calling
27
28 sd_bus_message_set_expect_reply(..., 0)
29
30 sets the flag and suppresses the reply.
31
32 sd_bus_message_get_expect_reply() checks if the NO_REPLY_EXPECTED flag
33 is set on the message m. It will return positive if it is not set, and
34 zero if it is.
35
36 sd_bus_message_set_auto_start() sets or clears the NO_AUTO_START flag
37 on the message m. When the flag is set the bus must not launch an owner
38 for the destination name in response to this message. Calling
39
40 sd_bus_message_set_auto_start(..., 0)
41
42 sets the flag.
43
44 sd_bus_message_get_auto_start() checks if the NO_AUTO_START flag is set
45 on the message m. It will return positive if it is not set, and zero if
46 it is.
47
49 On success, these functions return 0 or a positive integer. On failure,
50 they return a negative errno-style error code.
51
52 Errors
53 Returned errors may indicate the following problems:
54
55 -EINVAL
56 The message parameter is NULL.
57
58 -EPERM
59 The message message is sealed when trying to set a flag.
60
61 The message message has wrong type.
62
64 These APIs are implemented as a shared library, which can be compiled
65 and linked to with the libsystemd pkg-config(1) file.
66
68 systemd(1), sd-bus(3), sd_bus_set_description(3)
69
70
71
72systemd 245 SD_BUS_MESSAGE_SET_EXPECT_REPLY(3)