1SD_BUS_MESSAGE_COPY(3) sd_bus_message_copy SD_BUS_MESSAGE_COPY(3)
2
3
4
6 sd_bus_message_copy - Copy the contents of one message to another
7
9 #include <systemd/sd-bus.h>
10
11 int sd_bus_message_copy(sd_bus_message *m, sd_bus_message *source,
12 int all);
13
15 sd_bus_message_copy() copies the contents from message source to m. If
16 all is false, a single complete type is copied (basic or container). If
17 all is true, the contents are copied until the end of the currently
18 open container or the end of source.
19
21 On success, this call returns true if anything was copied, and false if
22 there was nothing to copy. On failure, it returns a negative
23 errno-style error code.
24
25 Errors
26 Returned errors may indicate the following problems:
27
28 -EINVAL
29 source or m are NULL.
30
31 -EPERM
32 Message m has been sealed or source has not been sealed.
33
34 -ESTALE
35 Destination message is in invalid state.
36
37 -ENXIO
38 Destination message cannot be appended to.
39
40 -ENOMEM
41 Memory allocation failed.
42
44 These APIs are implemented as a shared library, which can be compiled
45 and linked to with the libsystemd pkg-config(1) file.
46
48 systemd(1), sd-bus(3), sd_bus_message_append(3)
49
50
51
52systemd 248 SD_BUS_MESSAGE_COPY(3)