]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/sd_bus_message_append_strv.xml
travis: add more ASan options
[thirdparty/systemd.git] / man / sd_bus_message_append_strv.xml
CommitLineData
514094f9 1<?xml version='1.0'?>
3a54a157
ZJS
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
0307f791 4<!-- SPDX-License-Identifier: LGPL-2.1+ -->
effbc8e4 5
48f69d8f 6<refentry id="sd_bus_message_append_strv"
effbc8e4
ZJS
7 xmlns:xi="http://www.w3.org/2001/XInclude">
8
9 <refentryinfo>
10 <title>sd_bus_message_append_strv</title>
11 <productname>systemd</productname>
effbc8e4
ZJS
12 </refentryinfo>
13
14 <refmeta>
15 <refentrytitle>sd_bus_message_append_strv</refentrytitle>
16 <manvolnum>3</manvolnum>
17 </refmeta>
18
19 <refnamediv>
20 <refname>sd_bus_message_append_strv</refname>
21
22 <refpurpose>Attach an array of strings to a message</refpurpose>
23 </refnamediv>
24
25 <refsynopsisdiv>
26 <funcsynopsis>
27 <funcsynopsisinfo>#include &lt;systemd/sd-bus.h&gt;</funcsynopsisinfo>
28
29 <funcprototype>
30 <funcdef>int sd_bus_message_append_strv</funcdef>
31 <paramdef>sd_bus_message *<parameter>m</parameter></paramdef>
32 <paramdef>char **<parameter>l</parameter></paramdef>
33 </funcprototype>
34 </funcsynopsis>
35 </refsynopsisdiv>
36
37 <refsect1>
38 <title>Description</title>
39
b8bde116 40 <para>The <function>sd_bus_message_append</function> function can be
effbc8e4 41 used to append an array of strings to message
b8bde116
JE
42 <parameter>m</parameter>. The parameter <parameter>l</parameter>
43 shall point to a <constant>NULL</constant>-terminated array of pointers
effbc8e4
ZJS
44 to <constant>NUL</constant>-terminated strings. Each string must
45 satisfy the same constraints as described for the
46 <literal>s</literal> type in
47 <citerefentry><refentrytitle>sd_bus_message_append_basic</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
48 </para>
49
50 <para>The memory pointed at by <parameter>p</parameter> and the
51 contents of the strings themselves are copied into the memory area
52 containing the message and may be changed after this call. Note
dca348bc
JE
53 that the signature of <parameter>l</parameter> parameter is to be
54 treated as <type>const char *const *</type>, and the contents
effbc8e4
ZJS
55 will not be modified.</para>
56 </refsect1>
57
58 <refsect1>
59 <title>Return Value</title>
60
b1de39de
ZJS
61 <para>On success, this call returns 0 or a positive integer. On failure, a negative errno-style error
62 code is returned.</para>
effbc8e4 63
b1de39de
ZJS
64 <xi:include href="sd_bus_message_append_basic.xml" xpointer="errors" />
65 </refsect1>
effbc8e4 66
7d6b2723 67 <xi:include href="libsystemd-pkgconfig.xml" />
effbc8e4
ZJS
68
69 <refsect1>
70 <title>See Also</title>
71
72 <para>
73 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
74 <citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
75 <citerefentry><refentrytitle>sd_bus_message_append</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
76 <citerefentry><refentrytitle>sd_bus_message_append_array</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
77 <ulink url="http://dbus.freedesktop.org/doc/dbus-specification.html">The D-Bus specification</ulink>
78 </para>
79 </refsect1>
80
81</refentry>