\section{Vendor list XML parsing}
\label{group__vendor__xml}\index{Vendor list XML parsing@{Vendor list XML parsing}}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf discover\_\-xml\_\-merge\_\-vendor\_\-url} ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$$\ast$vlist, char $\ast$url, {\bf discover\_\-error\_\-t} $\ast$status)
\item 
{\bf discover\_\-xml\_\-vendor\_\-t} $\ast$ {\bf discover\_\-xml\_\-get\_\-vendors} ({\bf discover\_\-bus\_\-t} bus, {\bf discover\_\-error\_\-t} $\ast$status)
\item 
void {\bf discover\_\-xml\_\-free\_\-vendors} (void)
\item 
char $\ast$ {\bf discover\_\-xml\_\-vendor\_\-id2name} ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$vendors, char $\ast$id)
\item 
char $\ast$ {\bf discover\_\-xml\_\-vendor\_\-get\_\-id} ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$vendor)
\item 
char $\ast$ {\bf discover\_\-xml\_\-vendor\_\-get\_\-name} ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$vendor)
\item 
{\bf discover\_\-xml\_\-vendor\_\-t} $\ast$ {\bf discover\_\-xml\_\-vendor\_\-get\_\-next} ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$vendor)
\item 
{\bf discover\_\-xml\_\-vendor\_\-t} $\ast$ {\bf discover\_\-xml\_\-vendor\_\-new} (void)
\item 
void {\bf discover\_\-xml\_\-vendor\_\-free} ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$vendors)
\end{CompactItemize}


\subsection{Function Documentation}
\index{vendor_xml@{vendor\_\-xml}!discover_xml_free_vendors@{discover\_\-xml\_\-free\_\-vendors}}
\index{discover_xml_free_vendors@{discover\_\-xml\_\-free\_\-vendors}!vendor_xml@{vendor\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void discover\_\-xml\_\-free\_\-vendors (void)}\label{group__vendor__xml_ga2}


Free the list of vendors. 

Definition at line 248 of file vendor-xml.c.

References BUS\_\-COUNT, and discover\_\-xml\_\-vendor\_\-free().\index{vendor_xml@{vendor\_\-xml}!discover_xml_get_vendors@{discover\_\-xml\_\-get\_\-vendors}}
\index{discover_xml_get_vendors@{discover\_\-xml\_\-get\_\-vendors}!vendor_xml@{vendor\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf discover\_\-xml\_\-vendor\_\-t}$\ast$ discover\_\-xml\_\-get\_\-vendors ({\bf discover\_\-bus\_\-t} {\em bus}, {\bf discover\_\-error\_\-t} $\ast$ {\em status})}\label{group__vendor__xml_ga1}


Get the list of vendors by bus type.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em bus}]Type of bus for which vendors are required \item[{\em status}]Address in which to place status report \end{description}
\end{Desc}


Definition at line 215 of file vendor-xml.c.

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

Referenced by discover\_\-xml\_\-get\_\-devices().\index{vendor_xml@{vendor\_\-xml}!discover_xml_merge_vendor_url@{discover\_\-xml\_\-merge\_\-vendor\_\-url}}
\index{discover_xml_merge_vendor_url@{discover\_\-xml\_\-merge\_\-vendor\_\-url}!vendor_xml@{vendor\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void discover\_\-xml\_\-merge\_\-vendor\_\-url ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$$\ast$ {\em vlist}, char $\ast$ {\em url}, {\bf discover\_\-error\_\-t} $\ast$ {\em status})}\label{group__vendor__xml_ga0}


Merge new vendors into a list.

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


Definition at line 173 of file vendor-xml.c.

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

Referenced by discover\_\-xml\_\-get\_\-vendors().\index{vendor_xml@{vendor\_\-xml}!discover_xml_vendor_free@{discover\_\-xml\_\-vendor\_\-free}}
\index{discover_xml_vendor_free@{discover\_\-xml\_\-vendor\_\-free}!vendor_xml@{vendor\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void discover\_\-xml\_\-vendor\_\-free ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$ {\em vendors})}\label{group__vendor__xml_ga8}


Free the vendor or list of vendors.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vendors}]Vendor or list of vendors to free \end{description}
\end{Desc}


Definition at line 342 of file vendor-xml.c.

Referenced by discover\_\-xml\_\-free\_\-vendors().\index{vendor_xml@{vendor\_\-xml}!discover_xml_vendor_get_id@{discover\_\-xml\_\-vendor\_\-get\_\-id}}
\index{discover_xml_vendor_get_id@{discover\_\-xml\_\-vendor\_\-get\_\-id}!vendor_xml@{vendor\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ discover\_\-xml\_\-vendor\_\-get\_\-id ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$ {\em vendor})}\label{group__vendor__xml_ga4}


Get the id member of vendor. 

Definition at line 290 of file vendor-xml.c.\index{vendor_xml@{vendor\_\-xml}!discover_xml_vendor_get_name@{discover\_\-xml\_\-vendor\_\-get\_\-name}}
\index{discover_xml_vendor_get_name@{discover\_\-xml\_\-vendor\_\-get\_\-name}!vendor_xml@{vendor\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ discover\_\-xml\_\-vendor\_\-get\_\-name ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$ {\em vendor})}\label{group__vendor__xml_ga5}


Get the name member of vendor. 

Definition at line 301 of file vendor-xml.c.\index{vendor_xml@{vendor\_\-xml}!discover_xml_vendor_get_next@{discover\_\-xml\_\-vendor\_\-get\_\-next}}
\index{discover_xml_vendor_get_next@{discover\_\-xml\_\-vendor\_\-get\_\-next}!vendor_xml@{vendor\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf discover\_\-xml\_\-vendor\_\-t}$\ast$ discover\_\-xml\_\-vendor\_\-get\_\-next ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$ {\em vendor})}\label{group__vendor__xml_ga6}


Get the next member of vendor. 

Definition at line 312 of file vendor-xml.c.\index{vendor_xml@{vendor\_\-xml}!discover_xml_vendor_id2name@{discover\_\-xml\_\-vendor\_\-id2name}}
\index{discover_xml_vendor_id2name@{discover\_\-xml\_\-vendor\_\-id2name}!vendor_xml@{vendor\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ discover\_\-xml\_\-vendor\_\-id2name ({\bf discover\_\-xml\_\-vendor\_\-t} $\ast$ {\em vendors}, char $\ast$ {\em id})}\label{group__vendor__xml_ga3}


Convert a vendor ID to a human-readable string naming the vendor.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vendors}]List of vendors to search \item[{\em id}]Vendor ID to search for \end{description}
\end{Desc}


Definition at line 264 of file vendor-xml.c.\index{vendor_xml@{vendor\_\-xml}!discover_xml_vendor_new@{discover\_\-xml\_\-vendor\_\-new}}
\index{discover_xml_vendor_new@{discover\_\-xml\_\-vendor\_\-new}!vendor_xml@{vendor\_\-xml}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf discover\_\-xml\_\-vendor\_\-t}$\ast$ discover\_\-xml\_\-vendor\_\-new (void)}\label{group__vendor__xml_ga7}


Create and initialize a new discover\_\-xml\_\-vendor\_\-t structure. 

Definition at line 323 of file vendor-xml.c.