Open SCAP Library
oval_variables.h
Go to the documentation of this file.
1 
14 /*
15  * Copyright 2009-2010 Red Hat Inc., Durham, North Carolina.
16  * All Rights Reserved.
17  *
18  * This library is free software; you can redistribute it and/or
19  * modify it under the terms of the GNU Lesser General Public
20  * License as published by the Free Software Foundation; either
21  * version 2.1 of the License, or (at your option) any later version.
22  *
23  * This library is distributed in the hope that it will be useful,
24  * but WITHOUT ANY WARRANTY; without even the implied warranty of
25  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26  * Lesser General Public License for more details.
27  *
28  * You should have received a copy of the GNU Lesser General Public
29  * License along with this library; if not, write to the Free Software
30  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31  *
32  * Authors:
33  * "David Niemoller" <David.Niemoller@g2-inc.com>
34  */
35 
36 #ifndef OVAL_VARIABLES_H_
37 #define OVAL_VARIABLES_H_
38 
39 #include "oval_types.h"
40 
52 struct oval_variable_model * oval_variable_model_import(const char *file);
69 int oval_variable_model_export (struct oval_variable_model *, const char *file);
70 
71 
76 void oval_variable_model_set_generator(struct oval_variable_model *model, struct oval_generator *generator);
84 void oval_variable_model_add(struct oval_variable_model *model, char *varid, const char *comment, oval_datatype_t datatype, char *value);
91 struct oval_generator *oval_variable_model_get_generator(struct oval_variable_model *model);
98 
105 bool oval_variable_model_has_variable(struct oval_variable_model *model, const char * id);
121 const char *oval_variable_model_get_comment (struct oval_variable_model *, char *);
168 #endif /* OVAL_VARIABLES_H_ */
169 
170