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. |
Oval_object set methods.
These methods will not change the state of a locked instance.
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.
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.
comment | - (Not NULL) the text of the comment. |
void oval_object_set_deprecated | ( | struct oval_object * | , | |
bool | deprecated | |||
) |
Sets attribute Oval_object->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.
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.
version | - (>0) the required version |