Sophie

Sophie

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

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

\hypertarget{structcpe__name}{
\section{cpe\_\-name Struct Reference}
\label{structcpe__name}\index{cpe\_\-name@{cpe\_\-name}}
}


Structure holding Common Platform Enumeration URI data.  


{\ttfamily \#include $<$cpeuri.h$>$}\subsection*{Public Member Functions}
\begin{Indent}{\bf New functions}\par
{\em \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\_\-new} (const char $\ast$cpe)
\begin{DoxyCompactList}\small\item\em Create a new CPE structure from string {\itshape cpe\/}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Free functions}\par
{\em \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\_\-free} (struct \hyperlink{structcpe__name}{cpe\_\-name} $\ast$cpe)
\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Get functions}\par
{\em \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\_\-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\_\-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\_\-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\_\-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\_\-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\_\-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\_\-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}
\end{Indent}
\begin{Indent}{\bf Set functions}\par
{\em \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\_\-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\_\-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\_\-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\_\-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\_\-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\_\-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\_\-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}
\end{Indent}
\begin{Indent}{\bf Other functions}\par
{\em \label{_amgrpb175402ebe89f00c62233c5453c5a243}
 }\begin{DoxyCompactItemize}
\item 
\hypertarget{group__cpeuri_gaf3b2a0e23c35f22e126a9cd221bd6e70}{
bool \hyperlink{group__cpeuri_gaf3b2a0e23c35f22e126a9cd221bd6e70}{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\_\-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\_\-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\_\-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\_\-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\_\-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\_\-supported} (void)
\begin{DoxyCompactList}\small\item\em Get supported version of CPE uri XML. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structcpe__name_ad433e7908f7586074130cf43b9d813aa}{
\hyperlink{group__cpeuri_ga683b693cae1d4b68f257be24c4cc2ab7}{cpe\_\-part\_\-t} {\bfseries part}}
\label{structcpe__name_ad433e7908f7586074130cf43b9d813aa}

\item 
\hypertarget{structcpe__name_adbce382e9b4516c411538b46a0747612}{
char $\ast$ {\bfseries vendor}}
\label{structcpe__name_adbce382e9b4516c411538b46a0747612}

\item 
\hypertarget{structcpe__name_a6e4f3bd8675ea4de3ca8f881d6f0571a}{
char $\ast$ {\bfseries product}}
\label{structcpe__name_a6e4f3bd8675ea4de3ca8f881d6f0571a}

\item 
\hypertarget{structcpe__name_af212568d766cd44c798f4c99ac8de992}{
char $\ast$ {\bfseries version}}
\label{structcpe__name_af212568d766cd44c798f4c99ac8de992}

\item 
\hypertarget{structcpe__name_addaa61e716f3efba07d4256cf90fe49d}{
char $\ast$ {\bfseries update}}
\label{structcpe__name_addaa61e716f3efba07d4256cf90fe49d}

\item 
\hypertarget{structcpe__name_a695d939018a4e5c19871ea13ef255e36}{
char $\ast$ {\bfseries edition}}
\label{structcpe__name_a695d939018a4e5c19871ea13ef255e36}

\item 
\hypertarget{structcpe__name_a8d98ae4436933c16908653b259b343e6}{
char $\ast$ {\bfseries language}}
\label{structcpe__name_a8d98ae4436933c16908653b259b343e6}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Structure holding Common Platform Enumeration URI data. Empty components are set to NULL. 

The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CPE/\hyperlink{cpeuri_8c}{cpeuri.c}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CPE/public/\hyperlink{cpeuri_8h}{cpeuri.h}\end{DoxyCompactItemize}