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