Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 3736f276bb1ccfbcee6cb2d27b25d981 > files > 627

openscap-devel-0.5.7-1mdv2010.1.x86_64.rpm

\hypertarget{group__cpeuri}{
\section{CPE URIs}
\label{group__cpeuri}\index{CPE URIs@{CPE URIs}}
}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structcpe__name}{cpe\_\-name}
\begin{DoxyCompactList}\small\item\em Structure holding Common Platform Enumeration URI data. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Files}
\begin{DoxyCompactItemize}
\item 
file \hyperlink{cpeuri_8h}{cpeuri.h}


\begin{DoxyCompactList}\small\item\em Interface to Common Platform Enumeration (CPE) URI. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{group__cpeuri_ga683b693cae1d4b68f257be24c4cc2ab7}{cpe\_\-part\_\-t} \{ \hyperlink{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7a5c781205ea171ce6daacf4202cd8dfcd}{CPE\_\-PART\_\-NONE}, 
\hyperlink{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7a56e20d753d7bacb0a52ab1e2f77deef9}{CPE\_\-PART\_\-HW}, 
\hyperlink{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7abcc204922bfb1b0b9aeee3e9c5253150}{CPE\_\-PART\_\-OS}, 
\hyperlink{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7a6a885dbf3b1805209dd77f9c4747850a}{CPE\_\-PART\_\-APP}
 \}
\begin{DoxyCompactList}\small\item\em enumeration of possible CPE parts \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{New functions}
\label{_amgrp73a4128f20867fa23ebb2e75e58922df}
Constructors of CVE model structures.

Free function returns new empty allocated structure. If returns non NULL it need to be freed by the caller. \begin{DoxyCompactItemize}
\item 
struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$ \hyperlink{group__cpeuri_ga6177bf1f59c75b3cdace48d52a817257}{cpe\_\-name::cpe\_\-name\_\-new} (const char $\ast$cpe)
\begin{DoxyCompactList}\small\item\em Create a new CPE structure from string {\itshape cpe\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Free functions}
\label{_amgrp237dd65bc76b7de56066830910ced6ed}
Destructors of CVE model structures.

Functions free structures with all members recursively. For simple deletion of entity use remove functions. \begin{DoxyCompactItemize}
\item 
void \hyperlink{group__cpeuri_ga6fcacf25ee259b5b9343da178722ea1b}{cpe\_\-name::cpe\_\-name\_\-free} (struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)
\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Get functions}
\label{_amgrpc2ac1eb4de8ec5add5567cbae2f237e5}
Functions for getting attributes from CVE model structures.

Return value is pointer to structure's member. Do not free unless you null the pointer in the structure. Use remove function otherwise. \begin{DoxyCompactItemize}
\item 
\hypertarget{group__cpeuri_ga9471548809b90edca59ae2cec770575e}{
\hyperlink{group__cpeuri_ga683b693cae1d4b68f257be24c4cc2ab7}{cpe\_\-part\_\-t} \hyperlink{group__cpeuri_ga9471548809b90edca59ae2cec770575e}{cpe\_\-name::cpe\_\-name\_\-get\_\-part} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)}
\label{group__cpeuri_ga9471548809b90edca59ae2cec770575e}

\begin{DoxyCompactList}\small\item\em Get CPE name part type field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_ga8407fac5886e8440ebe512fe99e3038e}{
const char $\ast$ \hyperlink{group__cpeuri_ga8407fac5886e8440ebe512fe99e3038e}{cpe\_\-name::cpe\_\-name\_\-get\_\-vendor} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)}
\label{group__cpeuri_ga8407fac5886e8440ebe512fe99e3038e}

\begin{DoxyCompactList}\small\item\em Get CPE name vendor field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_gacb0ea70e7a1f33e597c7a5c949852e5e}{
const char $\ast$ \hyperlink{group__cpeuri_gacb0ea70e7a1f33e597c7a5c949852e5e}{cpe\_\-name::cpe\_\-name\_\-get\_\-product} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)}
\label{group__cpeuri_gacb0ea70e7a1f33e597c7a5c949852e5e}

\begin{DoxyCompactList}\small\item\em Get CPE name product field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_ga441bc68b100261b3a477ba10bea9f319}{
const char $\ast$ \hyperlink{group__cpeuri_ga441bc68b100261b3a477ba10bea9f319}{cpe\_\-name::cpe\_\-name\_\-get\_\-version} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)}
\label{group__cpeuri_ga441bc68b100261b3a477ba10bea9f319}

\begin{DoxyCompactList}\small\item\em Get CPE name version field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_ga13d719e99ec308110024e87aaeb1309e}{
const char $\ast$ \hyperlink{group__cpeuri_ga13d719e99ec308110024e87aaeb1309e}{cpe\_\-name::cpe\_\-name\_\-get\_\-update} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)}
\label{group__cpeuri_ga13d719e99ec308110024e87aaeb1309e}

\begin{DoxyCompactList}\small\item\em Get CPE name update field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_ga636aef898ccd7b5e7314336a4756add9}{
const char $\ast$ \hyperlink{group__cpeuri_ga636aef898ccd7b5e7314336a4756add9}{cpe\_\-name::cpe\_\-name\_\-get\_\-edition} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)}
\label{group__cpeuri_ga636aef898ccd7b5e7314336a4756add9}

\begin{DoxyCompactList}\small\item\em Get CPE name edition field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_gaeb40ced7dc773e5303354ccd6ddeb07b}{
const char $\ast$ \hyperlink{group__cpeuri_gaeb40ced7dc773e5303354ccd6ddeb07b}{cpe\_\-name::cpe\_\-name\_\-get\_\-language} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)}
\label{group__cpeuri_gaeb40ced7dc773e5303354ccd6ddeb07b}

\begin{DoxyCompactList}\small\item\em Get CPE name language field. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Set functions}
\label{_amgrp8b7ecf2f4bd25da1aae981677901d55d}
Set functions assign values to members of structures except lists.

For lists use add functions. Parameters of set functions are duplicated in memory and need to be freed by caller. \begin{DoxyCompactItemize}
\item 
\hypertarget{group__cpeuri_gae91ca3e6fb76cacf2f2bbf3227fa3050}{
bool \hyperlink{group__cpeuri_gae91ca3e6fb76cacf2f2bbf3227fa3050}{cpe\_\-name::cpe\_\-name\_\-set\_\-part} (struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, \hyperlink{group__cpeuri_ga683b693cae1d4b68f257be24c4cc2ab7}{cpe\_\-part\_\-t} newval)}
\label{group__cpeuri_gae91ca3e6fb76cacf2f2bbf3227fa3050}

\begin{DoxyCompactList}\small\item\em Set CPE name part type field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_gaca661342dca3ba6f24396c3c4d52e995}{
bool \hyperlink{group__cpeuri_gaca661342dca3ba6f24396c3c4d52e995}{cpe\_\-name::cpe\_\-name\_\-set\_\-vendor} (struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, const char $\ast$newval)}
\label{group__cpeuri_gaca661342dca3ba6f24396c3c4d52e995}

\begin{DoxyCompactList}\small\item\em Set CPE name vendor field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_ga9ac1773a3bafd52855835bea7a9fc1d7}{
bool \hyperlink{group__cpeuri_ga9ac1773a3bafd52855835bea7a9fc1d7}{cpe\_\-name::cpe\_\-name\_\-set\_\-product} (struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, const char $\ast$newval)}
\label{group__cpeuri_ga9ac1773a3bafd52855835bea7a9fc1d7}

\begin{DoxyCompactList}\small\item\em Set CPE name product field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_ga6a65fbe17d81d69cac34c4d848f1be35}{
bool \hyperlink{group__cpeuri_ga6a65fbe17d81d69cac34c4d848f1be35}{cpe\_\-name::cpe\_\-name\_\-set\_\-version} (struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, const char $\ast$newval)}
\label{group__cpeuri_ga6a65fbe17d81d69cac34c4d848f1be35}

\begin{DoxyCompactList}\small\item\em Set CPE name version field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_ga1d90b5f12042253d4455efb2d33c4730}{
bool \hyperlink{group__cpeuri_ga1d90b5f12042253d4455efb2d33c4730}{cpe\_\-name::cpe\_\-name\_\-set\_\-update} (struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, const char $\ast$newval)}
\label{group__cpeuri_ga1d90b5f12042253d4455efb2d33c4730}

\begin{DoxyCompactList}\small\item\em Set CPE name update field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_ga8fa070ce8bc4d6811ba68388328c5cea}{
bool \hyperlink{group__cpeuri_ga8fa070ce8bc4d6811ba68388328c5cea}{cpe\_\-name::cpe\_\-name\_\-set\_\-edition} (struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, const char $\ast$newval)}
\label{group__cpeuri_ga8fa070ce8bc4d6811ba68388328c5cea}

\begin{DoxyCompactList}\small\item\em Set CPE name edition field. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpeuri_ga7f069900ea6c421e00a38caff4cf768a}{
bool \hyperlink{group__cpeuri_ga7f069900ea6c421e00a38caff4cf768a}{cpe\_\-name::cpe\_\-name\_\-set\_\-language} (struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, const char $\ast$newval)}
\label{group__cpeuri_ga7f069900ea6c421e00a38caff4cf768a}

\begin{DoxyCompactList}\small\item\em Set CPE name language field. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Other functions}
\label{_amgrpb175402ebe89f00c62233c5453c5a243}
 \begin{DoxyCompactItemize}
\item 
\hypertarget{group__cpeuri_gaf3b2a0e23c35f22e126a9cd221bd6e70}{
bool \hyperlink{group__cpeuri_gaf3b2a0e23c35f22e126a9cd221bd6e70}{cpe\_\-name::cpe\_\-name\_\-match\_\-one} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$against)}
\label{group__cpeuri_gaf3b2a0e23c35f22e126a9cd221bd6e70}

\begin{DoxyCompactList}\small\item\em Check if candidate CPE {\itshape cpe\/} matches CPE {\itshape against\/} according to CPE specification v 2.1. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__cpeuri_gada347ce1193dc959312f0fefbdab9fa3}{cpe\_\-name::cpe\_\-name\_\-match\_\-cpes} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$name, size\_\-t n, struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$$\ast$namelist)
\begin{DoxyCompactList}\small\item\em Check if CPE {\itshape name\/} matches any CPE in {\itshape namelist\/}. \item\end{DoxyCompactList}\item 
char $\ast$ \hyperlink{group__cpeuri_ga855d92cdf74999859b86ef855b8a3170}{cpe\_\-name::cpe\_\-name\_\-get\_\-uri} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)
\begin{DoxyCompactList}\small\item\em Return CPE URI as a new string. \item\end{DoxyCompactList}\item 
int \hyperlink{group__cpeuri_ga5830b374983190bd7a0bdabd93808a03}{cpe\_\-name::cpe\_\-name\_\-write} (const struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe, FILE $\ast$f)
\begin{DoxyCompactList}\small\item\em Write CPE URI {\itshape cpe\/} to file a descriptor {\itshape f\/}. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__cpeuri_gafd151f3ad1a0a5df02ad69643f083c19}{cpe\_\-name::cpe\_\-name\_\-check} (const char $\ast$str)
\begin{DoxyCompactList}\small\item\em Ensures {\itshape str\/} is in proper CPE format. \item\end{DoxyCompactList}\item 
int \hyperlink{group__cpeuri_ga12c833bf057353c756b92570e0cfa047}{cpe\_\-name::cpe\_\-name\_\-match\_\-strs} (const char $\ast$candidate, size\_\-t n, char $\ast$$\ast$targets)
\begin{DoxyCompactList}\small\item\em Match CPE URI {\itshape candidate\/} against list of {\itshape n\/} CPE URIs given by {\itshape targets\/}. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__cpeuri_gaf107a1e1f7eb3aa94d941e003585f6a1}{cpe\_\-name::cpe\_\-name\_\-supported} (void)
\begin{DoxyCompactList}\small\item\em Get supported version of CPE uri XML. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Enumeration Type Documentation}
\hypertarget{group__cpeuri_ga683b693cae1d4b68f257be24c4cc2ab7}{
\index{cpeuri@{cpeuri}!cpe\_\-part\_\-t@{cpe\_\-part\_\-t}}
\index{cpe\_\-part\_\-t@{cpe\_\-part\_\-t}!cpeuri@{cpeuri}}
\subsubsection[{cpe\_\-part\_\-t}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf cpe\_\-part\_\-t}}}
\label{group__cpeuri_ga683b693cae1d4b68f257be24c4cc2ab7}


enumeration of possible CPE parts \begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{CPE\_\-PART\_\-NONE@{CPE\_\-PART\_\-NONE}!cpeuri@{cpeuri}}\index{cpeuri@{cpeuri}!CPE\_\-PART\_\-NONE@{CPE\_\-PART\_\-NONE}}\item[{\em 
\hypertarget{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7a5c781205ea171ce6daacf4202cd8dfcd}{
CPE\_\-PART\_\-NONE}
\label{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7a5c781205ea171ce6daacf4202cd8dfcd}
}]no part specified \index{CPE\_\-PART\_\-HW@{CPE\_\-PART\_\-HW}!cpeuri@{cpeuri}}\index{cpeuri@{cpeuri}!CPE\_\-PART\_\-HW@{CPE\_\-PART\_\-HW}}\item[{\em 
\hypertarget{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7a56e20d753d7bacb0a52ab1e2f77deef9}{
CPE\_\-PART\_\-HW}
\label{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7a56e20d753d7bacb0a52ab1e2f77deef9}
}]hardware \index{CPE\_\-PART\_\-OS@{CPE\_\-PART\_\-OS}!cpeuri@{cpeuri}}\index{cpeuri@{cpeuri}!CPE\_\-PART\_\-OS@{CPE\_\-PART\_\-OS}}\item[{\em 
\hypertarget{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7abcc204922bfb1b0b9aeee3e9c5253150}{
CPE\_\-PART\_\-OS}
\label{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7abcc204922bfb1b0b9aeee3e9c5253150}
}]operating system \index{CPE\_\-PART\_\-APP@{CPE\_\-PART\_\-APP}!cpeuri@{cpeuri}}\index{cpeuri@{cpeuri}!CPE\_\-PART\_\-APP@{CPE\_\-PART\_\-APP}}\item[{\em 
\hypertarget{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7a6a885dbf3b1805209dd77f9c4747850a}{
CPE\_\-PART\_\-APP}
\label{group__cpeuri_gga683b693cae1d4b68f257be24c4cc2ab7a6a885dbf3b1805209dd77f9c4747850a}
}]application \end{description}
\end{Desc}



\subsection{Function Documentation}
\hypertarget{group__cpeuri_gafd151f3ad1a0a5df02ad69643f083c19}{
\index{cpeuri@{cpeuri}!cpe\_\-name\_\-check@{cpe\_\-name\_\-check}}
\index{cpe\_\-name\_\-check@{cpe\_\-name\_\-check}!cpeuri@{cpeuri}}
\subsubsection[{cpe\_\-name\_\-check}]{\setlength{\rightskip}{0pt plus 5cm}bool cpe\_\-name\_\-check (const char $\ast$ {\em str})\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{group__cpeuri_gafd151f3ad1a0a5df02ad69643f083c19}


Ensures {\itshape str\/} is in proper CPE format. 
\begin{DoxyParams}{Parameters}
\item[{\em str}]string to be validated \end{DoxyParams}
\hypertarget{group__cpeuri_ga6fcacf25ee259b5b9343da178722ea1b}{
\index{cpeuri@{cpeuri}!cpe\_\-name\_\-free@{cpe\_\-name\_\-free}}
\index{cpe\_\-name\_\-free@{cpe\_\-name\_\-free}!cpeuri@{cpeuri}}
\subsubsection[{cpe\_\-name\_\-free}]{\setlength{\rightskip}{0pt plus 5cm}void cpe\_\-name\_\-free (struct {\bf cpe\_\-name} $\ast$ {\em cpe})\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{group__cpeuri_ga6fcacf25ee259b5b9343da178722ea1b}


Destructor. Frees any used resources and safely destroys {\itshape cpe\/}.


\begin{DoxyParams}{Parameters}
\item[{\em cpe}]CPE to be deleted \end{DoxyParams}
\hypertarget{group__cpeuri_ga855d92cdf74999859b86ef855b8a3170}{
\index{cpeuri@{cpeuri}!cpe\_\-name\_\-get\_\-uri@{cpe\_\-name\_\-get\_\-uri}}
\index{cpe\_\-name\_\-get\_\-uri@{cpe\_\-name\_\-get\_\-uri}!cpeuri@{cpeuri}}
\subsubsection[{cpe\_\-name\_\-get\_\-uri}]{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ cpe\_\-name\_\-get\_\-uri (const struct {\bf cpe\_\-name} $\ast$ {\em cpe})\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{group__cpeuri_ga855d92cdf74999859b86ef855b8a3170}


Return CPE URI as a new string. \begin{DoxyNote}{Note}
Returned string is newly allocated and is caller's responsibility to free it. 
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
\item[{\em cpe}]CPE to be converted \end{DoxyParams}
\begin{DoxyReturn}{Returns}
CPE URI as string 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
\item[{\em NULL}]on failure \end{DoxyRetVals}
\hypertarget{group__cpeuri_gada347ce1193dc959312f0fefbdab9fa3}{
\index{cpeuri@{cpeuri}!cpe\_\-name\_\-match\_\-cpes@{cpe\_\-name\_\-match\_\-cpes}}
\index{cpe\_\-name\_\-match\_\-cpes@{cpe\_\-name\_\-match\_\-cpes}!cpeuri@{cpeuri}}
\subsubsection[{cpe\_\-name\_\-match\_\-cpes}]{\setlength{\rightskip}{0pt plus 5cm}bool cpe\_\-name\_\-match\_\-cpes (const struct {\bf cpe\_\-name} $\ast$ {\em name}, \/  size\_\-t {\em n}, \/  struct {\bf cpe\_\-name} $\ast$$\ast$ {\em namelist})\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{group__cpeuri_gada347ce1193dc959312f0fefbdab9fa3}


Check if CPE {\itshape name\/} matches any CPE in {\itshape namelist\/}. 
\begin{DoxyParams}{Parameters}
\item[{\em name}]name to be looked-\/up \item[{\em n}]number of items in namelist \item[{\em namelist}]list of names to search in \end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if {\itshape name\/} was found within {\itshape namelist\/} 
\end{DoxyReturn}
\hypertarget{group__cpeuri_ga12c833bf057353c756b92570e0cfa047}{
\index{cpeuri@{cpeuri}!cpe\_\-name\_\-match\_\-strs@{cpe\_\-name\_\-match\_\-strs}}
\index{cpe\_\-name\_\-match\_\-strs@{cpe\_\-name\_\-match\_\-strs}!cpeuri@{cpeuri}}
\subsubsection[{cpe\_\-name\_\-match\_\-strs}]{\setlength{\rightskip}{0pt plus 5cm}int cpe\_\-name\_\-match\_\-strs (const char $\ast$ {\em candidate}, \/  size\_\-t {\em n}, \/  char $\ast$$\ast$ {\em targets})\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{group__cpeuri_ga12c833bf057353c756b92570e0cfa047}


Match CPE URI {\itshape candidate\/} against list of {\itshape n\/} CPE URIs given by {\itshape targets\/}. 
\begin{DoxyParams}{Parameters}
\item[{\em candidate}]candidarte CPE URI as string \item[{\em n}]number of items in targets \item[{\em targets}]list of CPE URIs to be candidate matched against \end{DoxyParams}
\begin{DoxyReturn}{Returns}
index of first URI in targets, that matched 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
\item[{\em -\/1}]on mismatch \item[{\em -\/2}]invalid CPE URI was given as parameter \end{DoxyRetVals}
\hypertarget{group__cpeuri_ga6177bf1f59c75b3cdace48d52a817257}{
\index{cpeuri@{cpeuri}!cpe\_\-name\_\-new@{cpe\_\-name\_\-new}}
\index{cpe\_\-name\_\-new@{cpe\_\-name\_\-new}!cpeuri@{cpeuri}}
\subsubsection[{cpe\_\-name\_\-new}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf cpe\_\-name} $\ast$ cpe\_\-name\_\-new (const char $\ast$ {\em cpe})\hspace{0.3cm}{\ttfamily  \mbox{[}read, inherited\mbox{]}}}}
\label{group__cpeuri_ga6177bf1f59c75b3cdace48d52a817257}


Create a new CPE structure from string {\itshape cpe\/}. \begin{DoxyNote}{Note}
If {\itshape cpe\/} is NULL, empty cpe will be created. 
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
\item[{\em cpe}]CPE URI string to be parsed \end{DoxyParams}
\begin{DoxyReturn}{Returns}
new structure holding parsed data 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
\item[{\em NULL}]on failure \end{DoxyRetVals}
\hypertarget{group__cpeuri_gaf107a1e1f7eb3aa94d941e003585f6a1}{
\index{cpeuri@{cpeuri}!cpe\_\-name\_\-supported@{cpe\_\-name\_\-supported}}
\index{cpe\_\-name\_\-supported@{cpe\_\-name\_\-supported}!cpeuri@{cpeuri}}
\subsubsection[{cpe\_\-name\_\-supported}]{\setlength{\rightskip}{0pt plus 5cm}const char $\ast$ cpe\_\-name\_\-supported (void)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{group__cpeuri_gaf107a1e1f7eb3aa94d941e003585f6a1}


Get supported version of CPE uri XML. \begin{DoxyReturn}{Returns}
version of XML file format 
\end{DoxyReturn}
\hypertarget{group__cpeuri_ga5830b374983190bd7a0bdabd93808a03}{
\index{cpeuri@{cpeuri}!cpe\_\-name\_\-write@{cpe\_\-name\_\-write}}
\index{cpe\_\-name\_\-write@{cpe\_\-name\_\-write}!cpeuri@{cpeuri}}
\subsubsection[{cpe\_\-name\_\-write}]{\setlength{\rightskip}{0pt plus 5cm}int cpe\_\-name\_\-write (const struct {\bf cpe\_\-name} $\ast$ {\em cpe}, \/  FILE $\ast$ {\em f})\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{group__cpeuri_ga5830b374983190bd7a0bdabd93808a03}


Write CPE URI {\itshape cpe\/} to file a descriptor {\itshape f\/}. 
\begin{DoxyParams}{Parameters}
\item[{\em cpe}]cpe to write \item[{\em f}]file descriptor to write CPE URI to \end{DoxyParams}
\begin{DoxyReturn}{Returns}
number of written characters 
\end{DoxyReturn}

\begin{DoxyRetVals}{Return values}
\item[{\em $<$0}]on failure \end{DoxyRetVals}