Sophie

Sophie

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

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

\hypertarget{structcpe__reference}{
\section{cpe\_\-reference Struct Reference}
\label{structcpe__reference}\index{cpe\_\-reference@{cpe\_\-reference}}
}


CPE dictionary item reference.  


{\ttfamily \#include $<$cpedict\_\-priv.h$>$}\subsection*{Public Member Functions}
\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__cpedict_ga80a1387e6ddc4095686c9b5f17c35157}{cpe\_\-reference\_\-get\_\-href} (const struct \hyperlink{structcpe__reference}{cpe\_\-reference} $\ast$item)
\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__reference}{cpe\_\-reference} functions to get href of reference \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{group__cpedict_ga422ff1843f37106e2439f6d7770238b3}{cpe\_\-reference\_\-get\_\-content} (const struct \hyperlink{structcpe__reference}{cpe\_\-reference} $\ast$item)
\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__reference}{cpe\_\-reference} functions to get content of 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__cpedict_gaee00962178fb91213d88ec68a82fed76}{cpe\_\-reference\_\-free} (struct \hyperlink{structcpe__reference}{cpe\_\-reference} $\ast$ref)
\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{structcpe__reference}{cpe\_\-reference} $\ast$ \hyperlink{group__cpedict_ga11b9a25c1ce0016980c0b12a248b4d77}{cpe\_\-reference\_\-new} (void)
\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__cpedict_gadb69703b16983194d938120b22397b7b}{cpe\_\-reference\_\-set\_\-href} (struct \hyperlink{structcpe__reference}{cpe\_\-reference} $\ast$reference, const char $\ast$new\_\-href)
\item 
bool \hyperlink{group__cpedict_gae1d9834dd77e1f06739c3d214d584640}{cpe\_\-reference\_\-set\_\-content} (struct \hyperlink{structcpe__reference}{cpe\_\-reference} $\ast$reference, const char $\ast$new\_\-content)
\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structcpe__reference_ae22f14ca852267eae5cbd5436cc1b0b1}{
struct \hyperlink{structxml__metadata}{xml\_\-metadata} {\bfseries xml}}
\label{structcpe__reference_ae22f14ca852267eae5cbd5436cc1b0b1}

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

\item 
\hypertarget{structcpe__reference_a803f0fba9df643bdfbc89f124f2a072f}{
char $\ast$ {\bfseries content}}
\label{structcpe__reference_a803f0fba9df643bdfbc89f124f2a072f}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
CPE dictionary item reference. 

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