Sophie

Sophie

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

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

\hypertarget{structcpe__vendor}{
\section{cpe\_\-vendor Struct Reference}
\label{structcpe__vendor}\index{cpe\_\-vendor@{cpe\_\-vendor}}
}


Structure with information about vendor.  


{\ttfamily \#include $<$cpedict\_\-priv.h$>$}\subsection*{Public Member Functions}
\begin{Indent}{\bf Parse functions}\par
{\em \label{_amgrp55bde346b0631e090bfc4a3be713ee4c}
Functions for parsing structures from XML.

Return value is new structure filled by content of XML file represented by XML reader or import source structure. Structure needs to be freed by the caller. }\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} $\ast$ \hyperlink{group__CPEDictPrivate_ga364b07e4017b563cb43bb4a87402c872}{cpe\_\-vendor\_\-parse} (xmlTextReaderPtr reader)
\begin{DoxyCompactList}\small\item\em Parsing function to parse vendors of CPE dictionary. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\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__CPEDictPrivate_gabf5bcc5c74c7e5826325537ecbbfc512}{cpe\_\-vendor\_\-export} (const struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} $\ast$vendor, xmlTextWriterPtr writer)
\begin{DoxyCompactList}\small\item\em Exporting function for CPE vendor. \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__cpedict_ga0ed31a5b9f0a84d393d351d1ff43daab}{cpe\_\-vendor\_\-get\_\-value} (const struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} $\ast$item)
\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__vendor}{cpe\_\-vendor} functions to get vendor value \item\end{DoxyCompactList}\item 
struct \hyperlink{structoscap__title__iterator}{oscap\_\-title\_\-iterator} $\ast$ \hyperlink{group__cpedict_gac8e931fd61cb41a7562308f33d339361}{cpe\_\-vendor\_\-get\_\-titles} (const struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} $\ast$item)
\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__vendor}{cpe\_\-vendor} functions to get vendor titles \item\end{DoxyCompactList}\item 
struct \hyperlink{structcpe__product__iterator}{cpe\_\-product\_\-iterator} $\ast$ \hyperlink{group__cpedict_ga797f152d36ab9e6b1ff20b87f2e9a051}{cpe\_\-vendor\_\-get\_\-products} (const struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} $\ast$item)
\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__vendor}{cpe\_\-vendor} functions to get vendor products \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_gae194510d5f400ce784dc5ac6727e8b41}{cpe\_\-vendor\_\-free} (struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} $\ast$vendor)
\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__vendor}{cpe\_\-vendor} $\ast$ \hyperlink{group__cpedict_ga6ba10d9ccfea65427a9e6133e259b57d}{cpe\_\-vendor\_\-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_gad637b5f537cacc1fe65e2afa9b5b72c5}{cpe\_\-vendor\_\-set\_\-value} (struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} $\ast$vendor, const char $\ast$new\_\-value)
\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Add functions}\par
{\em \label{_amgrpaabced06c8a2e8c15954ce4b1e334884}
Functions to add member to list.

Return value is true if added succesfuly or false in case of error. }\begin{DoxyCompactItemize}
\item 
bool \hyperlink{group__cpedict_ga242e77edd6e176a988c87231274626b5}{cpe\_\-vendor\_\-add\_\-title} (struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} $\ast$vendor, struct \hyperlink{structoscap__title}{oscap\_\-title} $\ast$new\_\-title)
\item 
bool \hyperlink{group__cpedict_gaf34a55519fab75d3165151f11c0aa2d4}{cpe\_\-vendor\_\-add\_\-product} (struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} $\ast$vendor, struct \hyperlink{structcpe__product}{cpe\_\-product} $\ast$new\_\-product)
\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
Structure with information about vendor. 

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_8h}{cpedict\_\-priv.h}\item 
/home/pvrabec/openscap/openscap-\/0.5.7/src/CPE/public/\hyperlink{cpedict_8h}{cpedict.h}\end{DoxyCompactItemize}