00001
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef OVAL_VARIABLES_H_
00037 #define OVAL_VARIABLES_H_
00038
00039 #include "oval_types.h"
00040 #include "oscap.h"
00041 #include "oscap_source.h"
00042
00047 struct oval_variable_model *oval_variable_model_new(void);
00048
00055 struct oval_variable_model *oval_variable_model_import_source(struct oscap_source *source);
00056
00066 OSCAP_DEPRECATED(struct oval_variable_model *oval_variable_model_import(const char *file));
00067
00073 struct oval_variable_model *oval_variable_model_clone(struct oval_variable_model *);
00079 void oval_variable_model_free(struct oval_variable_model *);
00084 int oval_variable_model_export (struct oval_variable_model *, const char *file);
00085
00086
00091 void oval_variable_model_set_generator(struct oval_variable_model *model, struct oval_generator *generator);
00099 void oval_variable_model_add(struct oval_variable_model *model, char *varid, const char *comment, oval_datatype_t datatype, char *value);
00106 struct oval_generator *oval_variable_model_get_generator(struct oval_variable_model *model);
00112 struct oval_string_iterator *oval_variable_model_get_variable_ids (struct oval_variable_model *);
00113
00120 bool oval_variable_model_has_variable(struct oval_variable_model *model, const char * id);
00128 oval_datatype_t oval_variable_model_get_datatype (struct oval_variable_model *, char *);
00136 const char *oval_variable_model_get_comment (struct oval_variable_model *, char *);
00144 struct oval_value_iterator *oval_variable_model_get_values(struct oval_variable_model *, char *);
00155 struct oval_variable_model_iterator;
00160 bool oval_variable_model_iterator_has_more(struct oval_variable_model_iterator *);
00165 struct oval_variable_model *oval_variable_model_iterator_next(struct oval_variable_model_iterator *);
00170 void oval_variable_model_iterator_free(struct oval_variable_model_iterator *);
00183 #endif
00184
00185