Sophie

Sophie

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

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

\hypertarget{probe-api_8c}{
\section{/home/pvrabec/openscap/openscap-\/0.5.7/src/OVAL/probes/probe-\/api.c File Reference}
\label{probe-api_8c}\index{/home/pvrabec/openscap/openscap-\/0.5.7/src/OVAL/probes/probe-\/api.c@{/home/pvrabec/openscap/openscap-\/0.5.7/src/OVAL/probes/probe-\/api.c}}
}
{\ttfamily \#include $<$stdarg.h$>$}\par
{\ttfamily \#include $<$string.h$>$}\par
{\ttfamily \#include $<$errno.h$>$}\par
{\ttfamily \#include \char`\"{}\_\-probe-\/api.h\char`\"{}}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_ga24a0fe6c46c667ee39d0f765630a52df}{probe\_\-item\_\-build} (const char $\ast$fmt,...)
\begin{DoxyCompactList}\small\item\em Build a new item according to the scpecified format. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_gaf696f498bb0fedacae306ec8a21caa91}{probe\_\-item\_\-new} (const char $\ast$name, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$attrs)
\begin{DoxyCompactList}\small\item\em Create a new item with just a name and optional attributes argument. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_gaaca01da4a1e288ba36f7eec0657f6bbe}{probe\_\-item\_\-attr\_\-add} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$item, const char $\ast$name, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val)
\begin{DoxyCompactList}\small\item\em Add a new attribute to an item. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_ga2a72992661ed8812d7d17c20a3cdff52}{probe\_\-item\_\-ent\_\-add} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$item, const char $\ast$name, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$attrs, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val)
\begin{DoxyCompactList}\small\item\em Add a new entity to an item. \item\end{DoxyCompactList}\item 
int \hyperlink{group__PROBESAPI_ga816e3a0f4022b42e80adb37e712217a1}{probe\_\-item\_\-setstatus} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj, \hyperlink{group__OVALSYS_gacf14e82865b7254b573e9a98e7fae422}{oval\_\-syschar\_\-status\_\-t} status)
\begin{DoxyCompactList}\small\item\em Set item's status. \item\end{DoxyCompactList}\item 
int \hyperlink{group__PROBESAPI_gad25f90c27a7f5a76abd4348a2777b138}{probe\_\-itement\_\-setstatus} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj, const char $\ast$name, uint32\_\-t n, \hyperlink{group__OVALSYS_gacf14e82865b7254b573e9a98e7fae422}{oval\_\-syschar\_\-status\_\-t} status)
\begin{DoxyCompactList}\small\item\em Set status of an item's entity. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_ga57a33271acce2f5013c1a66b0f106a0a}{probe\_\-item\_\-newid} (struct \hyperlink{structid__desc__t}{id\_\-desc\_\-t} $\ast$id\_\-desc)
\begin{DoxyCompactList}\small\item\em Get a new unique id (within a probe) for an item. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_gaa108cf08d3ad894f06e7eee7c0100047}{probe\_\-attr\_\-creat} (const char $\ast$name, const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val,...)
\begin{DoxyCompactList}\small\item\em Create a new list of attributes. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_gac6a32ee967031ae45ccb7b29806715ed}{probe\_\-obj\_\-build} (const char $\ast$fmt,...)
\begin{DoxyCompactList}\small\item\em Build a new object according to the scpecified format. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_ga280020101f5ef03123a7e2ff6a0b282e}{probe\_\-obj\_\-creat} (const char $\ast$name, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$attrs,...)
\begin{DoxyCompactList}\small\item\em Create a new object consisting of a name, optional attributes argument and an arbitrary number of entities. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_ga2539ca96f41a72a89224318c31a19ba9}{probe\_\-obj\_\-new} (const char $\ast$name, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$attrs)
\begin{DoxyCompactList}\small\item\em Create a new object with just a name and optional attributes argument. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_gac9d092361f39bc8514fcbb0418f47070}{probe\_\-obj\_\-getent} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj, const char $\ast$name, uint32\_\-t n)
\begin{DoxyCompactList}\small\item\em Get an entity from an object. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_gab73d2c29b3b3657eb4a42c5abcb8a98b}{probe\_\-obj\_\-getentval} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj, const char $\ast$name, uint32\_\-t n)
\begin{DoxyCompactList}\small\item\em Get the value of an object's entity. \item\end{DoxyCompactList}\item 
int \hyperlink{group__PROBESAPI_gace27f5edf64bb92b2eac845828fc16a8}{probe\_\-obj\_\-getentvals} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj, const char $\ast$name, uint32\_\-t n, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$$\ast$res)
\begin{DoxyCompactList}\small\item\em Get the list of values of an object's entity. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_ga4eff2a5e03886982ddcd3a638656b093}{probe\_\-obj\_\-getattrval} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Get the value of an object's attribute. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__PROBESAPI_gabdad7653e94bf96bec05941f87257f2e}{probe\_\-obj\_\-attrexists} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Check whether the specified attribute exists. \item\end{DoxyCompactList}\item 
int \hyperlink{group__PROBESAPI_gabc311067d7dc968de8aa5c640632f015}{probe\_\-obj\_\-setstatus} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj, \hyperlink{group__OVALSYS_gacf14e82865b7254b573e9a98e7fae422}{oval\_\-syschar\_\-status\_\-t} status)
\begin{DoxyCompactList}\small\item\em Set objects's status. \item\end{DoxyCompactList}\item 
char $\ast$ \hyperlink{group__PROBESAPI_ga614b832888ad52140d9a8c2be87d1905}{probe\_\-obj\_\-getname} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Get the name of an object. \item\end{DoxyCompactList}\item 
size\_\-t \hyperlink{group__PROBESAPI_ga99fcdf7398c070fe503c97b31281289e}{probe\_\-obj\_\-getname\_\-r} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj, char $\ast$buffer, size\_\-t buflen)
\begin{DoxyCompactList}\small\item\em Get the name of an object. \item\end{DoxyCompactList}\item 
\hypertarget{group__PROBESAPI_ga7f9d006aa437b070570283d1226c7448}{
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ {\bfseries \_\-probe\_\-cobj\_\-new} (\hyperlink{group__OVALSYS_ga6ca9feb1c89087dbae7c7d3074a378c9}{oval\_\-syschar\_\-collection\_\-flag\_\-t} flag, const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$item\_\-list)}
\label{group__PROBESAPI_ga7f9d006aa437b070570283d1226c7448}

\item 
\hypertarget{group__PROBESAPI_ga1a2a3e5ca7cb08a2ed46c385cbcb338e}{
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ {\bfseries \_\-probe\_\-cobj\_\-get\_\-items} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$cobj)}
\label{group__PROBESAPI_ga1a2a3e5ca7cb08a2ed46c385cbcb338e}

\item 
\hypertarget{group__PROBESAPI_gab02d09de787a051f085c8478029177b7}{
\hyperlink{group__OVALSYS_ga6ca9feb1c89087dbae7c7d3074a378c9}{oval\_\-syschar\_\-collection\_\-flag\_\-t} {\bfseries \_\-probe\_\-cobj\_\-get\_\-flag} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$cobj)}
\label{group__PROBESAPI_gab02d09de787a051f085c8478029177b7}

\item 
\hypertarget{group__PROBESAPI_gac48053509792b0d65f572c34648961a2}{
\hyperlink{group__OVALSYS_ga6ca9feb1c89087dbae7c7d3074a378c9}{oval\_\-syschar\_\-collection\_\-flag\_\-t} {\bfseries \_\-probe\_\-cobj\_\-combine\_\-flags} (\hyperlink{group__OVALSYS_ga6ca9feb1c89087dbae7c7d3074a378c9}{oval\_\-syschar\_\-collection\_\-flag\_\-t} f1, \hyperlink{group__OVALSYS_ga6ca9feb1c89087dbae7c7d3074a378c9}{oval\_\-syschar\_\-collection\_\-flag\_\-t} f2, \hyperlink{group__OVALDEF_ga695dd73f42848ceb78bc9c9b3794e08c}{oval\_\-setobject\_\-operation\_\-t} op)}
\label{group__PROBESAPI_gac48053509792b0d65f572c34648961a2}

\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_ga76a6bb61d3b640748dd5416a349f3bcf}{probe\_\-ent\_\-creat} (const char $\ast$name, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$attrs, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val,...)
\begin{DoxyCompactList}\small\item\em Create a new list of entities. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_ga1203e858ab9fcf9c2d37514626deb9d8}{probe\_\-ent\_\-creat1} (const char $\ast$name, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$attrs, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val)
\begin{DoxyCompactList}\small\item\em Create a new entity. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_ga2c4ae475b5c8156b4436359cb82d14c6}{probe\_\-ent\_\-attr\_\-add} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent, const char $\ast$name, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$val)
\begin{DoxyCompactList}\small\item\em Add a new attribute to an entity. \item\end{DoxyCompactList}\item 
int \hyperlink{group__PROBESAPI_ga3ff2cd8dba0ce124e8c1557f83ece7e0}{probe\_\-ent\_\-getvals} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$$\ast$res)
\begin{DoxyCompactList}\small\item\em Get the list of values of an entity. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_gaefe143cb0db920b26ca3c20348287f32}{probe\_\-ent\_\-getval} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent)
\begin{DoxyCompactList}\small\item\em Get the value of an entity. \item\end{DoxyCompactList}\item 
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBESAPI_gaaa841c5a9ec35e411832d2b77ae73aff}{probe\_\-ent\_\-getattrval} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Get the value of an entity's attribute. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__PROBESAPI_gade2da190db42b69de3a82df73ddf92da}{probe\_\-ent\_\-attrexists} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Check whether the specified attribute exists. \item\end{DoxyCompactList}\item 
int \hyperlink{group__PROBESAPI_gabd1dbeb0c28df011d6a2aceb400bf1cb}{probe\_\-ent\_\-setdatatype} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent, \hyperlink{group__OVALDEF_gaf069fe2fb2a9ae3abe47cab55b89827e}{oval\_\-datatype\_\-t} type)
\begin{DoxyCompactList}\small\item\em Set the OVAL data type of an entity. \item\end{DoxyCompactList}\item 
\hyperlink{group__OVALDEF_gaf069fe2fb2a9ae3abe47cab55b89827e}{oval\_\-datatype\_\-t} \hyperlink{group__PROBESAPI_ga63df6b0800c386aa946dd79088893f05}{probe\_\-ent\_\-getdatatype} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent)
\begin{DoxyCompactList}\small\item\em Get the OVAL data type of an entity. \item\end{DoxyCompactList}\item 
int \hyperlink{group__PROBESAPI_ga78fa4b2ed51c75dc331f2b30305be587}{probe\_\-ent\_\-setmask} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent, bool mask)
\begin{DoxyCompactList}\small\item\em Set entity's mask. \item\end{DoxyCompactList}\item 
bool \hyperlink{group__PROBESAPI_gaa18871c25a66d86317af2998703d3834}{probe\_\-ent\_\-getmask} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent)
\begin{DoxyCompactList}\small\item\em Get entity's mask. \item\end{DoxyCompactList}\item 
int \hyperlink{group__PROBESAPI_ga19a9b8b09ebcb61389d792eeb4a450ee}{probe\_\-ent\_\-setstatus} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent, \hyperlink{group__OVALSYS_gacf14e82865b7254b573e9a98e7fae422}{oval\_\-syschar\_\-status\_\-t} status)
\begin{DoxyCompactList}\small\item\em Set entity's status. \item\end{DoxyCompactList}\item 
\hyperlink{group__OVALSYS_gacf14e82865b7254b573e9a98e7fae422}{oval\_\-syschar\_\-status\_\-t} \hyperlink{group__PROBESAPI_gaf6f8c32f4222562df8396b6ce8e8afc0}{probe\_\-ent\_\-getstatus} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent)
\begin{DoxyCompactList}\small\item\em Get entity status. \item\end{DoxyCompactList}\item 
char $\ast$ \hyperlink{group__PROBESAPI_gaa9c1f58c018a3d9df99c8240ba387e93}{probe\_\-ent\_\-getname} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent)
\begin{DoxyCompactList}\small\item\em Get the name of an entity. \item\end{DoxyCompactList}\item 
size\_\-t \hyperlink{group__PROBESAPI_ga8327d5fcb919ace33e748995242121d5}{probe\_\-ent\_\-getname\_\-r} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$ent, char $\ast$buffer, size\_\-t buflen)
\begin{DoxyCompactList}\small\item\em Get the name of an entity. \item\end{DoxyCompactList}\item 
void \hyperlink{group__PROBESAPI_gaaa9687fb52f3ecba96ea03e71759505c}{probe\_\-free} (\hyperlink{structSEXP}{SEXP\_\-t} $\ast$obj)
\begin{DoxyCompactList}\small\item\em Free the memory allocated by the probe\_\-$\ast$ functions. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
\char`\"{}Daniel Kopecek\char`\"{} $<$\href{mailto:dkopecek@redhat.com}{\tt dkopecek@redhat.com}$>$ 
\end{DoxyAuthor}