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       These APIs are implemented as a shared library, which can be compiled
47       and linked to with the libsystemd pkg-config(1) file.
48

SEE ALSO

50       systemd(1), sd-bus(3), sd_bus_message_read(3),
51       sd_bus_message_read_basic(3)
52
53
54
55systemd 250                                             SD_BUS_MESSAGE_SKIP(3)
Impressum