oval_variables.h
Go to the documentation of this file.
/*
* Copyright 2009-2010 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Authors:
* "David Niemoller" <David.Niemoller@g2-inc.com>
*/
#ifndef OVAL_VARIABLES_H_
#define OVAL_VARIABLES_H_
#include "oval_types.h"
struct oval_variable_model *oval_variable_model_new(void);
struct oval_variable_model * oval_variable_model_import(const char *file);
struct oval_variable_model *oval_variable_model_clone(struct oval_variable_model *);
void oval_variable_model_free(struct oval_variable_model *);
int oval_variable_model_export (struct oval_variable_model *, const char *file);
void oval_variable_model_set_generator(struct oval_variable_model *model, struct oval_generator *generator);
void oval_variable_model_add(struct oval_variable_model *model, char *varid, const char *comment, oval_datatype_t datatype, char *value);
struct oval_generator *oval_variable_model_get_generator(struct oval_variable_model *model);
struct oval_string_iterator *oval_variable_model_get_variable_ids (struct oval_variable_model *);
bool oval_variable_model_has_variable(struct oval_variable_model *model, const char * id);
oval_datatype_t oval_variable_model_get_datatype (struct oval_variable_model *, char *);
const char *oval_variable_model_get_comment (struct oval_variable_model *, char *);
struct oval_value_iterator *oval_variable_model_get_values(struct oval_variable_model *, char *);
struct oval_variable_model_iterator;
bool oval_variable_model_iterator_has_more(struct oval_variable_model_iterator *);
struct oval_variable_model *oval_variable_model_iterator_next(struct oval_variable_model_iterator *);
void oval_variable_model_iterator_free(struct oval_variable_model_iterator *);
#endif /* OVAL_VARIABLES_H_ */