Setters
[Oval_variable]

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.

Detailed Description

Oval_variable set methods.

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

See also:
oval_variable_get_locked
oval_variable_set_locked

Function Documentation

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

Note:
When a value is appended to an Oval_constant by an application, that value should not be subsequently freed by the application using oval_value_free.
An application should not append an Oval_value to more than one Oval_constant, and that an Oval_value should not be bound more than once to a single Oval_constant.
See also:
oval_variable_get_values
Parameters:
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.

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

Note:
When an Oval_component is bound to an Oval_local by an application, the Oval_component should not be subsequently freed by the application using oval_component_free.
An application should not bind a single Oval_component to more than one Oval_local or to an Oval_local and an Oval_function.
See also:
oval_variable_get_component
Parameters:
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.

See also:
oval_variable_get_datatype
Parameters:
datatype - (Not OVAL_DATATYPE_UNKNOWN) a the required datatype.
void oval_variable_set_deprecated ( struct oval_variable ,
bool  deprecated 
)

set attribute Oval_variable->deprecated.

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

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

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