1SD_BUS_MESSAGE_SKIP(3)        sd_bus_message_skip       SD_BUS_MESSAGE_SKIP(3)
2
3
4

NAME

6       sd_bus_message_skip - Skip elements in a bus message
7

SYNOPSIS

9       #include <systemd/sd-bus.h>
10
11       int sd_bus_message_skip(sd_bus_message *m, const char* types);
12

DESCRIPTION

14       sd_bus_message_skip() is somewhat similar to sd_bus_message_read(3),
15       but instead of reading the contents of the message, it only moves the
16       "read pointer". Subsequent read operations will read the elements that
17       are after the elements that were skipped.
18
19       The types argument has the same meaning as in sd_bus_message_read(). It
20       may also be NULL, to skip a single element of any type.
21

RETURN VALUE

23       On success, sd_bus_message_skip() returns 0 or a positive integer. On
24       failure, it returns a negative errno-style error code.
25
26   Errors
27       Returned errors may indicate the following problems:
28
29       -EINVAL
30           The m parameter is NULL.
31
32       -EBADMSG
33           The message cannot be parsed.
34
35       -EPERM
36           The message is not sealed.
37
38       -ENXIO
39           The message end has been reached and the requested elements cannot
40           be read.
41
42       -ENOMEM
43           Memory allocation failed.
44

NOTES

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

SEE ALSO

57       systemd(1), sd-bus(3), sd_bus_message_read(3),
58       sd_bus_message_read_basic(3)
59
60
61
62systemd 254                                             SD_BUS_MESSAGE_SKIP(3)
Impressum