36 #ifndef OVAL_VARIABLES_H_
37 #define OVAL_VARIABLES_H_
struct oval_variable_model * oval_variable_model_clone(struct oval_variable_model *)
Clone an OVAL variable model.
Definition: oval_varModel.c:124
void oval_variable_model_add(struct oval_variable_model *model, char *varid, const char *comment, oval_datatype_t datatype, char *value)
Get the values bound to a specified external variable.
Definition: oval_varModel.c:167
struct oval_variable_model * oval_variable_model_new(void)
Create a new empty OVAL variable model.
Definition: oval_varModel.c:114
Definition: oval_definitions.h:423
oval_datatype_t oval_variable_model_get_datatype(struct oval_variable_model *, char *)
Get a specified external variable datatype.
Definition: oval_varModel.c:416
struct oval_value_iterator * oval_variable_model_get_values(struct oval_variable_model *, char *)
Get the values bound to a specified external variable.
Definition: oval_varModel.c:431
const char * oval_variable_model_get_comment(struct oval_variable_model *, char *)
Get a specified external variable comment.
Definition: oval_varModel.c:424
oval_datatype_t
Datatypes.
Definition: oval_definitions.h:146
bool oval_variable_model_iterator_has_more(struct oval_variable_model_iterator *)
Returns true if iterator not exhausted.
Definition: oval_varModel.c:83
void oval_variable_model_free(struct oval_variable_model *)
Free memory allocated to a specified oval_variable_model.
Definition: oval_varModel.c:146
bool oval_variable_model_has_variable(struct oval_variable_model *model, const char *id)
Return true if variable with ID is present in variable model, false otherwise.
Definition: oval_varModel.c:397
The OVAL variable model facilitates access to external variable value bindings used to to constrain t...
Definition: oval_varModel.c:54
Definition: oval_generator.c:43
int oval_variable_model_export(struct oval_variable_model *, const char *file)
Export the specified oval_variable_model into file.
Definition: oval_varModel.c:380
struct oval_variable_model * oval_variable_model_iterator_next(struct oval_variable_model_iterator *)
Returns next instance of oval_variable_model.
Definition: oval_varModel.c:88
struct oval_string_iterator * oval_variable_model_get_variable_ids(struct oval_variable_model *)
Get all external variables managed by a specified oval_variable_model.
Definition: oval_varModel.c:411
void oval_variable_model_iterator_free(struct oval_variable_model_iterator *)
Free iterator.
Definition: oval_varModel.c:93
struct oval_variable_model * oval_variable_model_import(const char *file)
Import the content from the file into a new oval_variable_model.
Definition: oval_varModel.c:301