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

Detailed Description

XCCDF Value allows test parametrization or capturing output of tests.

#include <xccdf_benchmark.h>

Public Member Functions

struct xccdf_valuexccdf_value_new (xccdf_value_type_t type)
void xccdf_value_free (struct xccdf_item *val)
struct xccdf_itemxccdf_value_to_item (struct xccdf_value *item)
struct xccdf_valuexccdf_value_clone (const struct xccdf_value *value)

Return value is pointer to structure's member.

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

struct oscap_text_iteratorxccdf_value_get_title (const struct xccdf_value *value)
const char * xccdf_value_get_id (const struct xccdf_value *value)
struct oscap_text_iteratorxccdf_value_get_description (const struct xccdf_value *value)
const char * xccdf_value_get_extends (const struct xccdf_value *value)
bool xccdf_value_get_abstract (const struct xccdf_value *value)
bool xccdf_value_get_prohibit_changes (const struct xccdf_value *value)
bool xccdf_value_get_hidden (const struct xccdf_value *value)
bool xccdf_value_get_interactive (const struct xccdf_value *value)
struct xccdf_status_iteratorxccdf_value_get_statuses (const struct xccdf_value *value)
struct oscap_reference_iterator * xccdf_value_get_dc_statuses (const struct xccdf_value *value)
struct oscap_reference_iterator * xccdf_value_get_references (const struct xccdf_value *value)
struct xccdf_statusxccdf_value_get_status_current (const struct xccdf_value *value)
xccdf_value_type_t xccdf_value_get_type (const struct xccdf_value *value)
xccdf_interface_hint_t xccdf_value_get_interface_hint (const struct xccdf_value *value)
xccdf_operator_t xccdf_value_get_oper (const struct xccdf_value *value)
struct xccdf_value_instancexccdf_value_get_instance_by_selector (const struct xccdf_value *value, const char *selector)
bool xccdf_value_add_instance (struct xccdf_value *value, struct xccdf_value_instance *instance)
xccdf_value_get_instances (const struct xccdf_value *item)
struct oscap_string_iteratorxccdf_value_get_metadata (const struct xccdf_value *value)
struct xccdf_value_instancexccdf_value_new_instance (struct xccdf_value *val)
struct xccdf_itemxccdf_value_get_parent (const struct xccdf_value *value)
 Return value's parent in the grouping hierarchy. More...
const char * xccdf_value_get_version (const struct xccdf_value *value)
struct oscap_text_iteratorxccdf_value_get_question (const struct xccdf_value *value)
struct xccdf_warning_iteratorxccdf_value_get_warnings (const struct xccdf_value *value)
const char * xccdf_value_get_version_update (const struct xccdf_value *value)
const char * xccdf_value_get_version_time (const struct xccdf_value *value)
struct xccdf_benchmarkxccdf_value_get_benchmark (const struct xccdf_value *value)
struct oscap_string_iteratorxccdf_value_get_sources (const struct xccdf_value *value)
const char * xccdf_value_get_cluster_id (const struct xccdf_value *value)

For lists use add functions.

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

bool xccdf_value_set_id (struct xccdf_value *item, const char *newval)
bool xccdf_value_set_cluster_id (struct xccdf_value *item, const char *newval)
bool xccdf_value_set_extends (struct xccdf_value *item, const char *newval)
bool xccdf_value_set_version (struct xccdf_value *item, const char *newval)
bool xccdf_value_set_version_time (struct xccdf_value *item, const char *newval)
bool xccdf_value_set_version_update (struct xccdf_value *item, const char *newval)
bool xccdf_value_set_abstract (struct xccdf_value *item, bool newval)
bool xccdf_value_set_hidden (struct xccdf_value *item, bool newval)
bool xccdf_value_set_multiple (struct xccdf_value *item, bool newval)
bool xccdf_value_set_prohibit_changes (struct xccdf_value *item, bool newval)
bool xccdf_value_set_oper (struct xccdf_value *item, xccdf_operator_t oper)
bool xccdf_value_set_interactive (struct xccdf_value *item, bool newval)
bool xccdf_value_add_metadata (struct xccdf_value *item, const char *metadata)
bool xccdf_value_add_description (struct xccdf_value *item, struct oscap_text *newval)
bool xccdf_value_add_question (struct xccdf_value *item, struct oscap_text *newval)
bool xccdf_value_add_reference (struct xccdf_value *item, struct oscap_reference *newval)
bool xccdf_value_add_status (struct xccdf_value *item, struct xccdf_status *newval)
bool xccdf_value_add_dc_status (struct xccdf_value *item, struct oscap_reference *newval)
bool xccdf_value_add_title (struct xccdf_value *item, struct oscap_text *newval)
bool xccdf_value_add_warning (struct xccdf_value *item, struct xccdf_warning *newval)

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