\hypertarget{group__CPEDictPrivate}{ \section{Private members} \label{group__CPEDictPrivate}\index{Private members@{Private members}} } \subsection*{Data Structures} \begin{DoxyCompactItemize} \item struct \hyperlink{structcpe__check}{cpe\_\-check} \begin{DoxyCompactList}\small\item\em Structure representing single CPE check. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__reference}{cpe\_\-reference} \begin{DoxyCompactList}\small\item\em CPE dictionary item reference. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__item}{cpe\_\-item} \begin{DoxyCompactList}\small\item\em Structure representing single CPE dictionary item. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__dict__model}{cpe\_\-dict\_\-model} \begin{DoxyCompactList}\small\item\em Structure representing a CPE dictionary. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__item__metadata}{cpe\_\-item\_\-metadata} \begin{DoxyCompactList}\small\item\em Structure representing metadata of CPE item. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__generator}{cpe\_\-generator} \begin{DoxyCompactList}\small\item\em Structure with information about document. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} \begin{DoxyCompactList}\small\item\em Structure with information about vendor. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__product}{cpe\_\-product} \begin{DoxyCompactList}\small\item\em Product of some vendor. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__version}{cpe\_\-version} \begin{DoxyCompactList}\small\item\em Version of product. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__update}{cpe\_\-update} \begin{DoxyCompactList}\small\item\em Update of product version. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__edition}{cpe\_\-edition} \begin{DoxyCompactList}\small\item\em Edition of product update. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__language}{cpe\_\-language} \begin{DoxyCompactList}\small\item\em Language of product edition. \item\end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Parse functions} \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__dict__model}{cpe\_\-dict\_\-model} $\ast$ \hyperlink{group__CPEDictPrivate_gab330e1ce3e13aaf31edbe7d77f1530e5}{cpe\_\-dict\_\-model::cpe\_\-dict\_\-model\_\-parse\_\-xml} (const struct \hyperlink{structoscap__import__source}{oscap\_\-import\_\-source} $\ast$source) \begin{DoxyCompactList}\small\item\em Function to parse XML to CPE dictionary model. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$ \hyperlink{group__CPEDictPrivate_ga9845ba671dce33efc3ee51af4ae5af7a}{cpe\_\-generator::cpe\_\-generator\_\-parse} (xmlTextReaderPtr reader) \begin{DoxyCompactList}\small\item\em Parse generator part of CPE dictionary XML file. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__item}{cpe\_\-item} $\ast$ \hyperlink{group__CPEDictPrivate_ga9b4c6eb4f498f12ace9be653252ff9ef}{cpe\_\-item::cpe\_\-item\_\-parse} (xmlTextReaderPtr reader) \begin{DoxyCompactList}\small\item\em New dictionary item from XML. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__vendor}{cpe\_\-vendor} $\ast$ \hyperlink{group__CPEDictPrivate_ga364b07e4017b563cb43bb4a87402c872}{cpe\_\-vendor::cpe\_\-vendor\_\-parse} (xmlTextReaderPtr reader) \begin{DoxyCompactList}\small\item\em Parsing function to parse vendors of CPE dictionary. \item\end{DoxyCompactList}\item struct \hyperlink{structcpe__dict__model}{cpe\_\-dict\_\-model} $\ast$ \hyperlink{group__CPEDictPrivate_ga47dbcfc19a27100a459f3ef19d84418f}{cpe\_\-dict\_\-model::cpe\_\-dict\_\-model\_\-parse} (xmlTextReaderPtr reader) \begin{DoxyCompactList}\small\item\em Load new CPE dictionary from XML node. \item\end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Export functions} \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_gaf69b63b2cded5f672bea7e93c730ac2b}{cpe\_\-dict\_\-model::cpe\_\-dict\_\-model\_\-export\_\-xml} (const struct \hyperlink{structcpe__dict__model}{cpe\_\-dict\_\-model} $\ast$dict, const struct \hyperlink{structoscap__export__target}{oscap\_\-export\_\-target} $\ast$target) \begin{DoxyCompactList}\small\item\em Export function for CPE dictionary model. \item\end{DoxyCompactList}\item void \hyperlink{group__CPEDictPrivate_gaa67e4679e6c485673692d0807d0d0a99}{cpe\_\-dict\_\-model::cpe\_\-dict\_\-export} (const struct \hyperlink{structcpe__dict__model}{cpe\_\-dict\_\-model} $\ast$dict, xmlTextWriterPtr writer) \begin{DoxyCompactList}\small\item\em Internal export function for CPE dictionary model. \item\end{DoxyCompactList}\item void \hyperlink{group__CPEDictPrivate_ga43920e3a31e443ef3aa55d00d0ce3e76}{cpe\_\-generator::cpe\_\-generator\_\-export} (const struct \hyperlink{structcpe__generator}{cpe\_\-generator} $\ast$generator, xmlTextWriterPtr writer) \begin{DoxyCompactList}\small\item\em Exporting function for CPE generator -\/ information of XML document. \item\end{DoxyCompactList}\item void \hyperlink{group__CPEDictPrivate_gadb776a9e1ba4acd6ed5761da44fe667b}{cpe\_\-item::cpe\_\-item\_\-export} (const struct \hyperlink{structcpe__item}{cpe\_\-item} $\ast$item, xmlTextWriterPtr writer) \begin{DoxyCompactList}\small\item\em Exporting function for CPE item. \item\end{DoxyCompactList}\item void \hyperlink{group__CPEDictPrivate_gabf5bcc5c74c7e5826325537ecbbfc512}{cpe\_\-vendor::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} \subsection{Function Documentation} \hypertarget{group__CPEDictPrivate_gaa67e4679e6c485673692d0807d0d0a99}{ \index{CPEDictPrivate@{CPEDictPrivate}!cpe\_\-dict\_\-export@{cpe\_\-dict\_\-export}} \index{cpe\_\-dict\_\-export@{cpe\_\-dict\_\-export}!CPEDictPrivate@{CPEDictPrivate}} \subsubsection[{cpe\_\-dict\_\-export}]{\setlength{\rightskip}{0pt plus 5cm}void cpe\_\-dict\_\-export (const struct {\bf cpe\_\-dict\_\-model} $\ast$ {\em dict}, \/ xmlTextWriterPtr {\em writer})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}} \label{group__CPEDictPrivate_gaa67e4679e6c485673692d0807d0d0a99} Internal export function for CPE dictionary model. \begin{DoxyParams}{Parameters} \item[{\em dict}]CPE dictionary \item[{\em writer}]xmlTextWriterPtr representing XML model \end{DoxyParams} \hypertarget{group__CPEDictPrivate_gaf69b63b2cded5f672bea7e93c730ac2b}{ \index{CPEDictPrivate@{CPEDictPrivate}!cpe\_\-dict\_\-model\_\-export\_\-xml@{cpe\_\-dict\_\-model\_\-export\_\-xml}} \index{cpe\_\-dict\_\-model\_\-export\_\-xml@{cpe\_\-dict\_\-model\_\-export\_\-xml}!CPEDictPrivate@{CPEDictPrivate}} \subsubsection[{cpe\_\-dict\_\-model\_\-export\_\-xml}]{\setlength{\rightskip}{0pt plus 5cm}void cpe\_\-dict\_\-model\_\-export\_\-xml (const struct {\bf cpe\_\-dict\_\-model} $\ast$ {\em dict}, \/ const struct {\bf oscap\_\-export\_\-target} $\ast$ {\em target})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}} \label{group__CPEDictPrivate_gaf69b63b2cded5f672bea7e93c730ac2b} Export function for CPE dictionary model. \begin{DoxyParams}{Parameters} \item[{\em dict}]CPE dictionary structure\item[{\em target}]OSCAP exporting target \end{DoxyParams} \hypertarget{group__CPEDictPrivate_ga47dbcfc19a27100a459f3ef19d84418f}{ \index{CPEDictPrivate@{CPEDictPrivate}!cpe\_\-dict\_\-model\_\-parse@{cpe\_\-dict\_\-model\_\-parse}} \index{cpe\_\-dict\_\-model\_\-parse@{cpe\_\-dict\_\-model\_\-parse}!CPEDictPrivate@{CPEDictPrivate}} \subsubsection[{cpe\_\-dict\_\-model\_\-parse}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf cpe\_\-dict\_\-model} $\ast$ cpe\_\-dict\_\-model\_\-parse (xmlTextReaderPtr {\em reader})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}} \label{group__CPEDictPrivate_ga47dbcfc19a27100a459f3ef19d84418f} Load new CPE dictionary from XML node. \begin{DoxyParams}{Parameters} \item[{\em node}]file name of dictionary to import \end{DoxyParams} \begin{DoxyReturn}{Returns} new dictionary \end{DoxyReturn} \begin{DoxyRetVals}{Return values} \item[{\em NULL}]on failure \end{DoxyRetVals} \hypertarget{group__CPEDictPrivate_gab330e1ce3e13aaf31edbe7d77f1530e5}{ \index{CPEDictPrivate@{CPEDictPrivate}!cpe\_\-dict\_\-model\_\-parse\_\-xml@{cpe\_\-dict\_\-model\_\-parse\_\-xml}} \index{cpe\_\-dict\_\-model\_\-parse\_\-xml@{cpe\_\-dict\_\-model\_\-parse\_\-xml}!CPEDictPrivate@{CPEDictPrivate}} \subsubsection[{cpe\_\-dict\_\-model\_\-parse\_\-xml}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf cpe\_\-dict\_\-model} $\ast$ cpe\_\-dict\_\-model\_\-parse\_\-xml (const struct {\bf oscap\_\-import\_\-source} $\ast$ {\em source})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}} \label{group__CPEDictPrivate_gab330e1ce3e13aaf31edbe7d77f1530e5} Function to parse XML to CPE dictionary model. \begin{DoxyParams}{Parameters} \item[{\em source}]Structure of name and encoding of importing XML file \end{DoxyParams} \hypertarget{group__CPEDictPrivate_ga43920e3a31e443ef3aa55d00d0ce3e76}{ \index{CPEDictPrivate@{CPEDictPrivate}!cpe\_\-generator\_\-export@{cpe\_\-generator\_\-export}} \index{cpe\_\-generator\_\-export@{cpe\_\-generator\_\-export}!CPEDictPrivate@{CPEDictPrivate}} \subsubsection[{cpe\_\-generator\_\-export}]{\setlength{\rightskip}{0pt plus 5cm}void cpe\_\-generator\_\-export (const struct {\bf cpe\_\-generator} $\ast$ {\em generator}, \/ xmlTextWriterPtr {\em writer})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}} \label{group__CPEDictPrivate_ga43920e3a31e443ef3aa55d00d0ce3e76} Exporting function for CPE generator -\/ information of XML document. \begin{DoxyParams}{Parameters} \item[{\em generator}]CPE generator structure\item[{\em writer}]xmlTextWriterPtr representing XML model \end{DoxyParams} \hypertarget{group__CPEDictPrivate_ga9845ba671dce33efc3ee51af4ae5af7a}{ \index{CPEDictPrivate@{CPEDictPrivate}!cpe\_\-generator\_\-parse@{cpe\_\-generator\_\-parse}} \index{cpe\_\-generator\_\-parse@{cpe\_\-generator\_\-parse}!CPEDictPrivate@{CPEDictPrivate}} \subsubsection[{cpe\_\-generator\_\-parse}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf cpe\_\-generator} $\ast$ cpe\_\-generator\_\-parse (xmlTextReaderPtr {\em reader})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}} \label{group__CPEDictPrivate_ga9845ba671dce33efc3ee51af4ae5af7a} Parse generator part of CPE dictionary XML file. \begin{DoxyParams}{Parameters} \item[{\em reader}]xmlTextReaderPtr representing XML model\end{DoxyParams} \begin{DoxyReturn}{Returns} new structure \hyperlink{structcpe__generator}{cpe\_\-generator} \end{DoxyReturn} \hypertarget{group__CPEDictPrivate_gadb776a9e1ba4acd6ed5761da44fe667b}{ \index{CPEDictPrivate@{CPEDictPrivate}!cpe\_\-item\_\-export@{cpe\_\-item\_\-export}} \index{cpe\_\-item\_\-export@{cpe\_\-item\_\-export}!CPEDictPrivate@{CPEDictPrivate}} \subsubsection[{cpe\_\-item\_\-export}]{\setlength{\rightskip}{0pt plus 5cm}void cpe\_\-item\_\-export (const struct {\bf cpe\_\-item} $\ast$ {\em item}, \/ xmlTextWriterPtr {\em writer})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}} \label{group__CPEDictPrivate_gadb776a9e1ba4acd6ed5761da44fe667b} Exporting function for CPE item. \begin{DoxyParams}{Parameters} \item[{\em item}]CPE item structure\item[{\em writer}]xmlTextWriterPtr representing XML model \end{DoxyParams} \hypertarget{group__CPEDictPrivate_ga9b4c6eb4f498f12ace9be653252ff9ef}{ \index{CPEDictPrivate@{CPEDictPrivate}!cpe\_\-item\_\-parse@{cpe\_\-item\_\-parse}} \index{cpe\_\-item\_\-parse@{cpe\_\-item\_\-parse}!CPEDictPrivate@{CPEDictPrivate}} \subsubsection[{cpe\_\-item\_\-parse}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf cpe\_\-item} $\ast$ cpe\_\-item\_\-parse (xmlTextReaderPtr {\em reader})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}} \label{group__CPEDictPrivate_ga9b4c6eb4f498f12ace9be653252ff9ef} New dictionary item from XML. \begin{DoxyParams}{Parameters} \item[{\em node}]cpe-\/item node \end{DoxyParams} \begin{DoxyReturn}{Returns} new dictionary item \end{DoxyReturn} \begin{DoxyRetVals}{Return values} \item[{\em NULL}]on failure \end{DoxyRetVals} \hypertarget{group__CPEDictPrivate_gabf5bcc5c74c7e5826325537ecbbfc512}{ \index{CPEDictPrivate@{CPEDictPrivate}!cpe\_\-vendor\_\-export@{cpe\_\-vendor\_\-export}} \index{cpe\_\-vendor\_\-export@{cpe\_\-vendor\_\-export}!CPEDictPrivate@{CPEDictPrivate}} \subsubsection[{cpe\_\-vendor\_\-export}]{\setlength{\rightskip}{0pt plus 5cm}void cpe\_\-vendor\_\-export (const struct {\bf cpe\_\-vendor} $\ast$ {\em vendor}, \/ xmlTextWriterPtr {\em writer})\hspace{0.3cm}{\ttfamily \mbox{[}inherited\mbox{]}}}} \label{group__CPEDictPrivate_gabf5bcc5c74c7e5826325537ecbbfc512} Exporting function for CPE vendor. \begin{DoxyParams}{Parameters} \item[{\em vendor}]CPE vendor structure\item[{\em writer}]xmlTextWriterPtr representing XML model \end{DoxyParams} \hypertarget{group__CPEDictPrivate_ga364b07e4017b563cb43bb4a87402c872}{ \index{CPEDictPrivate@{CPEDictPrivate}!cpe\_\-vendor\_\-parse@{cpe\_\-vendor\_\-parse}} \index{cpe\_\-vendor\_\-parse@{cpe\_\-vendor\_\-parse}!CPEDictPrivate@{CPEDictPrivate}} \subsubsection[{cpe\_\-vendor\_\-parse}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf cpe\_\-vendor} $\ast$ cpe\_\-vendor\_\-parse (xmlTextReaderPtr {\em reader})\hspace{0.3cm}{\ttfamily \mbox{[}read, inherited\mbox{]}}}} \label{group__CPEDictPrivate_ga364b07e4017b563cb43bb4a87402c872} Parsing function to parse vendors of CPE dictionary. \begin{DoxyParams}{Parameters} \item[{\em reader}]xmlTextReaderPtr representing XML model\end{DoxyParams} \begin{DoxyReturn}{Returns} new structure \hyperlink{structcpe__vendor}{cpe\_\-vendor} \end{DoxyReturn}