Public interface to OpenSCAP system checking mechanism. More...
Files | |
| file | oval_probe.h |
Defines | |
| #define | OVAL_PCTX_FLAG_NOREPLY 0x0001 |
| #define | OVAL_PCTX_FLAG_NORECONN 0x0002 |
| #define | OVAL_PCTX_FLAG_RUNALL 0x0004 |
| #define | OVAL_PCTX_FLAG_RUNNOW 0x0008 |
| #define | OVAL_PCTX_FLAG_MASK (0x0001|0x0002|0x0004|0x0008) |
| #define | OVAL_PCTX_ATTR_RETRY 0x0001 |
| #define | OVAL_PCTX_ATTR_RECVTIMEOUT 0x0002 |
| #define | OVAL_PCTX_ATTR_SENDTIMEOUT 0x0003 |
| #define | OVAL_PCTX_ATTR_SCHEME 0x0004 |
| #define | OVAL_PCTX_ATTR_DIR 0x0005 |
| #define | OVAL_PCTX_ATTR_MODEL 0x0006 |
Typedefs | |
| typedef struct oval_pctx | oval_pctx_t |
Functions | |
| oval_pctx_t * | oval_pctx_new (struct oval_syschar_model *model) |
| Creaste new probe context. | |
| void | oval_pctx_free (oval_pctx_t *pctx) __attribute__((nonnull(1))) |
| Free probe context. | |
| int | oval_pctx_setflag (oval_pctx_t *pctx, uint32_t flags) __attribute__((nonnull(1))) |
| Set probe context flag. | |
| int | oval_pctx_unsetflag (oval_pctx_t *pctx, uint32_t flags) __attribute__((nonnull(1))) |
| Unset probe context flag. | |
| int | oval_pctx_setattr (oval_pctx_t *pctx, uint32_t attr,...) __attribute__((nonnull(1))) |
| Set probe context attribute. | |
| int | oval_probe_reset (oval_pctx_t *pctx, oval_subtype_t subtype) __attribute__((nonnull(1))) |
| Reset probe state. | |
| int | oval_probe_close (oval_pctx_t *pctx, oval_subtype_t subtype) __attribute__((nonnull(1))) |
| Close connection and shutdown a probe. | |
| struct oval_sysinfo * | oval_probe_sysinf_eval (oval_pctx_t *pctx) __attribute__((nonnull(1))) |
| Evaluate system info probe. | |
| struct oval_syschar * | oval_probe_object_eval (oval_pctx_t *pctx, struct oval_object *object) __attribute__((nonnull(1 |
| Evaluate an object. | |
Public interface to OpenSCAP system checking mechanism.
| void oval_pctx_free | ( | oval_pctx_t * | pctx | ) |
Free probe context.
| pctx | probe context |
| oval_pctx_t* oval_pctx_new | ( | struct oval_syschar_model * | model | ) |
Creaste new probe context.
| model | system characteristics model |
| int oval_pctx_setattr | ( | oval_pctx_t * | pctx, | |
| uint32_t | attr, | |||
| ... | ||||
| ) |
Set probe context attribute.
| pctx | probe context | |
| attr | the attribute to set | |
| ... | attribute dependend arguments |
| int oval_pctx_setflag | ( | oval_pctx_t * | pctx, | |
| uint32_t | flags | |||
| ) |
Set probe context flag.
| pctx | probe context | |
| flags | set of flags to set (combined with the bitwise or operator) |
| int oval_pctx_unsetflag | ( | oval_pctx_t * | pctx, | |
| uint32_t | flags | |||
| ) |
Unset probe context flag.
| pctx | probe context | |
| flags | set of flags to unset (combined with the bitwise or operator) |
| int oval_probe_close | ( | oval_pctx_t * | pctx, | |
| oval_subtype_t | subtype | |||
| ) |
Close connection and shutdown a probe.
| pctx | probe context | |
| subtype | subtype of the probe which will be closed |
| struct oval_syschar* oval_probe_object_eval | ( | oval_pctx_t * | pctx, | |
| struct oval_object * | object | |||
| ) | [read] |
Evaluate an object.
| pctx | probe context | |
| object | the object to evaluate |
| int oval_probe_reset | ( | oval_pctx_t * | pctx, | |
| oval_subtype_t | subtype | |||
| ) |
Reset probe state.
| pctx | probe context | |
| subtype | subtype of the probe which will be reset |
| struct oval_sysinfo* oval_probe_sysinf_eval | ( | oval_pctx_t * | pctx | ) | [read] |
Evaluate system info probe.
| pctx | probe context |
1.6.1