1SD_BUS_MESSAGE_READ_STRV(3)sd_bus_message_read_strvSD_BUS_MESSAGE_READ_STRV(3)
2
3
4

NAME

6       sd_bus_message_read_strv - Access an array of strings in a message
7

SYNOPSIS

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

DESCRIPTION

14       sd_bus_message_read_strv() gives access to an array of string-like
15       items in message m. The "read pointer" in the message must be right
16       before an array of strings (D-Bus type "as"), object paths (D-Bus type
17       "ao"), or signatures (D-Bus type "ag"). On success, a pointer to a
18       NULL-terminated array of strings is returned in the output parameter l.
19       Note that ownership of this array is transferred to the caller. Hence,
20       the caller is responsible for freeing this array and its contents.
21

RETURN VALUE

23       On success, sd_bus_message_read_strv() returns a non-negative integer.
24       On failure, it returns a negative errno-style error code.
25
26   Errors
27       Returned errors may indicate the following problems:
28
29       -EINVAL
30           m or l are NULL.
31
32       -EPERM
33           The message is not sealed.
34
35       -EBADMSG
36           The message cannot be parsed.
37
38       -ENXIO
39           The message "read pointer" is not right before an array of the
40           appropriate type.
41

SEE ALSO

43       systemd(1), sd-bus(3), sd_bus_message_read(3)
44
45
46
47systemd 250                                        SD_BUS_MESSAGE_READ_STRV(3)
Impressum