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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
\hypertarget{probe-api_8c}{
\section{/home/pvrabec/project/openscap/openscap-\/0.5.12/src/OVAL/probes/probe-\/api.c File Reference}
\label{probe-api_8c}\index{/home/pvrabec/project/openscap/openscap-\/0.5.12/src/OVAL/probes/probe-\/api.c@{/home/pvrabec/project/openscap/openscap-\/0.5.12/src/OVAL/probes/probe-\/api.c}}
}
Probe API implmentation.
{\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__PROBEAPI_ga281872a3c21765f07bb10c9d01f03100}{probe\_\-item\_\-creat} (const char $\ast$name, \hyperlink{structSEXP}{SEXP\_\-t} $\ast$attrs,...)
\begin{DoxyCompactList}\small\item\em Create a new item consisting of a name, optional attributes argument and an arbitrary number of entities. \item\end{DoxyCompactList}\item
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBEAPI_ga585f26cf2067dff8dbc56939cd8ea88b}{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__PROBEAPI_ga7d094b506287a2f0397b3cfb90ba62ae}{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__PROBEAPI_ga2e3bf979b8e884105ebde18c945de292}{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__PROBEAPI_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__PROBEAPI_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__PROBEAPI_gac5f0e8107e22f78623d25f1ede61e127}{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
void \hyperlink{group__PROBEAPI_ga305847888cf828258788bffc475c3c18}{probe\_\-item\_\-resetidctr} (struct \hyperlink{structid__desc__t}{id\_\-desc\_\-t} $\ast$id\_\-desc)
\begin{DoxyCompactList}\small\item\em Reset the item id generator. \item\end{DoxyCompactList}\item
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBEAPI_gad5454da7eac743ac23d061df7b020b95}{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__PROBEAPI_ga877e7523a7c07c10b54d048dc49e97e1}{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__PROBEAPI_ga8a935fab2be64f5216f03a875d775b13}{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__PROBEAPI_ga0e969f658bbfd5fb8aaf9a4a0d4e781d}{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__PROBEAPI_ga5d150dec132971e7c564ce61fab05f3b}{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__PROBEAPI_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__PROBEAPI_ga0c4b1bdebc81320bd48a3517a8309247}{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__PROBEAPI_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__PROBEAPI_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__PROBEAPI_ga3cad77f08bb8e6c8ab00af561d3558fd}{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__PROBEAPI_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__PROBEAPI_ga39f0ba4ac06200d780cf918382126946}{
\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__PROBEAPI_ga39f0ba4ac06200d780cf918382126946}
\item
\hypertarget{group__PROBEAPI_gad4a63cb02886f46d567bb5f446dc51b6}{
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ {\bfseries \_\-probe\_\-cobj\_\-get\_\-items} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$cobj)}
\label{group__PROBEAPI_gad4a63cb02886f46d567bb5f446dc51b6}
\item
\hypertarget{group__PROBEAPI_gab02d09de787a051f085c8478029177b7}{
\hyperlink{group__OVALSYS_ga6ca9feb1c89087dbae7c7d3074a378c9}{oval\_\-syschar\_\-collection\_\-flag\_\-t} {\bfseries \_\-probe\_\-cobj\_\-get\_\-flag} (const \hyperlink{structSEXP}{SEXP\_\-t} $\ast$cobj)}
\label{group__PROBEAPI_gab02d09de787a051f085c8478029177b7}
\item
\hypertarget{group__PROBEAPI_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__PROBEAPI_gac48053509792b0d65f572c34648961a2}
\item
\hyperlink{structSEXP}{SEXP\_\-t} $\ast$ \hyperlink{group__PROBEAPI_ga16e28dc2212c2cb4823270d5b89796e8}{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__PROBEAPI_gaf25568074f3fd20b740fa1a7772b62e8}{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__PROBEAPI_ga26150d99efb18ef3893f55526048297f}{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__PROBEAPI_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__PROBEAPI_ga73598523f63abab6f4229bbd9daa9dba}{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__PROBEAPI_gaf2b69d899ddd53c161f162c7d9e4dbbc}{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__PROBEAPI_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__PROBEAPI_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__PROBEAPI_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__PROBEAPI_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__PROBEAPI_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__PROBEAPI_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__PROBEAPI_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__PROBEAPI_ga01ea603ba88ab456b6501709311bc3ff}{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__PROBEAPI_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__PROBEAPI_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}
Probe API implmentation. \begin{DoxyAuthor}{Author}
\char`\"{}Daniel Kopecek\char`\"{} $<$\href{mailto:dkopecek@redhat.com}{\tt dkopecek@redhat.com}$>$
\char`\"{}Tomas Heinrich\char`\"{} $<$\href{mailto:theinric@redhat.com}{\tt theinric@redhat.com}$>$
\end{DoxyAuthor}
|