File: group__device__xml.tex

package info (click to toggle)
discover 2.1.2-7
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,244 kB
  • ctags: 2,776
  • sloc: sh: 8,115; ansic: 7,275; xml: 1,809; makefile: 726
file content (120 lines) | stat: -rw-r--r-- 7,902 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
\section{Device list XML parsing}
\label{group__device__xml}\index{Device list XML parsing@{Device list XML parsing}}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf discover\_\-xml\_\-merge\_\-device\_\-url} ({\bf discover\_\-device\_\-t} $\ast$$\ast$dlist, char $\ast$url, {\bf discover\_\-xml\_\-busclass\_\-t} $\ast$busclasses, {\bf discover\_\-xml\_\-vendor\_\-t} $\ast$vendors, {\bf discover\_\-error\_\-t} $\ast$status)
\item 
{\bf discover\_\-device\_\-t} $\ast$ {\bf discover\_\-xml\_\-get\_\-devices} ({\bf discover\_\-bus\_\-t} bus, {\bf discover\_\-error\_\-t} $\ast$status)
\item 
void {\bf discover\_\-xml\_\-free\_\-devices} (void)
\item 
{\bf discover\_\-device\_\-t} $\ast$ {\bf discover\_\-xml\_\-find\_\-device} ({\bf discover\_\-device\_\-t} $\ast$xml\_\-devices, char $\ast$target\_\-vendor, char $\ast$target\_\-model, {\bf discover\_\-error\_\-t} $\ast$status)
\item 
{\bf discover\_\-device\_\-t} $\ast$ {\bf discover\_\-xml\_\-find\_\-next\_\-device} ({\bf discover\_\-device\_\-t} $\ast$xml\_\-devices, char $\ast$target\_\-vendor, char $\ast$target\_\-model, {\bf discover\_\-error\_\-t} $\ast$status)
\item 
{\bf discover\_\-device\_\-t} $\ast$ {\bf discover\_\-xml\_\-get\_\-matching\_\-devices} ({\bf discover\_\-device\_\-t} $\ast$xml\_\-devices, char $\ast$target\_\-vendor, char $\ast$target\_\-model, {\bf discover\_\-error\_\-t} $\ast$status)
\end{CompactItemize}


\subsection{Function Documentation}
\index{device_xml@{device\_\-xml}!discover_xml_find_device@{discover\_\-xml\_\-find\_\-device}}
\index{discover_xml_find_device@{discover\_\-xml\_\-find\_\-device}!device_xml@{device\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf discover\_\-device\_\-t}$\ast$ discover\_\-xml\_\-find\_\-device ({\bf discover\_\-device\_\-t} $\ast$ {\em xml\_\-devices}, char $\ast$ {\em target\_\-vendor}, char $\ast$ {\em target\_\-model}, {\bf discover\_\-error\_\-t} $\ast$ {\em status})}\label{group__device__xml_ga3}


Find the first device in xml\_\-devices matching target\_\-vendor and/or target\_\-model. (One or both can be specified, but not zero.)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em xml\_\-devices}]List of devices to search \item[{\em target\_\-vendor}]Vendor for which to search \item[{\em target\_\-model}]Model for which to search \item[{\em status}]Address in which to place status report \end{description}
\end{Desc}


Definition at line 550 of file device-xml.c.

Referenced by discover\_\-xml\_\-find\_\-next\_\-device(), and discover\_\-xml\_\-get\_\-matching\_\-devices().\index{device_xml@{device\_\-xml}!discover_xml_find_next_device@{discover\_\-xml\_\-find\_\-next\_\-device}}
\index{discover_xml_find_next_device@{discover\_\-xml\_\-find\_\-next\_\-device}!device_xml@{device\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf discover\_\-device\_\-t}$\ast$ discover\_\-xml\_\-find\_\-next\_\-device ({\bf discover\_\-device\_\-t} $\ast$ {\em xml\_\-devices}, char $\ast$ {\em target\_\-vendor}, char $\ast$ {\em target\_\-model}, {\bf discover\_\-error\_\-t} $\ast$ {\em status})}\label{group__device__xml_ga4}


Find the next device in xml\_\-devices matching target\_\-vendor and/or target\_\-model. (One or both can be specified, but not zero.)

The first device in the list is assumed to have been processed, so we simply call {\bf discover\_\-xml\_\-find\_\-device()}{\rm (p.\,\pageref{group__device__xml_ga3})} on the next pointer.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em xml\_\-devices}]List of devices to search \item[{\em target\_\-vendor}]Vendor for which to search \item[{\em target\_\-model}]Model for which to search \item[{\em status}]Address in which to place status report \end{description}
\end{Desc}


Definition at line 594 of file device-xml.c.

References discover\_\-xml\_\-find\_\-device().

Referenced by discover\_\-xml\_\-get\_\-matching\_\-devices().\index{device_xml@{device\_\-xml}!discover_xml_free_devices@{discover\_\-xml\_\-free\_\-devices}}
\index{discover_xml_free_devices@{discover\_\-xml\_\-free\_\-devices}!device_xml@{device\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void discover\_\-xml\_\-free\_\-devices (void)}\label{group__device__xml_ga2}


Free the list of XML devices. 

Definition at line 531 of file device-xml.c.

References BUS\_\-COUNT, and discover\_\-device\_\-free().\index{device_xml@{device\_\-xml}!discover_xml_get_devices@{discover\_\-xml\_\-get\_\-devices}}
\index{discover_xml_get_devices@{discover\_\-xml\_\-get\_\-devices}!device_xml@{device\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf discover\_\-device\_\-t}$\ast$ discover\_\-xml\_\-get\_\-devices ({\bf discover\_\-bus\_\-t} {\em bus}, {\bf discover\_\-error\_\-t} $\ast$ {\em status})}\label{group__device__xml_ga1}


Get the list of devices for the required bus.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em bus}]Bus for which the devices are requested \item[{\em status}]Address in which to place status report \end{description}
\end{Desc}


Definition at line 484 of file device-xml.c.

References discover\_\-error::code, discover\_\-xml\_\-get\_\-busclasses(), discover\_\-xml\_\-get\_\-data\_\-urls(), discover\_\-xml\_\-get\_\-vendors(), discover\_\-xml\_\-merge\_\-device\_\-url(), discover\_\-xml\_\-url\_\-get\_\-next(), and discover\_\-xml\_\-url\_\-get\_\-url().

Referenced by discover\_\-get\_\-devices().\index{device_xml@{device\_\-xml}!discover_xml_get_matching_devices@{discover\_\-xml\_\-get\_\-matching\_\-devices}}
\index{discover_xml_get_matching_devices@{discover\_\-xml\_\-get\_\-matching\_\-devices}!device_xml@{device\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf discover\_\-device\_\-t}$\ast$ discover\_\-xml\_\-get\_\-matching\_\-devices ({\bf discover\_\-device\_\-t} $\ast$ {\em xml\_\-devices}, char $\ast$ {\em target\_\-vendor}, char $\ast$ {\em target\_\-model}, {\bf discover\_\-error\_\-t} $\ast$ {\em status})}\label{group__device__xml_ga5}


Find and duplicate all devices in xml\_\-devices matching target\_\-vendor and/or target\_\-model. (One or both can be specified, but not zero.)

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em xml\_\-devices}]List of devices to search \item[{\em target\_\-vendor}]Vendor for which to search \item[{\em target\_\-model}]Model for which to search \item[{\em status}]Address in which to place status report \end{description}
\end{Desc}


Definition at line 614 of file device-xml.c.

References discover\_\-device\_\-copy(), discover\_\-device\_\-new(), discover\_\-xml\_\-find\_\-device(), and discover\_\-xml\_\-find\_\-next\_\-device().

Referenced by discover\_\-get\_\-devices().\index{device_xml@{device\_\-xml}!discover_xml_merge_device_url@{discover\_\-xml\_\-merge\_\-device\_\-url}}
\index{discover_xml_merge_device_url@{discover\_\-xml\_\-merge\_\-device\_\-url}!device_xml@{device\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void discover\_\-xml\_\-merge\_\-device\_\-url ({\bf discover\_\-device\_\-t} $\ast$$\ast$ {\em dlist}, char $\ast$ {\em url}, {\bf discover\_\-xml\_\-busclass\_\-t} $\ast$ {\em busclasses}, {\bf discover\_\-xml\_\-vendor\_\-t} $\ast$ {\em vendors}, {\bf discover\_\-error\_\-t} $\ast$ {\em status})}\label{group__device__xml_ga0}


Merge new busclasses into a list.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em dlist}]Address of the list to merge busclasses into \item[{\em url}]URL of the document defining the busclasses \item[{\em busclasses}]List of busclasses for this bus \item[{\em vendors}]List of vendors for this bus \item[{\em status}]Address in which to place status report \end{description}
\end{Desc}


Definition at line 425 of file device-xml.c.

References discover\_\-error::code, DISCOVER\_\-EIO, and DISCOVER\_\-EXML.

Referenced by discover\_\-xml\_\-get\_\-devices().