1 /* SPDX-License-Identifier: MIT-0 */
3 #include <systemd/sd-bus.h>
5 int append_strings_to_message(sd_bus_message
*m
, const char *const *arr
) {
8 r
= sd_bus_message_open_container(m
, 'a', "s");
12 for (const char *s
= *arr
; *s
; s
++) {
13 r
= sd_bus_message_append(m
, "s", s
);
18 return sd_bus_message_close_container(m
);