Setters
[Oval_criteria_node]

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.

Detailed Description

Oval_criteria_node set methods.

These methods will not change the state of a locked instance.

See also:
oval_criteria_node_get_locked
oval_criteria_node_set_locked

Function Documentation

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.

Note:
Instances of Oval_criteria_node bound to an Oval_criteria by this method should not be subsequently freed by the application using oval_criteria_node_free. These instances shall be freed by the API when the Oval_criteria is freed.
An application should not bind a given Oval_criteria_node as a subnode to more than one Oval_criteria, nor should a given Oval_criteria_node be bound more than once to a single Oval_criteria.
See also:
oval_criteria_node_get_subnodes
Parameters:
- (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.

See also:
oval_criteria_node_get_definition
void oval_criteria_node_set_negate ( struct oval_criteria_node ,
bool  negate 
)

Set attribute Oval_criteria_node->negate.

See also:
oval_criteria_node_get_negate
Parameters:
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.

See also:
oval_criteria_node_get_operator
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.

See also:
oval_criteria_node_get_test
void oval_criteria_set_node_type ( struct oval_criteria_node node,
oval_criteria_node_type_t  type 
)

Set attribute Oval_criteria_node->type.

See also:
oval_criteria_node_get_type
Parameters:
type - the required value of the type attribute

Generated on 4 Jan 2010 for Open SCAP Library by  doxygen 1.6.1