Setters
[Oval_definition]

Oval_definition set methods. More...

Functions

int oval_definition_get_version (struct oval_definition *)
 Returns attribute Oval_definition->version.
void oval_definition_set_version (struct oval_definition *, int version)
 Set attribute Oval_definition->version.
void oval_definition_set_class (struct oval_definition *, oval_definition_class_t)
 Set attribute Oval_definition->class.
void oval_definition_set_deprecated (struct oval_definition *, bool deprecated)
 Set attribute Oval_definition->deprecated.
void oval_definition_set_title (struct oval_definition *, char *title)
 Set attribute Oval_definition->title.
void oval_definition_set_description (struct oval_definition *, char *description)
 Set attribute Oval_definition->description.
void oval_definition_add_affected (struct oval_definition *, struct oval_affected *affected)
 Append instance of Oval_affected to attribute Oval_definition->affected.
void oval_definition_add_reference (struct oval_definition *, struct oval_reference *reference)
 Append instance of Oval_reference to attribute Oval_definition->references.
void oval_definition_add_note (struct oval_definition *, char *note)
 Append a copy of the note parameter to attribute Oval_definition->notes.
void oval_definition_set_criteria (struct oval_definition *, struct oval_criteria_node *criteria)
 Set attribute Oval_definition->criteria.

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

void oval_definition_add_affected ( struct oval_definition ,
struct oval_affected affected 
)

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.
void oval_definition_add_note ( struct oval_definition ,
char *  note 
)

Append a copy of the note parameter to attribute Oval_definition->notes.

See also:
oval_definition_get_notes
Parameters:
note - the note text.
void oval_definition_add_reference ( struct oval_definition ,
struct oval_reference reference 
)

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.
int oval_definition_get_version ( struct oval_definition  ) 

Returns attribute Oval_definition->version.

See also:
oval_definition_set_version
void oval_definition_set_class ( struct oval_definition ,
oval_definition_class_t   
)

Set attribute Oval_definition->class.

This method shall overwrite a OVAL_CLASS_UNKNOWN class attribute value with the value of the class parameter. Valid values of the class attribute shall not be overwritten by this method.

See also:
oval_definition_is_valid
oval_definition_get_class
Parameters:
class - the required class
void oval_definition_set_criteria ( struct oval_definition ,
struct oval_criteria_node criteria 
)

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 
)

Set attribute Oval_definition->deprecated.

Parameters:
deprecated - the required deprecation toggle.
See also:
oval_definition_get_deprecated
void oval_definition_set_description ( struct oval_definition ,
char *  description 
)

Set attribute Oval_definition->description.

This method shall overwrite a NULL description attribute value with a copy of the description parameter. Valid values of the description attribute shall not be overwritten by this method.

See also:
oval_definition_is_valid
oval_definition_get_description
Parameters:
description - the required description
void oval_definition_set_title ( struct oval_definition ,
char *  title 
)

Set attribute Oval_definition->title.

This method shall overwrite a NULL title attribute value with a copy of the title parameter. Valid values of the title attribute shall not be overwritten by this method.

See also:
oval_definition_is_valid
oval_definition_get_title
Parameters:
title - the required title
void oval_definition_set_version ( struct oval_definition ,
int  version 
)

Set attribute Oval_definition->version.

This method shall overwrite a zero version attribute value with the value of the version parameter. Valid values of the version attribute shall not be overwritten by this method.

See also:
oval_definition_is_valid
oval_definition_get_version
Parameters:
version - the required version

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