Loading...
Searching...
No Matches
oval_variables.h
Go to the documentation of this file.
/*
* Copyright 2009-2014 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
* "David Niemoller" <David.Niemoller@g2-inc.com>
*/
#ifndef OVAL_VARIABLES_H_
#define OVAL_VARIABLES_H_
#include "oval_types.h"
#include "oscap.h"
#include "oscap_source.h"
#include "oscap_export.h"
OSCAP_API struct oval_variable_model *oval_variable_model_new(void);
OSCAP_API struct oval_variable_model *oval_variable_model_import_source(struct oscap_source *source);
OSCAP_API struct oval_variable_model *oval_variable_model_clone(struct oval_variable_model *);
OSCAP_API void oval_variable_model_free(struct oval_variable_model *);
OSCAP_API int oval_variable_model_export (struct oval_variable_model *, const char *file);
OSCAP_API void oval_variable_model_set_generator(struct oval_variable_model *model, struct oval_generator *generator);
OSCAP_API void oval_variable_model_add(struct oval_variable_model *model, char *varid, const char *comment, oval_datatype_t datatype, char *value);
OSCAP_API struct oval_generator *oval_variable_model_get_generator(struct oval_variable_model *model);
OSCAP_API struct oval_string_iterator *oval_variable_model_get_variable_ids (struct oval_variable_model *);
OSCAP_API bool oval_variable_model_has_variable(struct oval_variable_model *model, const char * id);
OSCAP_API oval_datatype_t oval_variable_model_get_datatype (struct oval_variable_model *, char *);
OSCAP_API const char *oval_variable_model_get_comment (struct oval_variable_model *, char *);
OSCAP_API struct oval_value_iterator *oval_variable_model_get_values(struct oval_variable_model *, char *);
struct oval_variable_model_iterator;
OSCAP_API bool oval_variable_model_iterator_has_more(struct oval_variable_model_iterator *);
OSCAP_API struct oval_variable_model *oval_variable_model_iterator_next(struct oval_variable_model_iterator *);
OSCAP_API void oval_variable_model_iterator_free(struct oval_variable_model_iterator *);
#endif /* OVAL_VARIABLES_H_ */
oval_datatype_t
oval_datatype_t
Datatypes.
Definition oval_definitions.h:149
oval_variable_model_iterator::oval_variable_model_iterator_free
OSCAP_API void oval_variable_model_iterator_free(struct oval_variable_model_iterator *)
Free iterator.
Definition oval_varModel.c:95
oval_variable_model::oval_variable_model_add
OSCAP_API void oval_variable_model_add(struct oval_variable_model *model, char *varid, const char *comment, oval_datatype_t datatype, char *value)
Get the values bound to a specified external variable.
Definition oval_varModel.c:169
oval_variable_model::oval_variable_model_clone
OSCAP_API struct oval_variable_model * oval_variable_model_clone(struct oval_variable_model *)
Clone an OVAL variable model.
Definition oval_varModel.c:126
oval_variable_model::oval_variable_model_import_source
OSCAP_API struct oval_variable_model * oval_variable_model_import_source(struct oscap_source *source)
Import the content from the oscap_source into a new oval_variable_model.
Definition oval_varModel.c:302
oval_variable_model_iterator::oval_variable_model_iterator_next
OSCAP_API struct oval_variable_model * oval_variable_model_iterator_next(struct oval_variable_model_iterator *)
Returns next instance of oval_variable_model.
Definition oval_varModel.c:90
oval_variable_model_iterator::oval_variable_model_iterator_has_more
OSCAP_API bool oval_variable_model_iterator_has_more(struct oval_variable_model_iterator *)
Returns true if iterator not exhausted.
Definition oval_varModel.c:85
oval_variable_model::oval_variable_model_export
OSCAP_API int oval_variable_model_export(struct oval_variable_model *, const char *file)
Export the specified oval_variable_model into file.
Definition oval_varModel.c:375
oval_variable_model::oval_variable_model_new
OSCAP_API struct oval_variable_model * oval_variable_model_new(void)
Create a new empty OVAL variable model.
Definition oval_varModel.c:116
oval_variable_model::oval_variable_model_free
OSCAP_API void oval_variable_model_free(struct oval_variable_model *)
Free memory allocated to a specified oval_variable_model.
Definition oval_varModel.c:148
oscap.h
General OpenScap functions and types.
oval_types.h
oscap_source
Definition oscap_source.c:66
oval_generator
Definition oval_generator.c:47
oval_string_iterator
oval_value_iterator
oval_variable_model_iterator
oval_variable_model
The OVAL variable model facilitates access to external variable value bindings used to to constrain t...
Definition oval_varModel.c:56