]>
Commit | Line | Data |
---|---|---|
06255d6f DH |
1 | <?xml version='1.0'?> <!--*-nxml-*--> |
2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" | |
3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ | |
4 | <!ENTITY % entities SYSTEM "custom-entities.ent" > | |
5 | %entities; | |
6 | ]> | |
7 | ||
8 | <!-- | |
572eb058 ZJS |
9 | SPDX-License-Identifier: LGPL-2.1+ |
10 | ||
06255d6f DH |
11 | This file is part of systemd. |
12 | ||
13 | Copyright 2015 David Herrmann <dh.herrmann@gmail.com> | |
14 | ||
15 | systemd is free software; you can redistribute it and/or modify it | |
16 | under the terms of the GNU Lesser General Public License as published by | |
17 | the Free Software Foundation; either version 2.1 of the License, or | |
18 | (at your option) any later version. | |
19 | ||
20 | systemd is distributed in the hope that it will be useful, but | |
21 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
23 | Lesser General Public License for more details. | |
24 | ||
25 | You should have received a copy of the GNU Lesser General Public License | |
26 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
27 | --> | |
28 | ||
29 | <refentry id="udev_list_entry" | |
30 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
31 | ||
32 | <refentryinfo> | |
33 | <title>udev_list_entry</title> | |
34 | <productname>systemd</productname> | |
35 | ||
36 | <authorgroup> | |
37 | <author> | |
38 | <contrib>Developer</contrib> | |
39 | <firstname>David</firstname> | |
40 | <surname>Herrmann</surname> | |
41 | <email>dh.herrmann@gmail.com</email> | |
42 | </author> | |
43 | </authorgroup> | |
44 | </refentryinfo> | |
45 | ||
46 | <refmeta> | |
47 | <refentrytitle>udev_list_entry</refentrytitle> | |
48 | <manvolnum>3</manvolnum> | |
49 | </refmeta> | |
50 | ||
51 | <refnamediv> | |
52 | <refname>udev_list_entry</refname> | |
53 | <refname>udev_list_entry_get_next</refname> | |
54 | <refname>udev_list_entry_get_by_name</refname> | |
55 | <refname>udev_list_entry_get_name</refname> | |
56 | <refname>udev_list_entry_get_value</refname> | |
57 | ||
58 | <refpurpose>Iterate and access udev lists</refpurpose> | |
59 | </refnamediv> | |
60 | ||
61 | <refsynopsisdiv> | |
62 | <funcsynopsis> | |
63 | <funcsynopsisinfo>#include <libudev.h></funcsynopsisinfo> | |
64 | ||
65 | <funcprototype> | |
66 | <funcdef>struct udev_list_entry *<function>udev_list_entry_get_next</function></funcdef> | |
67 | <paramdef>struct udev_list_entry *<parameter>list_entry</parameter></paramdef> | |
68 | </funcprototype> | |
69 | ||
70 | <funcprototype> | |
71 | <funcdef>struct udev_list_entry *<function>udev_list_entry_get_by_name</function></funcdef> | |
72 | <paramdef>struct udev_list_entry *<parameter>list_entry</parameter></paramdef> | |
73 | <paramdef>const char *<parameter>name</parameter></paramdef> | |
74 | </funcprototype> | |
75 | ||
76 | <funcprototype> | |
77 | <funcdef>const char *<function>udev_list_entry_get_name</function></funcdef> | |
78 | <paramdef>struct udev_list_entry *<parameter>list_entry</parameter></paramdef> | |
79 | </funcprototype> | |
80 | ||
81 | <funcprototype> | |
82 | <funcdef>const char *<function>udev_list_entry_get_value</function></funcdef> | |
83 | <paramdef>struct udev_list_entry *<parameter>list_entry</parameter></paramdef> | |
84 | </funcprototype> | |
85 | ||
86 | </funcsynopsis> | |
87 | </refsynopsisdiv> | |
88 | ||
89 | <!--<refsect1> | |
90 | <title>Description</title> | |
91 | ||
92 | <para>XXX: Add short description.</para> | |
93 | </refsect1>--> | |
94 | ||
95 | <refsect1> | |
96 | <title>Return Value</title> | |
97 | ||
98 | <para>On success, | |
99 | <function>udev_list_entry_get_next()</function> and | |
100 | <function>udev_list_entry_get_by_name()</function> return | |
101 | a pointer to the requested list entry. If no such entry can | |
102 | be found, or on failure, <constant>NULL</constant> is | |
103 | returned.</para> | |
104 | ||
105 | <para>On success, | |
106 | <function>udev_list_entry_get_name()</function> and | |
107 | <function>udev_list_entry_get_value()</function> return a | |
108 | pointer to a constant string representing the requested value. | |
b938cb90 | 109 | The string is bound to the lifetime of the list entry itself. |
06255d6f DH |
110 | On failure, <constant>NULL</constant> is returned.</para> |
111 | </refsect1> | |
112 | ||
113 | <refsect1> | |
114 | <title>See Also</title> | |
115 | ||
116 | <para> | |
117 | <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
118 | <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
119 | <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
120 | <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
121 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
122 | </para> | |
123 | </refsect1> | |
124 | ||
125 | </refentry> |