1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
\hypertarget{structxml__metadata}{
\section{xml\_\-metadata Struct Reference}
\label{structxml__metadata}\index{xml\_\-metadata@{xml\_\-metadata}}
}
XML Metadata.
{\ttfamily \#include $<$oscap.h$>$}\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item
\hypertarget{group__XMLMETA_gab2d06ae1c18bbb3a14def7e7d13100d5}{
struct \hyperlink{structxml__metadata}{xml\_\-metadata} $\ast$ \hyperlink{group__XMLMETA_gab2d06ae1c18bbb3a14def7e7d13100d5}{xml\_\-metadata\_\-new} (void)}
\label{group__XMLMETA_gab2d06ae1c18bbb3a14def7e7d13100d5}
\begin{DoxyCompactList}\small\item\em Constructor of XML metadata. \item\end{DoxyCompactList}\item
\hypertarget{group__XMLMETA_gabcfe5c811a7a43766c694650b386b964}{
void \hyperlink{group__XMLMETA_gabcfe5c811a7a43766c694650b386b964}{xml\_\-metadata\_\-free} (struct \hyperlink{structxml__metadata}{xml\_\-metadata} $\ast$xml)}
\label{group__XMLMETA_gabcfe5c811a7a43766c694650b386b964}
\begin{DoxyCompactList}\small\item\em Destructor of XML metadata structure. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf Getters}\par
{\em \label{_amgrpc9fd0bcb5385a65354c37f1bb504399d}
If return value is a pointer to structure's member, do not free it unless you null the pointer in the structure. }\begin{DoxyCompactItemize}
\item
\hypertarget{group__XMLMETA_ga399dc2ee22ae6b8d44368c33627b1b08}{
const char $\ast$ \hyperlink{group__XMLMETA_ga399dc2ee22ae6b8d44368c33627b1b08}{xml\_\-metadata\_\-get\_\-nspace} (const struct \hyperlink{structxml__metadata}{xml\_\-metadata} $\ast$xml)}
\label{group__XMLMETA_ga399dc2ee22ae6b8d44368c33627b1b08}
\begin{DoxyCompactList}\small\item\em Get namespace attribute from XML metadata. \item\end{DoxyCompactList}\item
\hypertarget{group__XMLMETA_ga1b1a25ec735fda316de16fb5e5097dbb}{
const char $\ast$ \hyperlink{group__XMLMETA_ga1b1a25ec735fda316de16fb5e5097dbb}{xml\_\-metadata\_\-get\_\-lang} (const struct \hyperlink{structxml__metadata}{xml\_\-metadata} $\ast$xml)}
\label{group__XMLMETA_ga1b1a25ec735fda316de16fb5e5097dbb}
\begin{DoxyCompactList}\small\item\em Get xml:lang attribute from XML metadata. \item\end{DoxyCompactList}\item
\hypertarget{group__XMLMETA_gaf1f7d35b8d46c047025e9ca31f216974}{
const char $\ast$ \hyperlink{group__XMLMETA_gaf1f7d35b8d46c047025e9ca31f216974}{xml\_\-metadata\_\-get\_\-URI} (const struct \hyperlink{structxml__metadata}{xml\_\-metadata} $\ast$xml)}
\label{group__XMLMETA_gaf1f7d35b8d46c047025e9ca31f216974}
\begin{DoxyCompactList}\small\item\em Get URI attribute from XML metadata. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Setters}\par
{\em \label{_amgrp6e47466b75bb957a603aa54c079ac8bf}
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__XMLMETA_ga27cd10ad09fa92901d641147f2cace1f}{
bool \hyperlink{group__XMLMETA_ga27cd10ad09fa92901d641147f2cace1f}{xml\_\-metadata\_\-set\_\-nspace} (struct \hyperlink{structxml__metadata}{xml\_\-metadata} $\ast$xml, const char $\ast$new\_\-namespace)}
\label{group__XMLMETA_ga27cd10ad09fa92901d641147f2cace1f}
\begin{DoxyCompactList}\small\item\em Set namespace attribute of XML metadata. \item\end{DoxyCompactList}\item
\hypertarget{group__XMLMETA_gaf4655bb8c0494d6893df1e22f1e2501e}{
bool \hyperlink{group__XMLMETA_gaf4655bb8c0494d6893df1e22f1e2501e}{xml\_\-metadata\_\-set\_\-lang} (struct \hyperlink{structxml__metadata}{xml\_\-metadata} $\ast$xml, const char $\ast$new\_\-lang)}
\label{group__XMLMETA_gaf4655bb8c0494d6893df1e22f1e2501e}
\begin{DoxyCompactList}\small\item\em Set xml:lang attribute of XML metadata. \item\end{DoxyCompactList}\item
\hypertarget{group__XMLMETA_ga2d67981d79eef99f3018bf67fc7fdcb7}{
bool \hyperlink{group__XMLMETA_ga2d67981d79eef99f3018bf67fc7fdcb7}{xml\_\-metadata\_\-set\_\-URI} (struct \hyperlink{structxml__metadata}{xml\_\-metadata} $\ast$xml, const char $\ast$new\_\-uri)}
\label{group__XMLMETA_ga2d67981d79eef99f3018bf67fc7fdcb7}
\begin{DoxyCompactList}\small\item\em Set URI attribute of XML metadata. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item
\hypertarget{structxml__metadata_ad60397598f3e69661a15d3b37e5694ca}{
char $\ast$ \hyperlink{structxml__metadata_ad60397598f3e69661a15d3b37e5694ca}{nspace}}
\label{structxml__metadata_ad60397598f3e69661a15d3b37e5694ca}
\begin{DoxyCompactList}\small\item\em XMLNS (namespace) prefix. \item\end{DoxyCompactList}\item
\hypertarget{structxml__metadata_a6bccccb5056083eb122464fec5c59f15}{
char $\ast$ \hyperlink{structxml__metadata_a6bccccb5056083eb122464fec5c59f15}{URI}}
\label{structxml__metadata_a6bccccb5056083eb122464fec5c59f15}
\begin{DoxyCompactList}\small\item\em XMLNS (namespace) URI. \item\end{DoxyCompactList}\item
\hypertarget{structxml__metadata_a611d972843480f114708a32bee05c2dc}{
char $\ast$ \hyperlink{structxml__metadata_a611d972843480f114708a32bee05c2dc}{lang}}
\label{structxml__metadata_a611d972843480f114708a32bee05c2dc}
\begin{DoxyCompactList}\small\item\em XML lang. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection{Detailed Description}
XML Metadata. Here should be every general attribute that can be present in every xml element such as xml:lang or xml namespace.
The documentation for this struct was generated from the following files:\begin{DoxyCompactItemize}
\item
/home/pvrabec/project/openscap/openscap-\/0.5.12/src/common/elements.h\item
/home/pvrabec/project/openscap/openscap-\/0.5.12/src/common/public/\hyperlink{oscap_8h}{oscap.h}\end{DoxyCompactItemize}
|