Sophie

Sophie

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

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

\hypertarget{structcve__reference}{
\section{cve\_\-reference Struct Reference}
\label{structcve__reference}\index{cve\_\-reference@{cve\_\-reference}}
}


Structure holding CVE reference data.  


{\ttfamily \#include $<$cve\_\-priv.h$>$}\subsection*{Public Member Functions}
\begin{Indent}{\bf Export functions}\par
{\em \label{_amgrp5713b34587ba18c5a4561b737b639ae5}
Functions for export structures to XML by XML writer.

Exported structures need to be freed by the caller. }\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__CVEPrivate_gae59a1400aad9211ab55401bdf4c16484}{cve\_\-reference\_\-export} (const struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$refer, xmlTextWriterPtr writer)
\begin{DoxyCompactList}\small\item\em Export CVE reference to XML file. \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 
const char $\ast$ \hyperlink{group__CVE_ga6ac689c9c03f779573986d7c901c5ff9}{cve\_\-reference\_\-get\_\-value} (const struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$ref)
\begin{DoxyCompactList}\small\item\em Get CVE reference values. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVE_ga5b04d3bc45c03951be2264c798b97eff}{cve\_\-reference\_\-get\_\-href} (const struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$ref)
\begin{DoxyCompactList}\small\item\em Get CVE reference href. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVE_ga23c988dca4350a3bee8076ad88509300}{cve\_\-reference\_\-get\_\-type} (const struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$ref)
\begin{DoxyCompactList}\small\item\em Get CVE reference type. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__CVE_ga61b29abe186673b5217a9d90f18432d7}{cve\_\-reference\_\-get\_\-source} (const struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$ref)
\begin{DoxyCompactList}\small\item\em Get CVE reference source. \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 
bool \hyperlink{group__CVE_ga30ac4ef98689f6ae3d8eeb14217d78d2}{cve\_\-reference\_\-set\_\-value} (struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$reference, const char $\ast$new\_\-value)
\begin{DoxyCompactList}\small\item\em Set value of CVE reference. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVE_gaa8fc192a3d0e1184ef93e467acbe99c8}{cve\_\-reference\_\-set\_\-href} (struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$reference, const char $\ast$new\_\-href)
\begin{DoxyCompactList}\small\item\em Set href of CVE reference. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVE_gaf24e38e50ea04ef7b8ab694c596cf617}{cve\_\-reference\_\-set\_\-type} (struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$reference, const char $\ast$new\_\-type)
\begin{DoxyCompactList}\small\item\em Set type of CVE reference. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__CVE_gab98823ef0ada7bfa51799135cd088f64}{cve\_\-reference\_\-set\_\-source} (struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$reference, const char $\ast$new\_\-source)
\begin{DoxyCompactList}\small\item\em Set source of CVE reference. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\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{structcve__reference}{cve\_\-reference} $\ast$ \hyperlink{group__CVE_ga9a27e8650367c36c173d7ba6abb2f553}{cve\_\-reference\_\-new} (void)
\begin{DoxyCompactList}\small\item\em New CVE reference. \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__CVE_gae86eb72dd7a7afb2a5769d9619c79e87}{cve\_\-reference\_\-free} (struct \hyperlink{structcve__reference}{cve\_\-reference} $\ast$ref)
\begin{DoxyCompactList}\small\item\em Free CVE reference. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structcve__reference_a9a21722a1c866607e9a2c67b7a05a9b5}{
struct \hyperlink{structxml__metadata}{xml\_\-metadata} {\bfseries xml}}
\label{structcve__reference_a9a21722a1c866607e9a2c67b7a05a9b5}

\item 
\hypertarget{structcve__reference_ae4759e30c706e42873fdeb5fe6648a77}{
char $\ast$ {\bfseries value}}
\label{structcve__reference_ae4759e30c706e42873fdeb5fe6648a77}

\item 
\hypertarget{structcve__reference_a610db1aba46df65c85c54da8566f7cc8}{
char $\ast$ {\bfseries href}}
\label{structcve__reference_a610db1aba46df65c85c54da8566f7cc8}

\item 
\hypertarget{structcve__reference_ae92d666385d71f000e0530ab2b9d8b0f}{
char $\ast$ {\bfseries type}}
\label{structcve__reference_ae92d666385d71f000e0530ab2b9d8b0f}

\item 
\hypertarget{structcve__reference_abec85d9f41b210de34c98a9726f53b64}{
char $\ast$ {\bfseries source}}
\label{structcve__reference_abec85d9f41b210de34c98a9726f53b64}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Structure holding CVE reference data. 

The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CVE/\hyperlink{cve__priv_8c}{cve\_\-priv.c}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CVE/\hyperlink{cve__priv_8h}{cve\_\-priv.h}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CVE/public/\hyperlink{cve_8h}{cve.h}\end{DoxyCompactItemize}