\hypertarget{oval__sysInfo_8c}{ \section{/home/pvrabec/openscap/openscap-\/0.5.7/src/OVAL/oval\_\-sysInfo.c File Reference} \label{oval__sysInfo_8c}\index{/home/pvrabec/openscap/openscap-\/0.5.7/src/OVAL/oval\_\-sysInfo.c@{/home/pvrabec/openscap/openscap-\/0.5.7/src/OVAL/oval\_\-sysInfo.c}} } Open Vulnerability and Assessment Language. {\ttfamily \#include $<$stdlib.h$>$}\par {\ttfamily \#include $<$stdio.h$>$}\par {\ttfamily \#include $<$string.h$>$}\par {\ttfamily \#include \char`\"{}oval\_\-system\_\-characteristics\_\-impl.h\char`\"{}}\par {\ttfamily \#include \char`\"{}oval\_\-collection\_\-impl.h\char`\"{}}\par {\ttfamily \#include \char`\"{}oval\_\-agent\_\-api\_\-impl.h\char`\"{}}\par {\ttfamily \#include \char`\"{}../common/util.h\char`\"{}}\par {\ttfamily \#include \char`\"{}../common/public/debug.h\char`\"{}}\par \subsection*{Data Structures} \begin{DoxyCompactItemize} \item struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} \begin{DoxyCompactList}\small\item\em General instrumented host description. \item\end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Typedefs} \begin{DoxyCompactItemize} \item \hypertarget{oval__sysInfo_8c_a0e8dfe13425c75bdef963486ff9ecf33}{ typedef struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} {\bfseries oval\_\-sysinfo\_\-t}} \label{oval__sysInfo_8c_a0e8dfe13425c75bdef963486ff9ecf33} \end{DoxyCompactItemize} \subsection*{Functions} \begin{DoxyCompactItemize} \item \hypertarget{oval__sysInfo_8c_aaa4bb037a81191fdbc4aa263082fed33}{ struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$ {\bfseries oval\_\-sysinfo\_\-new} (struct \hyperlink{structoval__syschar__model}{oval\_\-syschar\_\-model} $\ast$model)} \label{oval__sysInfo_8c_aaa4bb037a81191fdbc4aa263082fed33} \item \hypertarget{oval__sysInfo_8c_a2866bc725cec9baf18301b65c89c36f4}{ bool {\bfseries oval\_\-sysinfo\_\-is\_\-valid} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo)} \label{oval__sysInfo_8c_a2866bc725cec9baf18301b65c89c36f4} \item \hypertarget{oval__sysInfo_8c_a1996b8203c03b7986f12742d012d51ce}{ bool {\bfseries oval\_\-sysinfo\_\-is\_\-locked} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo)} \label{oval__sysInfo_8c_a1996b8203c03b7986f12742d012d51ce} \item \hypertarget{oval__sysInfo_8c_af29511a75ec7bb9e63e9d44410c0f6e6}{ struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$ {\bfseries oval\_\-sysinfo\_\-clone} (struct \hyperlink{structoval__syschar__model}{oval\_\-syschar\_\-model} $\ast$new\_\-model, struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$old\_\-sysinfo)} \label{oval__sysInfo_8c_af29511a75ec7bb9e63e9d44410c0f6e6} \item \hypertarget{oval__sysInfo_8c_a4c44ea33b7f453f07efc319f4a45e60a}{ void {\bfseries oval\_\-sysinfo\_\-free} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo)} \label{oval__sysInfo_8c_a4c44ea33b7f453f07efc319f4a45e60a} \item \hypertarget{oval__sysInfo_8c_a7f7b8f72421c8f39db0611c9d84c7666}{ bool {\bfseries oval\_\-sysinfo\_\-iterator\_\-has\_\-more} (struct \hyperlink{structoval__sysinfo__iterator}{oval\_\-sysinfo\_\-iterator} $\ast$oc\_\-sysinfo)} \label{oval__sysInfo_8c_a7f7b8f72421c8f39db0611c9d84c7666} \item \hypertarget{oval__sysInfo_8c_ad63519dff71653d6f29b635434d96a81}{ struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$ {\bfseries oval\_\-sysinfo\_\-iterator\_\-next} (struct \hyperlink{structoval__sysinfo__iterator}{oval\_\-sysinfo\_\-iterator} $\ast$oc\_\-sysinfo)} \label{oval__sysInfo_8c_ad63519dff71653d6f29b635434d96a81} \item \hypertarget{oval__sysInfo_8c_a02f65c9417c3f26fe36f1da056f5c8bc}{ void {\bfseries oval\_\-sysinfo\_\-iterator\_\-free} (struct \hyperlink{structoval__sysinfo__iterator}{oval\_\-sysinfo\_\-iterator} $\ast$oc\_\-sysinfo)} \label{oval__sysInfo_8c_a02f65c9417c3f26fe36f1da056f5c8bc} \item \hypertarget{oval__sysInfo_8c_a942fb0c7bc4594688c15164496d062fc}{ char $\ast$ {\bfseries oval\_\-sysinfo\_\-get\_\-os\_\-name} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo)} \label{oval__sysInfo_8c_a942fb0c7bc4594688c15164496d062fc} \item \hypertarget{oval__sysInfo_8c_a8ed62eafd6ce7863c541880e7ec8c1c3}{ void {\bfseries oval\_\-sysinfo\_\-set\_\-os\_\-name} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo, char $\ast$osName)} \label{oval__sysInfo_8c_a8ed62eafd6ce7863c541880e7ec8c1c3} \item \hypertarget{oval__sysInfo_8c_ab0f1738195880c43ccae02567e407697}{ char $\ast$ {\bfseries oval\_\-sysinfo\_\-get\_\-os\_\-version} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo)} \label{oval__sysInfo_8c_ab0f1738195880c43ccae02567e407697} \item \hypertarget{oval__sysInfo_8c_a69e7f0de6b25b956d0cdead69d4f037e}{ void {\bfseries oval\_\-sysinfo\_\-set\_\-os\_\-version} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo, char $\ast$osVersion)} \label{oval__sysInfo_8c_a69e7f0de6b25b956d0cdead69d4f037e} \item \hypertarget{oval__sysInfo_8c_aba0cfba1614cd1633e160f12a71d6b90}{ char $\ast$ {\bfseries oval\_\-sysinfo\_\-get\_\-os\_\-architecture} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo)} \label{oval__sysInfo_8c_aba0cfba1614cd1633e160f12a71d6b90} \item \hypertarget{oval__sysInfo_8c_ab52004c51fee92b6073c78e8ca00bab5}{ void {\bfseries oval\_\-sysinfo\_\-set\_\-os\_\-architecture} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo, char $\ast$osArchitecture)} \label{oval__sysInfo_8c_ab52004c51fee92b6073c78e8ca00bab5} \item \hypertarget{oval__sysInfo_8c_ae661a6255616ef6be4dc71cee822ef90}{ char $\ast$ {\bfseries oval\_\-sysinfo\_\-get\_\-primary\_\-host\_\-name} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo)} \label{oval__sysInfo_8c_ae661a6255616ef6be4dc71cee822ef90} \item \hypertarget{oval__sysInfo_8c_a1867f6a073b0a42b84ad48f31b0e8c62}{ void {\bfseries oval\_\-sysinfo\_\-set\_\-primary\_\-host\_\-name} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo, char $\ast$primaryHostName)} \label{oval__sysInfo_8c_a1867f6a073b0a42b84ad48f31b0e8c62} \item \hypertarget{oval__sysInfo_8c_a9bf377586f0522b227534c1d2c213190}{ struct \hyperlink{structoval__sysint__iterator}{oval\_\-sysint\_\-iterator} $\ast$ {\bfseries oval\_\-sysinfo\_\-get\_\-interfaces} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo)} \label{oval__sysInfo_8c_a9bf377586f0522b227534c1d2c213190} \item \hypertarget{oval__sysInfo_8c_a0b772b0e9b2cf0519ab26d12b8422837}{ void {\bfseries oval\_\-sysinfo\_\-add\_\-interface} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo, struct \hyperlink{structoval__sysint}{oval\_\-sysint} $\ast$interface)} \label{oval__sysInfo_8c_a0b772b0e9b2cf0519ab26d12b8422837} \item \hypertarget{oval__sysInfo_8c_aafb898492ab835e64757297d01b898af}{ int {\bfseries oval\_\-sysinfo\_\-parse\_\-tag} (xmlTextReaderPtr reader, struct \hyperlink{structoval__parser__context}{oval\_\-parser\_\-context} $\ast$context)} \label{oval__sysInfo_8c_aafb898492ab835e64757297d01b898af} \item \hypertarget{oval__sysInfo_8c_affe5fdba6e573b5d775cc363e3c8186f}{ void {\bfseries oval\_\-sysinfo\_\-to\_\-print} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo, char $\ast$indent, int idx)} \label{oval__sysInfo_8c_affe5fdba6e573b5d775cc363e3c8186f} \item \hypertarget{oval__sysInfo_8c_a6fca82dc1ea554eb95a39bfef4e031b2}{ void {\bfseries oval\_\-sysinfo\_\-to\_\-dom} (struct \hyperlink{structoval__sysinfo}{oval\_\-sysinfo} $\ast$sysinfo, xmlDoc $\ast$doc, xmlNode $\ast$tag\_\-parent)} \label{oval__sysInfo_8c_a6fca82dc1ea554eb95a39bfef4e031b2} \end{DoxyCompactItemize} \subsection{Detailed Description} Open Vulnerability and Assessment Language. See more details at \href{http://oval.mitre.org/}{\tt http://oval.mitre.org/}