Sophie

Sophie

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

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

\hypertarget{group__PROBESCMP}{
\section{Entity comparison}
\label{group__PROBESCMP}\index{Entity comparison@{Entity comparison}}
}


Comparison operations on entities in probes.  
\subsection*{Files}
\begin{DoxyCompactItemize}
\item 
file \hyperlink{probe-entcmp_8h}{probe-\/entcmp.h}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_gac76c8c27a46788b61119ece0a856b46c}{probe\_\-ent\_\-result\_\-bychk} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$res\_\-lst, \hyperlink{group__OVALDEF_ga926ba821c14d2faac9a23b8908c23d70}{oval\_\-check\_\-t} check)
\begin{DoxyCompactList}\small\item\em Compute the overall result. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_gafcfd303effe54aa0944eb1fb3239f1e7}{probe\_\-ent\_\-result\_\-byopr} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$res\_\-lst, \hyperlink{group__OVALDEF_gad5debd6ffe0c38c6de9108e86ee237e6}{oval\_\-operator\_\-t} operator)
\begin{DoxyCompactList}\small\item\em Compute the overall result. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_ga1803ec0d8ab14d7257457bcf2d2aee39}{probe\_\-entobj\_\-cmp} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent\_\-obj, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val)
\begin{DoxyCompactList}\small\item\em Compare object entity's content with a value. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_gaf7a569fc0abb09980c2d2550fff7912d}{probe\_\-entste\_\-cmp} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent\_\-ste, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent\_\-itm)
\begin{DoxyCompactList}\small\item\em Compare state entity's content with a item entity's value. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_gaed2ba0c447a642376277d827572300f6}{probe\_\-ent\_\-cmp\_\-binary} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$val1, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val2, \hyperlink{group__OVALDEF_ga3f00a63428c2b5db781a9c87ec73acd1}{oval\_\-operation\_\-t} op)
\begin{DoxyCompactList}\small\item\em Compare two binary values. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_ga1ec23cec30188459da8ce24c2eb5518d}{probe\_\-ent\_\-cmp\_\-bool} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$val1, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val2, \hyperlink{group__OVALDEF_ga3f00a63428c2b5db781a9c87ec73acd1}{oval\_\-operation\_\-t} op)
\begin{DoxyCompactList}\small\item\em Compare two boolean values. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_ga757412dca11a0195037eb958d37e9b6b}{probe\_\-ent\_\-cmp\_\-evr} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$val1, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val2, \hyperlink{group__OVALDEF_ga3f00a63428c2b5db781a9c87ec73acd1}{oval\_\-operation\_\-t} op)
\begin{DoxyCompactList}\small\item\em Compare two epoch-\/version-\/release values. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_ga026cb1dd03de0ad2ecec589991a0828f}{probe\_\-ent\_\-cmp\_\-filesetrev} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$val1, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val2, \hyperlink{group__OVALDEF_ga3f00a63428c2b5db781a9c87ec73acd1}{oval\_\-operation\_\-t} op)
\begin{DoxyCompactList}\small\item\em Compare two values. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_ga4a70b71edba51997c30fc20f0744e54e}{probe\_\-ent\_\-cmp\_\-float} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$val1, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val2, \hyperlink{group__OVALDEF_ga3f00a63428c2b5db781a9c87ec73acd1}{oval\_\-operation\_\-t} op)
\begin{DoxyCompactList}\small\item\em Compare two floating point values. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_ga6d7a0a42dad35778c92ddd1e6c013ae1}{probe\_\-ent\_\-cmp\_\-int} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$val1, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val2, \hyperlink{group__OVALDEF_ga3f00a63428c2b5db781a9c87ec73acd1}{oval\_\-operation\_\-t} op)
\begin{DoxyCompactList}\small\item\em Compare two integer values. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_ga76fa88ac9bf6a213a4a78f8afc9828c5}{probe\_\-ent\_\-cmp\_\-ios} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$val1, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val2, \hyperlink{group__OVALDEF_ga3f00a63428c2b5db781a9c87ec73acd1}{oval\_\-operation\_\-t} op)
\begin{DoxyCompactList}\small\item\em Compare two ios values. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_ga3bab1bf1cb79fca22c8038d9d19536f3}{probe\_\-ent\_\-cmp\_\-version} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$val1, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val2, \hyperlink{group__OVALDEF_ga3f00a63428c2b5db781a9c87ec73acd1}{oval\_\-operation\_\-t} op)
\begin{DoxyCompactList}\small\item\em Compare two version values. \item\end{DoxyCompactList}\item 
oval\_\-result\_\-t \hyperlink{group__PROBESCMP_ga50498f39e777e886c5094d11e35abe3b}{probe\_\-ent\_\-cmp\_\-string} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$val1, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val2, \hyperlink{group__OVALDEF_ga3f00a63428c2b5db781a9c87ec73acd1}{oval\_\-operation\_\-t} op)
\begin{DoxyCompactList}\small\item\em Compare two string values. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Comparison operations on entities in probes. 

\subsection{Function Documentation}
\hypertarget{group__PROBESCMP_gaed2ba0c447a642376277d827572300f6}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-cmp\_\-binary@{probe\_\-ent\_\-cmp\_\-binary}}
\index{probe\_\-ent\_\-cmp\_\-binary@{probe\_\-ent\_\-cmp\_\-binary}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-cmp\_\-binary}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-cmp\_\-binary ({\bf SEXP\_\-t} $\ast$ {\em val1}, \/  {\bf SEXP\_\-t} $\ast$ {\em val2}, \/  {\bf oval\_\-operation\_\-t} {\em op})}}
\label{group__PROBESCMP_gaed2ba0c447a642376277d827572300f6}


Compare two binary values. The operation to use is specified by the operation enumeration value. 
\begin{DoxyParams}{Parameters}
\item[{\em val1}]the first value \item[{\em val2}]the second value \item[{\em op}]the desired operation \end{DoxyParams}
\hypertarget{group__PROBESCMP_ga1ec23cec30188459da8ce24c2eb5518d}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-cmp\_\-bool@{probe\_\-ent\_\-cmp\_\-bool}}
\index{probe\_\-ent\_\-cmp\_\-bool@{probe\_\-ent\_\-cmp\_\-bool}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-cmp\_\-bool}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-cmp\_\-bool ({\bf SEXP\_\-t} $\ast$ {\em val1}, \/  {\bf SEXP\_\-t} $\ast$ {\em val2}, \/  {\bf oval\_\-operation\_\-t} {\em op})}}
\label{group__PROBESCMP_ga1ec23cec30188459da8ce24c2eb5518d}


Compare two boolean values. The operation to use is specified by the operation enumeration value. 
\begin{DoxyParams}{Parameters}
\item[{\em val1}]the first value \item[{\em val2}]the second value \item[{\em op}]the desired operation \end{DoxyParams}
\hypertarget{group__PROBESCMP_ga757412dca11a0195037eb958d37e9b6b}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-cmp\_\-evr@{probe\_\-ent\_\-cmp\_\-evr}}
\index{probe\_\-ent\_\-cmp\_\-evr@{probe\_\-ent\_\-cmp\_\-evr}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-cmp\_\-evr}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-cmp\_\-evr ({\bf SEXP\_\-t} $\ast$ {\em val1}, \/  {\bf SEXP\_\-t} $\ast$ {\em val2}, \/  {\bf oval\_\-operation\_\-t} {\em op})}}
\label{group__PROBESCMP_ga757412dca11a0195037eb958d37e9b6b}


Compare two epoch-\/version-\/release values. The operation to use is specified by the operation enumeration value. 
\begin{DoxyParams}{Parameters}
\item[{\em val1}]the first value \item[{\em val2}]the second value \item[{\em op}]the desired operation \end{DoxyParams}
\hypertarget{group__PROBESCMP_ga026cb1dd03de0ad2ecec589991a0828f}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-cmp\_\-filesetrev@{probe\_\-ent\_\-cmp\_\-filesetrev}}
\index{probe\_\-ent\_\-cmp\_\-filesetrev@{probe\_\-ent\_\-cmp\_\-filesetrev}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-cmp\_\-filesetrev}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-cmp\_\-filesetrev ({\bf SEXP\_\-t} $\ast$ {\em val1}, \/  {\bf SEXP\_\-t} $\ast$ {\em val2}, \/  {\bf oval\_\-operation\_\-t} {\em op})}}
\label{group__PROBESCMP_ga026cb1dd03de0ad2ecec589991a0828f}


Compare two values. The operation to use is specified by the operation enumeration value. 
\begin{DoxyParams}{Parameters}
\item[{\em val1}]the first value \item[{\em val2}]the second value \item[{\em op}]the desired operation \end{DoxyParams}
\hypertarget{group__PROBESCMP_ga4a70b71edba51997c30fc20f0744e54e}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-cmp\_\-float@{probe\_\-ent\_\-cmp\_\-float}}
\index{probe\_\-ent\_\-cmp\_\-float@{probe\_\-ent\_\-cmp\_\-float}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-cmp\_\-float}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-cmp\_\-float ({\bf SEXP\_\-t} $\ast$ {\em val1}, \/  {\bf SEXP\_\-t} $\ast$ {\em val2}, \/  {\bf oval\_\-operation\_\-t} {\em op})}}
\label{group__PROBESCMP_ga4a70b71edba51997c30fc20f0744e54e}


Compare two floating point values. The operation to use is specified by the operation enumeration value. 
\begin{DoxyParams}{Parameters}
\item[{\em val1}]the first value \item[{\em val2}]the second value \item[{\em op}]the desired operation \end{DoxyParams}
\hypertarget{group__PROBESCMP_ga6d7a0a42dad35778c92ddd1e6c013ae1}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-cmp\_\-int@{probe\_\-ent\_\-cmp\_\-int}}
\index{probe\_\-ent\_\-cmp\_\-int@{probe\_\-ent\_\-cmp\_\-int}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-cmp\_\-int}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-cmp\_\-int ({\bf SEXP\_\-t} $\ast$ {\em val1}, \/  {\bf SEXP\_\-t} $\ast$ {\em val2}, \/  {\bf oval\_\-operation\_\-t} {\em op})}}
\label{group__PROBESCMP_ga6d7a0a42dad35778c92ddd1e6c013ae1}


Compare two integer values. The operation to use is specified by the operation enumeration value. 
\begin{DoxyParams}{Parameters}
\item[{\em val1}]the first value \item[{\em val2}]the second value \item[{\em op}]the desired operation \end{DoxyParams}
\hypertarget{group__PROBESCMP_ga76fa88ac9bf6a213a4a78f8afc9828c5}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-cmp\_\-ios@{probe\_\-ent\_\-cmp\_\-ios}}
\index{probe\_\-ent\_\-cmp\_\-ios@{probe\_\-ent\_\-cmp\_\-ios}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-cmp\_\-ios}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-cmp\_\-ios ({\bf SEXP\_\-t} $\ast$ {\em val1}, \/  {\bf SEXP\_\-t} $\ast$ {\em val2}, \/  {\bf oval\_\-operation\_\-t} {\em op})}}
\label{group__PROBESCMP_ga76fa88ac9bf6a213a4a78f8afc9828c5}


Compare two ios values. The operation to use is specified by the operation enumeration value. 
\begin{DoxyParams}{Parameters}
\item[{\em val1}]the first value \item[{\em val2}]the second value \item[{\em op}]the desired operation \end{DoxyParams}
\hypertarget{group__PROBESCMP_ga50498f39e777e886c5094d11e35abe3b}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-cmp\_\-string@{probe\_\-ent\_\-cmp\_\-string}}
\index{probe\_\-ent\_\-cmp\_\-string@{probe\_\-ent\_\-cmp\_\-string}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-cmp\_\-string}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-cmp\_\-string ({\bf SEXP\_\-t} $\ast$ {\em val1}, \/  {\bf SEXP\_\-t} $\ast$ {\em val2}, \/  {\bf oval\_\-operation\_\-t} {\em op})}}
\label{group__PROBESCMP_ga50498f39e777e886c5094d11e35abe3b}


Compare two string values. The operation to use is specified by the operation enumeration value. 
\begin{DoxyParams}{Parameters}
\item[{\em val1}]the first value \item[{\em val2}]the second value \item[{\em op}]the desired operation \end{DoxyParams}
\hypertarget{group__PROBESCMP_ga3bab1bf1cb79fca22c8038d9d19536f3}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-cmp\_\-version@{probe\_\-ent\_\-cmp\_\-version}}
\index{probe\_\-ent\_\-cmp\_\-version@{probe\_\-ent\_\-cmp\_\-version}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-cmp\_\-version}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-cmp\_\-version ({\bf SEXP\_\-t} $\ast$ {\em val1}, \/  {\bf SEXP\_\-t} $\ast$ {\em val2}, \/  {\bf oval\_\-operation\_\-t} {\em op})}}
\label{group__PROBESCMP_ga3bab1bf1cb79fca22c8038d9d19536f3}


Compare two version values. The operation to use is specified by the operation enumeration value. 
\begin{DoxyParams}{Parameters}
\item[{\em val1}]the first value \item[{\em val2}]the second value \item[{\em op}]the desired operation \end{DoxyParams}
\hypertarget{group__PROBESCMP_gac76c8c27a46788b61119ece0a856b46c}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-result\_\-bychk@{probe\_\-ent\_\-result\_\-bychk}}
\index{probe\_\-ent\_\-result\_\-bychk@{probe\_\-ent\_\-result\_\-bychk}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-result\_\-bychk}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-result\_\-bychk ({\bf SEXP\_\-t} $\ast$ {\em res\_\-lst}, \/  {\bf oval\_\-check\_\-t} {\em check})}}
\label{group__PROBESCMP_gac76c8c27a46788b61119ece0a856b46c}


Compute the overall result. Compute the overall result from a results vector and a check enumeration parameter. 
\begin{DoxyParams}{Parameters}
\item[{\em res\_\-lst}]the results vector \item[{\em check}]the check enumeration value \end{DoxyParams}
\hypertarget{group__PROBESCMP_gafcfd303effe54aa0944eb1fb3239f1e7}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-ent\_\-result\_\-byopr@{probe\_\-ent\_\-result\_\-byopr}}
\index{probe\_\-ent\_\-result\_\-byopr@{probe\_\-ent\_\-result\_\-byopr}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-ent\_\-result\_\-byopr}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-ent\_\-result\_\-byopr ({\bf SEXP\_\-t} $\ast$ {\em res\_\-lst}, \/  {\bf oval\_\-operator\_\-t} {\em operator})}}
\label{group__PROBESCMP_gafcfd303effe54aa0944eb1fb3239f1e7}


Compute the overall result. Compute the overall result from a results vector and a operator enumeration parameter. 
\begin{DoxyParams}{Parameters}
\item[{\em res\_\-lst}]the results vector \item[{\em check}]the operator enumeration value \end{DoxyParams}
\hypertarget{group__PROBESCMP_ga1803ec0d8ab14d7257457bcf2d2aee39}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-entobj\_\-cmp@{probe\_\-entobj\_\-cmp}}
\index{probe\_\-entobj\_\-cmp@{probe\_\-entobj\_\-cmp}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-entobj\_\-cmp}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-entobj\_\-cmp ({\bf SEXP\_\-t} $\ast$ {\em ent\_\-obj}, \/  {\bf SEXP\_\-t} $\ast$ {\em val})}}
\label{group__PROBESCMP_ga1803ec0d8ab14d7257457bcf2d2aee39}


Compare object entity's content with a value. The result depends on the operation attribute and a possible var\_\-check attribute. 
\begin{DoxyParams}{Parameters}
\item[{\em ent\_\-obj}]object entity \item[{\em val}]raw value \end{DoxyParams}
\hypertarget{group__PROBESCMP_gaf7a569fc0abb09980c2d2550fff7912d}{
\index{PROBESCMP@{PROBESCMP}!probe\_\-entste\_\-cmp@{probe\_\-entste\_\-cmp}}
\index{probe\_\-entste\_\-cmp@{probe\_\-entste\_\-cmp}!PROBESCMP@{PROBESCMP}}
\subsubsection[{probe\_\-entste\_\-cmp}]{\setlength{\rightskip}{0pt plus 5cm}oval\_\-result\_\-t probe\_\-entste\_\-cmp ({\bf SEXP\_\-t} $\ast$ {\em ent\_\-ste}, \/  {\bf SEXP\_\-t} $\ast$ {\em ent\_\-itm})}}
\label{group__PROBESCMP_gaf7a569fc0abb09980c2d2550fff7912d}


Compare state entity's content with a item entity's value. The result depends on the operation attribute, a possible var\_\-check attribute and item entity's status. 
\begin{DoxyParams}{Parameters}
\item[{\em ent\_\-ste}]state entity \item[{\em ent\_\-itm}]item entity \end{DoxyParams}