Sophie

Sophie

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

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

\hypertarget{structcpe__platform}{
\section{cpe\_\-platform Struct Reference}
\label{structcpe__platform}\index{cpe\_\-platform@{cpe\_\-platform}}
}


Single platform representation in CPE language.  


{\ttfamily \#include $<$cpelang\_\-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__platform}{cpe\_\-platform} $\ast$ \hyperlink{group__CPELangPrivate_ga3a28cde95881a1bea9ae7b80805330a0}{cpe\_\-platform\_\-parse} (xmlTextReaderPtr reader)
\begin{DoxyCompactList}\small\item\em Parse CPE platform structure. \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__CPELangPrivate_ga2c4f5925542dce93acf237ad43bb665d}{cpe\_\-platform\_\-export} (const struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$platform, xmlTextWriterPtr writer)
\begin{DoxyCompactList}\small\item\em Function for export CPE platform element. \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__cpelang_ga8b9494431d8599fe802361433231436d}{
const char $\ast$ \hyperlink{group__cpelang_ga8b9494431d8599fe802361433231436d}{cpe\_\-platform\_\-get\_\-id} (const struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$item)}
\label{group__cpelang_ga8b9494431d8599fe802361433231436d}

\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__platform}{cpe\_\-platform} functions to get id \item\end{DoxyCompactList}\item 
\hypertarget{group__cpelang_ga11161328967d030f8d71608b27415676}{
const char $\ast$ \hyperlink{group__cpelang_ga11161328967d030f8d71608b27415676}{cpe\_\-platform\_\-get\_\-remark} (const struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$item)}
\label{group__cpelang_ga11161328967d030f8d71608b27415676}

\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__platform}{cpe\_\-platform} functions to get remark \item\end{DoxyCompactList}\item 
\hypertarget{group__cpelang_gab6a97be125225b1d698e7e6f9c0001f1}{
struct \hyperlink{structoscap__title__iterator}{oscap\_\-title\_\-iterator} $\ast$ \hyperlink{group__cpelang_gab6a97be125225b1d698e7e6f9c0001f1}{cpe\_\-platform\_\-get\_\-titles} (const struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$item)}
\label{group__cpelang_gab6a97be125225b1d698e7e6f9c0001f1}

\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__platform}{cpe\_\-platform} functions to get titles \item\end{DoxyCompactList}\item 
\hypertarget{group__cpelang_ga66c92792dad71233eaca532a143aefac}{
struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$ \hyperlink{group__cpelang_ga66c92792dad71233eaca532a143aefac}{cpe\_\-platform\_\-get\_\-expr} (const struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$item)}
\label{group__cpelang_ga66c92792dad71233eaca532a143aefac}

\begin{DoxyCompactList}\small\item\em \hyperlink{structcpe__platform}{cpe\_\-platform} functions to get test expression \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Add functions}\par
{\em \label{_amgrpaabced06c8a2e8c15954ce4b1e334884}
Get XML namespace from CPE lang model

Functions to add member to list. Return value is true if added succesfuly or false in case of error. }\begin{DoxyCompactItemize}
\item 
\hypertarget{group__cpelang_ga64da424f8bd783da762bee8b766e247d}{
bool \hyperlink{group__cpelang_ga64da424f8bd783da762bee8b766e247d}{cpe\_\-platform\_\-add\_\-title} (struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$platform, struct \hyperlink{structoscap__title}{oscap\_\-title} $\ast$title)}
\label{group__cpelang_ga64da424f8bd783da762bee8b766e247d}

\begin{DoxyCompactList}\small\item\em Add title to platform. \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 
\hypertarget{group__cpelang_gad83641ba4fb292a923b7ff5753b4070d}{
struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$ \hyperlink{group__cpelang_gad83641ba4fb292a923b7ff5753b4070d}{cpe\_\-platform\_\-new} (void)}
\label{group__cpelang_gad83641ba4fb292a923b7ff5753b4070d}

\begin{DoxyCompactList}\small\item\em Constructor of CPE Platform. \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__cpelang_gad59b55938ebbe388218016cb67fbac50}{
bool \hyperlink{group__cpelang_gad59b55938ebbe388218016cb67fbac50}{cpe\_\-platform\_\-set\_\-id} (struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$platform, const char $\ast$new\_\-id)}
\label{group__cpelang_gad59b55938ebbe388218016cb67fbac50}

\begin{DoxyCompactList}\small\item\em Set ID of CPE platform. \item\end{DoxyCompactList}\item 
\hypertarget{group__cpelang_ga301685568659041bd2a47c958800ddbc}{
bool \hyperlink{group__cpelang_ga301685568659041bd2a47c958800ddbc}{cpe\_\-platform\_\-set\_\-remark} (struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$platform, const char $\ast$new\_\-remark)}
\label{group__cpelang_ga301685568659041bd2a47c958800ddbc}

\begin{DoxyCompactList}\small\item\em Set remark of CPE platform. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__cpelang_gaa9bc76ff30e7f9faa4def792404c1a62}{cpe\_\-platform\_\-set\_\-expr} (struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$platform, struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$expr)
\begin{DoxyCompactList}\small\item\em Set evaluation expression for this CPE platform. \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 
\hypertarget{group__cpelang_ga1bcb12e96db31e6b57be749fd5ba3b3e}{
void \hyperlink{group__cpelang_ga1bcb12e96db31e6b57be749fd5ba3b3e}{cpe\_\-platform\_\-free} (struct \hyperlink{structcpe__platform}{cpe\_\-platform} $\ast$platform)}
\label{group__cpelang_ga1bcb12e96db31e6b57be749fd5ba3b3e}

\begin{DoxyCompactList}\small\item\em Free function of CPE Platform. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structcpe__platform_a3b3b18d19e6e4f1b7b7be5211410154b}{
struct \hyperlink{structxml__metadata}{xml\_\-metadata} {\bfseries xml}}
\label{structcpe__platform_a3b3b18d19e6e4f1b7b7be5211410154b}

\item 
\hypertarget{structcpe__platform_aae91fa4786ad57827ff2e155123a9827}{
struct \hyperlink{structoscap__list}{oscap\_\-list} $\ast$ {\bfseries titles}}
\label{structcpe__platform_aae91fa4786ad57827ff2e155123a9827}

\item 
\hypertarget{structcpe__platform_ac81ce4c48ed2fe9b9a6a3a0bc30cbc8f}{
char $\ast$ {\bfseries id}}
\label{structcpe__platform_ac81ce4c48ed2fe9b9a6a3a0bc30cbc8f}

\item 
\hypertarget{structcpe__platform_a17cd31049cf21d4fef90fe1b83d4b07e}{
char $\ast$ {\bfseries remark}}
\label{structcpe__platform_a17cd31049cf21d4fef90fe1b83d4b07e}

\item 
\hypertarget{structcpe__platform_a0338e3ce90b9e10f9594b3e1cff0cee9}{
struct \hyperlink{structcpe__testexpr}{cpe\_\-testexpr} $\ast$ {\bfseries expr}}
\label{structcpe__platform_a0338e3ce90b9e10f9594b3e1cff0cee9}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Single platform representation in CPE language. 

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