]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/sd_bus_message_append_strv.xml
sd-event: define a new PREPARING state
[thirdparty/systemd.git] / man / sd_bus_message_append_strv.xml
CommitLineData
3802a3d3 1<?xml version='1.0'?> <!--*- Mode: nxml; nxml-child-indent: 2; indent-tabs-mode: nil -*-->
effbc8e4 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
effbc8e4
ZJS
4
5<!--
b975b0d5 6 This file is part of systemd.
effbc8e4 7
b975b0d5 8 Copyright 2014 Zbigniew Jędrzejewski-Szmek
effbc8e4 9
b975b0d5
ZJS
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
effbc8e4 14
b975b0d5
ZJS
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
effbc8e4 19
b975b0d5
ZJS
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
effbc8e4
ZJS
22-->
23
48f69d8f 24<refentry id="sd_bus_message_append_strv"
effbc8e4
ZJS
25 xmlns:xi="http://www.w3.org/2001/XInclude">
26
27 <refentryinfo>
28 <title>sd_bus_message_append_strv</title>
29 <productname>systemd</productname>
30
31 <authorgroup>
32 <author>
33 <contrib>A monkey with a typewriter</contrib>
34 <firstname>Zbigniew</firstname>
35 <surname>Jędrzejewski-Szmek</surname>
36 <email>zbyszek@in.waw.pl</email>
37 </author>
38 </authorgroup>
39 </refentryinfo>
40
41 <refmeta>
42 <refentrytitle>sd_bus_message_append_strv</refentrytitle>
43 <manvolnum>3</manvolnum>
44 </refmeta>
45
46 <refnamediv>
47 <refname>sd_bus_message_append_strv</refname>
48
49 <refpurpose>Attach an array of strings to a message</refpurpose>
50 </refnamediv>
51
52 <refsynopsisdiv>
53 <funcsynopsis>
54 <funcsynopsisinfo>#include &lt;systemd/sd-bus.h&gt;</funcsynopsisinfo>
55
56 <funcprototype>
57 <funcdef>int sd_bus_message_append_strv</funcdef>
58 <paramdef>sd_bus_message *<parameter>m</parameter></paramdef>
59 <paramdef>char **<parameter>l</parameter></paramdef>
60 </funcprototype>
61 </funcsynopsis>
62 </refsynopsisdiv>
63
64 <refsect1>
65 <title>Description</title>
66
b8bde116 67 <para>The <function>sd_bus_message_append</function> function can be
effbc8e4 68 used to append an array of strings to message
b8bde116
JE
69 <parameter>m</parameter>. The parameter <parameter>l</parameter>
70 shall point to a <constant>NULL</constant>-terminated array of pointers
effbc8e4
ZJS
71 to <constant>NUL</constant>-terminated strings. Each string must
72 satisfy the same constraints as described for the
73 <literal>s</literal> type in
74 <citerefentry><refentrytitle>sd_bus_message_append_basic</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
75 </para>
76
77 <para>The memory pointed at by <parameter>p</parameter> and the
78 contents of the strings themselves are copied into the memory area
79 containing the message and may be changed after this call. Note
dca348bc
JE
80 that the signature of <parameter>l</parameter> parameter is to be
81 treated as <type>const char *const *</type>, and the contents
effbc8e4
ZJS
82 will not be modified.</para>
83 </refsect1>
84
85 <refsect1>
86 <title>Return Value</title>
87
88 <para>On success, this call returns 0 or a positive integer. On
89 failure, a negative errno-style error code is returned.</para>
90 </refsect1>
91
92 <xi:include href="sd_bus_message_append_basic.xml" xpointer="errors" />
93
94 <refsect1>
95 <title>Notes</title>
96
b8bde116 97 <para>The <function>sd_bus_append_append_strv()</function> function
effbc8e4
ZJS
98 described here is available as a shared library, which can be
99 compiled and linked to with the
5aded369 100 <constant>libsystemd</constant> <citerefentry project='die-net'><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>
effbc8e4
ZJS
101 file.</para>
102 </refsect1>
103
104 <refsect1>
105 <title>See Also</title>
106
107 <para>
108 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
109 <citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
110 <citerefentry><refentrytitle>sd_bus_message_append</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
111 <citerefentry><refentrytitle>sd_bus_message_append_array</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
112 <ulink url="http://dbus.freedesktop.org/doc/dbus-specification.html">The D-Bus specification</ulink>
113 </para>
114 </refsect1>
115
116</refentry>