Oval_test set methods. More...
Functions | |
| void | oval_test_set_subtype (struct oval_test *, oval_subtype_t subtype) |
| Sets attributes Oval_test->subtype and Oval_test->family. | |
| void | oval_test_add_note (struct oval_test *, char *note) |
| Appends a copy of the note parameter to attribute Oval_test->notes. | |
| void | oval_test_set_comment (struct oval_test *, char *comment) |
| Sets a copy of the comment parameter to attribute Oval_test->comment. | |
| void | oval_test_set_deprecated (struct oval_test *, bool deprecated) |
| Sets attribute Oval_test->deprecated. | |
| void | oval_test_set_version (struct oval_test *, int version) |
| Sets attribute Oval_test->version. | |
| void | oval_test_set_existence (struct oval_test *, oval_existence_t) |
| Sets attribute Oval_test->existence. | |
| void | oval_test_set_check (struct oval_test *, oval_check_t) |
| Sets attribute Oval_test->check. | |
| void | oval_test_set_object (struct oval_test *, struct oval_object *) |
| Sets attribute Oval_test->object. | |
| void | oval_test_set_state (struct oval_test *, struct oval_state *state) |
| Sets attribute Oval_test->state. | |
Oval_test set methods.
These methods will not change the state of a locked instance.
| void oval_test_add_note | ( | struct oval_test * | , | |
| char * | note | |||
| ) |
Appends a copy of the note parameter to attribute Oval_test->notes.
| note | - (Not NULL) the text of the appended note. |
| void oval_test_set_check | ( | struct oval_test * | , | |
| oval_check_t | ||||
| ) |
Sets attribute Oval_test->check.
If Oval_test->check == OVAL_CHECK_UNKNOWN and parameter check <> OVAL_CHECK_UNKNOWN, this method shall overwrite Oval_test->check with the parameter check. Otherwise, the method shall leave the Oval_test state unchanged.
| check | - (<> OVAL_CHECK_UNKNOWN) the required check |
| void oval_test_set_comment | ( | struct oval_test * | , | |
| char * | comment | |||
| ) |
Sets a copy of the comment parameter to attribute Oval_test->comment.
| comment | - (Not NULL) the text of the comment. |
| void oval_test_set_deprecated | ( | struct oval_test * | , | |
| bool | deprecated | |||
| ) |
Sets attribute Oval_test->deprecated.
| void oval_test_set_existence | ( | struct oval_test * | , | |
| oval_existence_t | ||||
| ) |
Sets attribute Oval_test->existence.
If Oval_test->existence == OVAL_CHECK_UNKNOWN and parameter existence <> OVAL_CHECK_UNKNOWN, this method shall overwrite Oval_test->existence with the parameter value. Otherwise, the method shall leave the Oval_test state unchanged.
| existence | - (<> OVAL_CHECK_UNKNOWN) the required existence |
| void oval_test_set_object | ( | struct oval_test * | , | |
| struct oval_object * | ||||
| ) |
Sets attribute Oval_test->object.
If Oval_test->object == NULL and parameter object <> NULL, this method shall overwrite Oval_test->object with the parameter object. Otherwise, the method shall leave the Oval_test state unchanged.
| object | - (<> NULL) the required object |
| void oval_test_set_state | ( | struct oval_test * | , | |
| struct oval_state * | state | |||
| ) |
Sets attribute Oval_test->state.
If Oval_test->state == NULL and parameter state <> NULL, this method shall overwrite Oval_test->state with the parameter state. Otherwise, the method shall leave the Oval_test state unchanged.
| state | - (<> NULL) the required state |
| void oval_test_set_subtype | ( | struct oval_test * | , | |
| oval_subtype_t | subtype | |||
| ) |
Sets attributes Oval_test->subtype and Oval_test->family.
If Oval_test->subtype == OVAL_SUBTYPE_UNKNOWN and parameter subtype <> OVAL_SUBTYPE_UNKNOWN, this method shall overwrite Oval_test->subtype with the value of the subtype parameter and Oval_test->family with the value of oval_family_t corresponding to the specified subtype. Otherwise, the state of the Oval_test instance shall not be changed by this method.
| subtype | - the required subtype value. |
| void oval_test_set_version | ( | struct oval_test * | , | |
| int | version | |||
| ) |
Sets attribute Oval_test->version.
If Oval_test->version == 0 and parameter version >0, this method shall overwrite Oval_test->version with the parameter value. Otherwise, the method shall leave the Oval_test state unchanged.
| version | - (>0) the required version |
1.6.1