]>
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 | ||
96b2fb93 | 11 | Copyright © 2015 David Herrmann <dh.herrmann@gmail.com> |
06255d6f DH |
12 | --> |
13 | ||
14 | <refentry id="udev_list_entry" | |
15 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
16 | ||
17 | <refentryinfo> | |
18 | <title>udev_list_entry</title> | |
19 | <productname>systemd</productname> | |
20 | ||
21 | <authorgroup> | |
22 | <author> | |
23 | <contrib>Developer</contrib> | |
24 | <firstname>David</firstname> | |
25 | <surname>Herrmann</surname> | |
26 | <email>dh.herrmann@gmail.com</email> | |
27 | </author> | |
28 | </authorgroup> | |
29 | </refentryinfo> | |
30 | ||
31 | <refmeta> | |
32 | <refentrytitle>udev_list_entry</refentrytitle> | |
33 | <manvolnum>3</manvolnum> | |
34 | </refmeta> | |
35 | ||
36 | <refnamediv> | |
37 | <refname>udev_list_entry</refname> | |
38 | <refname>udev_list_entry_get_next</refname> | |
39 | <refname>udev_list_entry_get_by_name</refname> | |
40 | <refname>udev_list_entry_get_name</refname> | |
41 | <refname>udev_list_entry_get_value</refname> | |
42 | ||
43 | <refpurpose>Iterate and access udev lists</refpurpose> | |
44 | </refnamediv> | |
45 | ||
46 | <refsynopsisdiv> | |
47 | <funcsynopsis> | |
48 | <funcsynopsisinfo>#include <libudev.h></funcsynopsisinfo> | |
49 | ||
50 | <funcprototype> | |
51 | <funcdef>struct udev_list_entry *<function>udev_list_entry_get_next</function></funcdef> | |
52 | <paramdef>struct udev_list_entry *<parameter>list_entry</parameter></paramdef> | |
53 | </funcprototype> | |
54 | ||
55 | <funcprototype> | |
56 | <funcdef>struct udev_list_entry *<function>udev_list_entry_get_by_name</function></funcdef> | |
57 | <paramdef>struct udev_list_entry *<parameter>list_entry</parameter></paramdef> | |
58 | <paramdef>const char *<parameter>name</parameter></paramdef> | |
59 | </funcprototype> | |
60 | ||
61 | <funcprototype> | |
62 | <funcdef>const char *<function>udev_list_entry_get_name</function></funcdef> | |
63 | <paramdef>struct udev_list_entry *<parameter>list_entry</parameter></paramdef> | |
64 | </funcprototype> | |
65 | ||
66 | <funcprototype> | |
67 | <funcdef>const char *<function>udev_list_entry_get_value</function></funcdef> | |
68 | <paramdef>struct udev_list_entry *<parameter>list_entry</parameter></paramdef> | |
69 | </funcprototype> | |
70 | ||
71 | </funcsynopsis> | |
72 | </refsynopsisdiv> | |
73 | ||
74 | <!--<refsect1> | |
75 | <title>Description</title> | |
76 | ||
77 | <para>XXX: Add short description.</para> | |
78 | </refsect1>--> | |
79 | ||
80 | <refsect1> | |
81 | <title>Return Value</title> | |
82 | ||
83 | <para>On success, | |
84 | <function>udev_list_entry_get_next()</function> and | |
85 | <function>udev_list_entry_get_by_name()</function> return | |
86 | a pointer to the requested list entry. If no such entry can | |
87 | be found, or on failure, <constant>NULL</constant> is | |
88 | returned.</para> | |
89 | ||
90 | <para>On success, | |
91 | <function>udev_list_entry_get_name()</function> and | |
92 | <function>udev_list_entry_get_value()</function> return a | |
93 | pointer to a constant string representing the requested value. | |
b938cb90 | 94 | The string is bound to the lifetime of the list entry itself. |
06255d6f DH |
95 | On failure, <constant>NULL</constant> is returned.</para> |
96 | </refsect1> | |
97 | ||
98 | <refsect1> | |
99 | <title>See Also</title> | |
100 | ||
101 | <para> | |
102 | <citerefentry><refentrytitle>udev_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
103 | <citerefentry><refentrytitle>udev_device_new_from_syspath</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
104 | <citerefentry><refentrytitle>udev_enumerate_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
105 | <citerefentry><refentrytitle>udev_monitor_new_from_netlink</refentrytitle><manvolnum>3</manvolnum></citerefentry>, | |
106 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
107 | </para> | |
108 | </refsect1> | |
109 | ||
110 | </refentry> |