Oval_criteria_node set methods. More...
Functions | |
void | oval_criteria_node_set_negate (struct oval_criteria_node *, bool negate) |
Set attribute Oval_criteria_node->negate. | |
void | oval_criteria_set_node_type (struct oval_criteria_node *node, oval_criteria_node_type_t type) |
Set attribute Oval_criteria_node->type. | |
void | oval_criteria_node_set_operator (struct oval_criteria_node *, oval_operator_t op) |
Set attribute Oval_criteria->operator. | |
void | oval_criteria_node_add_subnode (struct oval_criteria_node *, struct oval_criteria_node *node) |
Append instance of Oval_criteria_node to attribute Oval_criteria->subnodes. | |
void | oval_criteria_node_set_test (struct oval_criteria_node *, struct oval_test *) |
Sets attribute Oval_criterion->test. | |
void | oval_criteria_node_set_definition (struct oval_criteria_node *, struct oval_definition *) |
Sets attribute Oval_extends->definition. |
Oval_criteria_node set methods.
These methods will not change the state of a locked instance.
void oval_criteria_node_add_subnode | ( | struct oval_criteria_node * | , | |
struct oval_criteria_node * | node | |||
) |
Append instance of Oval_criteria_node to attribute Oval_criteria->subnodes.
If Oval_criteria_node->type <> OVAL_NODETYPE_CRITERIA, this method shall return without changing the Oval_criteria_node state.
- | (Not NULL) the subnode to be appended. |
void oval_criteria_node_set_definition | ( | struct oval_criteria_node * | , | |
struct oval_definition * | ||||
) |
Sets attribute Oval_extends->definition.
If Oval_criteria_node->type == OVAL_NODETYPE_EXTENDDEF and the value of the definition attribute is NULL, this method shall overwrite the definition attribute value with the definition parameter. Otherwise the Oval_criteria_node state shall not be changed by this method.
void oval_criteria_node_set_negate | ( | struct oval_criteria_node * | , | |
bool | negate | |||
) |
Set attribute Oval_criteria_node->negate.
negate | - the required value of the negate attribute |
void oval_criteria_node_set_operator | ( | struct oval_criteria_node * | , | |
oval_operator_t | op | |||
) |
Set attribute Oval_criteria->operator.
If Oval_criteria_node->type == OVAL_NODETYPE_CRITERIA and the value of the operator attribute is OVAL_OPERATOR_UNKNOWN, this method shall overwrite the operator attribute value with the operator parameter. Otherwise the Oval_criteria_node state shall not be changed by this method.
void oval_criteria_node_set_test | ( | struct oval_criteria_node * | , | |
struct oval_test * | ||||
) |
Sets attribute Oval_criterion->test.
If Oval_criteria_node->type == OVAL_NODETYPE_CRITERION and the value of the test attribute is NULL, this method shall overwrite the test attribute value with the test parameter. Otherwise the Oval_criteria_node state shall not be changed by this method.
void oval_criteria_set_node_type | ( | struct oval_criteria_node * | node, | |
oval_criteria_node_type_t | type | |||
) |
Set attribute Oval_criteria_node->type.
type | - the required value of the type attribute |