1SD_BUS_MESSAGE_REWIND(3)     sd_bus_message_rewind    SD_BUS_MESSAGE_REWIND(3)
2
3
4

NAME

6       sd_bus_message_rewind - Return to begining of message or current
7       container
8

SYNOPSIS

10       #include <systemd/sd-bus.h>
11
12       int sd_bus_message_rewind(sd_bus_message *m, int complete);
13

DESCRIPTION

15       sd_bus_message_rewind() moves the "read pointer" in the message m to
16       either the begining of the message (if complete is true) or to the
17       beginning of the currently open container. If no container is open,
18       complete has no effect.
19

RETURN VALUE

21       On success, this function returns 0 or a positive integer. The value is
22       zero if the current container or whole message in case no container is
23       open is empty, and positive otherwise. On failure, it returns a
24       negative errno-style error code.
25

NOTES

27       These APIs are implemented as a shared library, which can be compiled
28       and linked to with the libsystemd pkg-config(1) file.
29

ERRORS

31       Returned errors may indicate the following problems:
32
33       -EINVAL
34           The m parameter is NULL.
35
36       -EPERM
37           The message m has not been sealed.
38

SEE ALSO

40       systemd(1), sd-bus(3), sd_bus_message_read(3)
41
42
43
44systemd 241                                           SD_BUS_MESSAGE_REWIND(3)
Impressum