• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

/home/pvrabec/project/openscap/openscap-0.7.2/src/OVAL/public/oval_variables.h

Go to the documentation of this file.
00001 
00014 /*
00015  * Copyright 2009-2010 Red Hat Inc., Durham, North Carolina.
00016  * All Rights Reserved.
00017  *
00018  * This library is free software; you can redistribute it and/or
00019  * modify it under the terms of the GNU Lesser General Public
00020  * License as published by the Free Software Foundation; either
00021  * version 2.1 of the License, or (at your option) any later version.
00022  *
00023  * This library is distributed in the hope that it will be useful,
00024  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00025  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00026  * Lesser General Public License for more details.
00027  *
00028  * You should have received a copy of the GNU Lesser General Public
00029  * License along with this library; if not, write to the Free Software
00030  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00031  *
00032  * Authors:
00033  *      "David Niemoller" <David.Niemoller@g2-inc.com>
00034  */
00035     
00036 #ifndef OVAL_VARIABLES_H_
00037 #define OVAL_VARIABLES_H_
00038     
00039 #include "oval_types.h"
00040 
00045 struct oval_variable_model *oval_variable_model_new(void);
00052 struct oval_variable_model * oval_variable_model_import(const char *file);
00058 struct oval_variable_model *oval_variable_model_clone(struct oval_variable_model *);
00064 void oval_variable_model_free(struct oval_variable_model *);
00069 int oval_variable_model_export (struct oval_variable_model *, const char *file);
00070 
00071 
00076 void oval_variable_model_set_generator(struct oval_variable_model *model, struct oval_generator *generator);
00083 void oval_variable_model_lock(struct oval_variable_model *variable_model);
00091 void oval_variable_model_add(struct oval_variable_model *model, char *varid, const char *comment, oval_datatype_t datatype, char *value);
00098 struct oval_generator *oval_variable_model_get_generator(struct oval_variable_model *model);
00104 struct oval_string_iterator *oval_variable_model_get_variable_ids (struct oval_variable_model *);
00105 
00112 bool oval_variable_model_has_variable(struct oval_variable_model *model, const char * id);
00120 oval_datatype_t oval_variable_model_get_datatype (struct oval_variable_model *, char *);
00128 const char *oval_variable_model_get_comment (struct oval_variable_model *, char *);
00136 struct oval_string_iterator *oval_variable_model_get_values (struct oval_variable_model *, char *);
00142 bool oval_variable_model_is_locked(struct oval_variable_model *variable_model);
00154 bool oval_variable_model_is_valid(struct oval_variable_model *variable_model);
00163 #endif  /* OVAL_VARIABLES_H_ */
00164 
00165 

Generated on Wed Apr 20 2011 for Open SCAP Library by  doxygen 1.7.1