Oval_variable set methods. More...
Functions | |
void | oval_variable_set_comment (struct oval_variable *, char *comment) |
set attribute Oval_variable->comment. | |
void | oval_variable_set_version (struct oval_variable *, int version) |
set attribute Oval_variable->version. | |
void | oval_variable_set_deprecated (struct oval_variable *, bool deprecated) |
set attribute Oval_variable->deprecated. | |
void | oval_variable_set_datatype (struct oval_variable *, oval_datatype_t) |
set attribute Oval_variable->datatype. | |
void | oval_variable_add_value (struct oval_variable *, struct oval_value *) |
Append an instance of Oval_value to the attribute Oval_constant->values. | |
void | oval_variable_set_component (struct oval_variable *, struct oval_component *component) |
Bind an instance of Oval_component to the attribute Oval_local->component. |
Oval_variable set methods.
These methods will not change the variable of a locked instance.
void oval_variable_add_value | ( | struct oval_variable * | , | |
struct oval_value * | ||||
) |
Append an instance of Oval_value to the attribute Oval_constant->values.
If attribute type <> OVAL_VARIABLE_CONSTANT or the value parameter is NULL the state of the Oval_variable shall not be changed by this method. Otherwise, The value parameter shall be appended and shall be freed by the API when the Oval_constant is freed
value | - the required value. |
void oval_variable_set_comment | ( | struct oval_variable * | , | |
char * | comment | |||
) |
set attribute Oval_variable->comment.
If attribute Oval_variable->comment == NULL this method shall overwrite the attribute with a copy of the comment parameter. Otherwise the variable state shall be unchanged.
comm | - (Not NULL) a copy of the comment parameter is set as the comment attribute. |
void oval_variable_set_component | ( | struct oval_variable * | , | |
struct oval_component * | component | |||
) |
Bind an instance of Oval_component to the attribute Oval_local->component.
If attribute type <> OVAL_VARIABLE_LOCAL, the component attribute <> NULL or the component parameter is NULL the state of the Oval_variable shall not be changed by this method. Otherwise, The component parameter shall be bound to the component attribute and shall be freed by the API when the Oval_local is freed
component | - the required component. |
void oval_variable_set_datatype | ( | struct oval_variable * | , | |
oval_datatype_t | ||||
) |
set attribute Oval_variable->datatype.
If attribute Oval_variable->datatype == OVAL_DATATYPE_UNKNOWN this method shall overwrite the attribute with the datatype parameter. Otherwise the variable state shall be unchanged.
datatype | - (Not OVAL_DATATYPE_UNKNOWN) a the required datatype. |
void oval_variable_set_deprecated | ( | struct oval_variable * | , | |
bool | deprecated | |||
) |
set attribute Oval_variable->deprecated.
deprecated | - the required deprecation toggle. |
void oval_variable_set_version | ( | struct oval_variable * | , | |
int | version | |||
) |
set attribute Oval_variable->version.
If attribute Oval_variable->version == 0 this method shall overwrite the attribute with the version parameter. Otherwise the variable state shall be unchanged.
version | - (>0) the required version. |