Setters
[Oval_test]

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.

Detailed Description

Oval_test set methods.

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

See also:
oval_test_get_locked
oval_test_set_locked

Function Documentation

void oval_test_add_note ( struct oval_test ,
char *  note 
)

Appends a copy of the note parameter to attribute Oval_test->notes.

See also:
oval_test_get_notes
Parameters:
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.

Note:
If Oval_test->state == NULL, the value of Oval_test->check is ignored.
See also:
oval_test_get_check
Parameters:
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.

See also:
oval_test_get_comment
Parameters:
comment - (Not NULL) the text of the comment.
void oval_test_set_deprecated ( struct oval_test ,
bool  deprecated 
)

Sets attribute Oval_test->deprecated.

See also:
oval_test_get_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.

See also:
oval_test_get_existence
Parameters:
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.

See also:
oval_test_get_object
Parameters:
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.

See also:
oval_test_get_state
Parameters:
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.

See also:
oval_test_get_subtype
oval_test_get_family
Parameters:
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.

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

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