Setters
[Oval_state]

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.

Detailed Description

Oval_state set methods.

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

See also:
oval_state_get_locked
oval_state_set_locked

Function Documentation

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.

Note:
A specific instance of Oval_state_content should not be appended to more than one Oval_state, and an instance of Oval_state_content should not be appended more than once to a single Oval_state.
An instance of Oval_state_content that is appended to an Oval_state should not be freed independently by the application using oval_state_content_free.
See also:
oval_state_get_state_contents
Parameters:
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.

See also:
oval_state_get_comment
Parameters:
comment - (Not NULL) the text of the comment.
void oval_state_set_deprecated ( struct oval_state ,
bool  deprecated 
)

Sets attribute Oval_state->deprecated.

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

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

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