1SD_BUS_MESSAGE_COPY(3)        sd_bus_message_copy       SD_BUS_MESSAGE_COPY(3)
2
3
4

NAME

6       sd_bus_message_copy - Copy the contents of one message to another
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

NOTES

44       Functions described here are available as a shared library, which can
45       be compiled against and linked to with the libsystemd pkg-config(1)
46       file.
47
48       The code described here uses getenv(3), which is declared to be not
49       multi-thread-safe. This means that the code calling the functions
50       described here must not call setenv(3) from a parallel thread. It is
51       recommended to only do calls to setenv() from an early phase of the
52       program when no other threads have been started.
53

SEE ALSO

55       systemd(1), sd-bus(3), sd_bus_message_append(3)
56
57
58
59systemd 254                                             SD_BUS_MESSAGE_COPY(3)
Impressum