00001
00002
00003
00004
00005
00006
00007
00008 #ifndef OVAL_VARIABLES_H_
00009 #define OVAL_VARIABLES_H_
00010
00011 #include "oval_types.h"
00012 #include "oval_definitions.h"
00013
00046 struct oval_variable_model *oval_variable_model_new(void);
00047
00052 bool oval_variable_model_is_valid(struct oval_variable_model *variable_model);
00053
00059 bool oval_variable_model_is_locked(struct oval_variable_model *variable_model);
00060
00067 void oval_variable_model_lock(struct oval_variable_model *variable_model);
00068
00069
00074 struct oval_variable_model *oval_variable_model_clone(struct oval_variable_model *);
00075
00076
00077
00083 void oval_variable_model_free(struct oval_variable_model *);
00084
00085
00095 int oval_variable_model_import
00096 (struct oval_variable_model *,
00097 struct oscap_import_source *,
00098 void *);
00099
00100
00108 int oval_variable_model_export
00109 (struct oval_variable_model *,
00110 struct oscap_export_target *);
00111
00112
00118 struct oval_string_iterator *oval_variable_model_get_variable_ids
00119 (struct oval_variable_model *);
00120
00121
00129 oval_datatype_t oval_variable_model_get_datatype
00130 (struct oval_variable_model *, char *);
00131
00132
00140 const char *oval_variable_model_get_comment
00141 (struct oval_variable_model *, char *);
00142
00143
00151 struct oval_string_iterator *oval_variable_model_get_values
00152 (struct oval_variable_model *, char *);
00153
00154
00162 void oval_variable_model_add(struct oval_variable_model *model, char *varid, const char *comment,
00163 oval_datatype_t datatype, char *value);
00164
00165
00170 #endif