Setters
[Oval_object]

Oval_object set methods. More...

Functions

void oval_object_set_subtype (struct oval_object *, oval_subtype_t subtype)
 Sets attributes Oval_object->subtype and Oval_object->family.
void oval_object_set_comment (struct oval_object *, char *comment)
 Sets a copy of the comment parameter to attribute Oval_object->comment.
void oval_object_set_deprecated (struct oval_object *, bool deprecated)
 Sets attribute Oval_object->deprecated.
void oval_object_set_version (struct oval_object *, int version)
 Sets attribute Oval_object->version.
void oval_object_add_behavior (struct oval_object *, struct oval_behavior *behavior)
 Append instance of Oval_behavior to attribute Oval_object->behaviors.

Detailed Description

Oval_object set methods.

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

See also:
oval_object_get_locked
oval_object_set_locked

Function Documentation

void oval_object_add_behavior ( struct oval_object ,
struct oval_behavior behavior 
)

Append instance of Oval_behavior to attribute Oval_object->behaviors.

Oval_behaviors appended to a given Oval_object shall be freed by the API when the Oval_object is freed.

Note:
A specific instance of Oval_behavior should not be appended to more than one Oval_object, and an instance of Oval_behavior should not be appended more than once to a single Oval_object.
An instance of Oval_behavior that is appended to an Oval_object should not be freed independently by the application using oval_behavior_free.
See also:
oval_object_get_behaviors
Parameters:
behavior - (Not NULL) the Oval_behavior to be appended.
void oval_object_set_comment ( struct oval_object ,
char *  comment 
)

Sets a copy of the comment parameter to attribute Oval_object->comment.

See also:
oval_object_get_comment
Parameters:
comment - (Not NULL) the text of the comment.
void oval_object_set_deprecated ( struct oval_object ,
bool  deprecated 
)

Sets attribute Oval_object->deprecated.

See also:
oval_object_get_deprecated
void oval_object_set_subtype ( struct oval_object ,
oval_subtype_t  subtype 
)

Sets attributes Oval_object->subtype and Oval_object->family.

If Oval_object->subtype == OVAL_SUBTYPE_UNKNOWN and parameter subtype <> OVAL_SUBTYPE_UNKNOWN, this method shall overwrite Oval_object->subtype with the value of the subtype parameter and Oval_object->family with the value of oval_family_t corresponding to the specified subtype. Otherwise, the state of the Oval_object instance shall not be changed by this method.

See also:
oval_object_get_subtype
oval_object_get_family
Parameters:
subtype - the required subtype value.
void oval_object_set_version ( struct oval_object ,
int  version 
)

Sets attribute Oval_object->version.

If Oval_object->version == 0 and parameter version >0, this method shall overwrite Oval_object->version with the parameter value. Otherwise, the method shall leave the Oval_object state unchanged.

See also:
oval_object_get_version
Parameters:
version - (>0) the required version

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