Public Member Functions |
struct xccdf_value * | xccdf_value_new (xccdf_value_type_t type) |
void | xccdf_value_free (struct xccdf_item *val) |
struct xccdf_item * | xccdf_value_to_item (struct xccdf_value *item) |
|
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, time_t 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_item *item, xccdf_operator_t oper) |
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 xccdf_reference *newval) |
bool | xccdf_value_add_status (struct xccdf_value *item, struct xccdf_status *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) |
Getters |
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_iterator * | xccdf_value_get_title (const struct xccdf_value *value) |
const char * | xccdf_value_get_id (const struct xccdf_value *value) |
struct oscap_text_iterator * | xccdf_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_iterator * | xccdf_value_get_statuses (const struct xccdf_value *value) |
struct xccdf_reference_iterator * | xccdf_value_get_references (const struct xccdf_value *value) |
xccdf_status_type_t | xccdf_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) |
const char * | xccdf_value_get_selector (const struct xccdf_value *value) |
struct xccdf_item * | xccdf_value_get_parent (const struct xccdf_value *value) |
| Return value's parent in the grouping hierarchy.
|
bool | xccdf_value_get_set_selector (struct xccdf_item *value, const char *selector) |
| Apply a selector on the value.
|
const char * | xccdf_value_get_value_string (const struct xccdf_value *value) |
| Return the item's value as a string.
|
xccdf_numeric | xccdf_value_get_value_number (const struct xccdf_value *value) |
| Return the item's value as a number.
|
bool | xccdf_value_get_value_boolean (const struct xccdf_value *value) |
| Return the item's value as a boolean value.
|
const char * | xccdf_value_get_defval_string (const struct xccdf_value *value) |
| Return the item's default value as a string.
|
xccdf_numeric | xccdf_value_get_defval_number (const struct xccdf_value *value) |
| Return the item's default value as a number.
|
bool | xccdf_value_get_defval_boolean (const struct xccdf_value *value) |
| Return the item's default value as a boolean value.
|
xccdf_numeric | xccdf_value_get_lower_bound (const struct xccdf_value *value) |
| Return upper limit for the numeric value.
|
xccdf_numeric | xccdf_value_get_upper_bound (const struct xccdf_value *value) |
| Return lower limit for the numeric value.
|
const char * | xccdf_value_get_match (const struct xccdf_value *value) |
| Regex the values should match.
|
bool | xccdf_value_get_must_match (const struct xccdf_value *value) |
| Return mustMatch property.
|
const char * | xccdf_value_get_version (const struct xccdf_value *value) |
struct oscap_text_iterator * | xccdf_value_get_question (const struct xccdf_value *value) |
struct xccdf_warning_iterator * | xccdf_value_get_warnings (const struct xccdf_value *value) |
const char * | xccdf_value_get_version_update (const struct xccdf_value *value) |
time_t | xccdf_value_get_version_time (const struct xccdf_value *value) |
struct xccdf_benchmark * | xccdf_value_get_benchmark (const struct xccdf_value *value) |
struct oscap_string_iterator * | xccdf_value_get_sources (const struct xccdf_value *value) |
const char * | xccdf_value_get_cluster_id (const struct xccdf_value *value) |
char * | xccdf_value_get_selected_value (const struct xccdf_value *value) |
struct xccdf_item * | xccdf_group_get_parent (const struct xccdf_group *group) |
const char * | xccdf_refine_rule_get_item (const struct xccdf_refine_rule *rr) |
| xccdf_refine_rule
|
const char * | xccdf_refine_rule_get_selector (const struct xccdf_refine_rule *rr) |
| xccdf_refine_rule
|
xccdf_role_t | xccdf_refine_rule_get_role (const struct xccdf_refine_rule *rr) |
| xccdf_refine_rule
|
xccdf_level_t | xccdf_refine_rule_get_severity (const struct xccdf_refine_rule *rr) |
| xccdf_refine_rule
|
struct oscap_text_iterator * | xccdf_refine_rule_get_remarks (const struct xccdf_refine_rule *rr) |
| xccdf_refine_rule
|
const char * | xccdf_refine_value_get_item (const struct xccdf_refine_value *rv) |
XCCDF Value allows test parametrization or capturing output of tests.