Oval_definition set methods.
More...
Detailed Description
Oval_definition set methods.
These methods will not change the state of a locked instance.
- See also:
- oval_definition_get_locked
-
oval_definition_set_locked
Function Documentation
Append instance of Oval_affected to attribute Oval_definition->affected.
- Note:
- Instances of Oval_affected bound to Oval_definition by this method should not be subsequently freed by the application using oval_affected_free. These instances shall be freed by the API when the Oval_definition is freed.
-
A given instance of Oval_affected should not be appended by an application to more than one instance of Oval_definition, nor should the given instance of Oval_affected be appended more than once to a single instance of Oval_definition.
- See also:
- oval_definition_get_affected
- Parameters:
-
| affected | - appended instance of Oval_affected. |
Append instance of Oval_reference to attribute Oval_definition->references.
- Note:
- Instances of Oval_reference bound to Oval_definition by this method should not be subsequently freed by the application using oval_reference_free. These instances shall be freed by the API when the Oval_definition is freed.
-
A given instance of Oval_reference should not be appended by an application to more than one instance of Oval_definition, nor should the given instance of Oval_reference be appended more than once to a single instance of Oval_definition.
- See also:
- oval_definition_get_references
- Parameters:
-
| reference | - appended instance of Oval_reference. |
Set attribute Oval_definition->criteria.
This method shall overwrite a NULL criteria attribute value with the criteria parameter only if the criteria parameter is an instance of Oval_criteria (i.e. criteria->type == OVAL_NODETYPE_CRITERIA). Other values of the criteria attribute shall not be overwritten by this method.
- Note:
- Instances of Oval_criteria bound to Oval_definition 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_definition is freed.
-
An application should not bind a given instance of Oval_criteria to more than one instance of Oval_definition, nor should a given instance of Oval_criteria be bound to both an Oval_definition and an Oval_criteria (using oval_criteria_node_add_subnode).
- See also:
- oval_definition_is_valid
-
oval_definition_get_criteria
- Parameters:
-
| criteria | - the required instance of Oval_criteria |
void oval_definition_set_deprecated |
( |
struct oval_definition * |
, |
|
|
bool |
deprecated | |
|
) |
| | |
void oval_definition_set_description |
( |
struct oval_definition * |
, |
|
|
char * |
description | |
|
) |
| | |
void oval_definition_set_version |
( |
struct oval_definition * |
, |
|
|
int |
version | |
|
) |
| | |