Oval_state set methods. More...
Functions | |
| void | oval_state_set_comment (struct oval_state *, char *comment) |
| Sets a copy of the comment parameter to attribute Oval_state->comment. | |
| void | oval_state_set_deprecated (struct oval_state *, bool deprecated) |
| Sets attribute Oval_state->deprecated. | |
| void | oval_state_set_version (struct oval_state *, int version) |
| Sets attribute Oval_state->version. | |
| void | oval_state_add_content (struct oval_state *, struct oval_state_content *content) |
| Append instance of Oval_state_content to attribute Oval_state->state_contents. | |
Oval_state set methods.
These methods will not change the state of a locked instance.
| void oval_state_add_content | ( | struct oval_state * | , | |
| struct oval_state_content * | content | |||
| ) |
Append instance of Oval_state_content to attribute Oval_state->state_contents.
Oval_state_contents appended to a given Oval_state shall be freed by the API when the Oval_state is freed.
| content | - (Not NULL) the Oval_state_content to be appended. |
| void oval_state_set_comment | ( | struct oval_state * | , | |
| char * | comment | |||
| ) |
Sets a copy of the comment parameter to attribute Oval_state->comment.
| comment | - (Not NULL) the text of the comment. |
| void oval_state_set_deprecated | ( | struct oval_state * | , | |
| bool | deprecated | |||
| ) |
Sets attribute Oval_state->deprecated.
| void oval_state_set_version | ( | struct oval_state * | , | |
| int | version | |||
| ) |
Sets attribute Oval_state->version.
If Oval_state->version == 0 and parameter version >0, this method shall overwrite Oval_state->version with the parameter value. Otherwise, the method shall leave the Oval_state state unchanged.
| version | - (>0) the required version |
1.6.1