Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Public Member Functions | Data Fields
xccdf_check Struct Reference

XCCDF simple or complex check. More...

#include <xccdf_benchmark.h>

Data Structures

struct  _xccdf_check_flags
 

Public Member Functions

OSCAP_API struct xccdf_checkxccdf_check_new (void)
 
OSCAP_API void xccdf_check_free (struct xccdf_check *check)
 
OSCAP_API struct xccdf_checkxccdf_check_clone (const struct xccdf_check *old_check)
 
Getters

Return value is pointer to structure's member.

Do not free unless you null the pointer in the structure. Use remove function otherwise.

OSCAP_API const char * xccdf_check_get_id (const struct xccdf_check *check)
 
OSCAP_API bool xccdf_check_get_complex (const struct xccdf_check *check)
 True if the check is a complex check. More...
 
OSCAP_API xccdf_bool_operator_t xccdf_check_get_oper (const struct xccdf_check *check)
 Get an operator to be applied no children of the complex check. More...
 
OSCAP_API const char * xccdf_check_get_system (const struct xccdf_check *check)
 
OSCAP_API const char * xccdf_check_get_selector (const struct xccdf_check *check)
 
OSCAP_API const char * xccdf_check_get_content (const struct xccdf_check *check)
 
OSCAP_API bool xccdf_check_get_multicheck (const struct xccdf_check *check)
 
OSCAP_API bool xccdf_check_get_negate (const struct xccdf_check *check)
 
OSCAP_API struct
xccdf_check_iterator
xccdf_check_get_children (const struct xccdf_check *check)
 Get an iterator to nested checks of the complex check. More...
 
OSCAP_API struct
xccdf_check_import_iterator
xccdf_check_get_imports (const struct xccdf_check *check)
 
OSCAP_API struct
xccdf_check_export_iterator
xccdf_check_get_exports (const struct xccdf_check *check)
 
OSCAP_API struct
xccdf_check_content_ref_iterator
xccdf_check_get_content_refs (const struct xccdf_check *check)
 
Setters

For lists use add functions.

Parameters of set functions are duplicated in memory and need to be freed by caller.

OSCAP_API bool xccdf_check_set_id (struct xccdf_check *obj, const char *newval)
 
OSCAP_API bool xccdf_check_set_system (struct xccdf_check *obj, const char *newval)
 
OSCAP_API bool xccdf_check_set_selector (struct xccdf_check *obj, const char *newval)
 
OSCAP_API bool xccdf_check_set_content (struct xccdf_check *obj, const char *newval)
 
OSCAP_API bool xccdf_check_set_oper (struct xccdf_check *obj, xccdf_bool_operator_t newval)
 
OSCAP_API bool xccdf_check_set_multicheck (struct xccdf_check *obj, bool newval)
 
OSCAP_API bool xccdf_check_set_negate (struct xccdf_check *obj, bool newval)
 
OSCAP_API bool xccdf_check_add_import (struct xccdf_check *obj, struct xccdf_check_import *item)
 
OSCAP_API bool xccdf_check_add_export (struct xccdf_check *obj, struct xccdf_check_export *item)
 
OSCAP_API bool xccdf_check_add_content_ref (struct xccdf_check *obj, struct xccdf_check_content_ref *item)
 
OSCAP_API bool xccdf_check_add_child (struct xccdf_check *obj, struct xccdf_check *item)
 

Data Fields

xccdf_bool_operator_t oper
 
struct oscap_listchildren
 
char * id
 
char * system
 
char * selector
 
char * content
 
struct
xccdf_check::_xccdf_check_flags 
flags
 
struct oscap_listimports
 
struct oscap_listexports
 
struct oscap_listcontent_refs
 

Detailed Description

XCCDF simple or complex check.


The documentation for this struct was generated from the following files: