Loading...
Searching...
No Matches
oval_definitions.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_DEFINITIONS
#define OVAL_DEFINITIONS
#include "oscap.h"
#include "oscap_source.h"
#include "oval_adt.h"
#include "oval_types.h"
#include "oval_schema_version.h"
#include <stdbool.h>
#include "oscap_export.h"
typedef enum {
OVAL_AFCFML_UNKNOWN = 0,
OVAL_AFCFML_CATOS = 1,
OVAL_AFCFML_IOS = 2,
OVAL_AFCFML_MACOS = 3,
OVAL_AFCFML_PIXOS = 4,
OVAL_AFCFML_UNDEFINED = 5,
OVAL_AFCFML_UNIX = 6,
OVAL_AFCFML_WINDOWS = 7
} oval_affected_family_t;
typedef enum {
OVAL_NODETYPE_UNKNOWN = 0,
OVAL_NODETYPE_CRITERIA = 1,
OVAL_NODETYPE_CRITERION = 2,
OVAL_NODETYPE_EXTENDDEF = 3
} oval_criteria_node_type_t;
typedef enum {
OVAL_OPERATOR_UNKNOWN = 0,
OVAL_OPERATOR_AND = 1,
OVAL_OPERATOR_ONE = 2,
OVAL_OPERATOR_OR = 3,
OVAL_OPERATOR_XOR = 4
} oval_operator_t;
typedef enum {
OVAL_OPERATION_UNKNOWN = 0,
OVAL_OPERATION_BITWISE_AND,
OVAL_OPERATION_BITWISE_OR,
OVAL_OPERATION_CASE_INSENSITIVE_EQUALS,
OVAL_OPERATION_CASE_INSENSITIVE_NOT_EQUAL,
OVAL_OPERATION_EQUALS,
OVAL_OPERATION_GREATER_THAN,
OVAL_OPERATION_GREATER_THAN_OR_EQUAL,
OVAL_OPERATION_LESS_THAN,
OVAL_OPERATION_LESS_THAN_OR_EQUAL,
OVAL_OPERATION_NOT_EQUAL,
OVAL_OPERATION_PATTERN_MATCH,
OVAL_OPERATION_SUBSET_OF,
OVAL_OPERATION_SUPERSET_OF,
} oval_operation_t;
typedef enum {
OVAL_EXISTENCE_UNKNOWN = 0,
OVAL_ALL_EXIST = 1,
OVAL_ANY_EXIST = 2,
OVAL_AT_LEAST_ONE_EXISTS = 3,
OVAL_ONLY_ONE_EXISTS = 4,
OVAL_NONE_EXIST = 5
} oval_existence_t;
typedef enum {
OVAL_CHECK_UNKNOWN = 0,
OVAL_CHECK_ALL = 1,
OVAL_CHECK_AT_LEAST_ONE = 2,
OVAL_CHECK_NONE_EXIST = 3,
OVAL_CHECK_NONE_SATISFY = 4,
OVAL_CHECK_ONLY_ONE = 5
} oval_check_t;
typedef enum {
OVAL_OBJECTCONTENT_UNKNOWN = 0,
OVAL_OBJECTCONTENT_ENTITY = 1,
OVAL_OBJECTCONTENT_SET = 2,
OVAL_OBJECTCONTENT_FILTER = 3
} oval_object_content_type_t;
typedef enum {
OVAL_ENTITY_TYPE_UNKNOWN,
OVAL_ENTITY_TYPE_ANY,
OVAL_ENTITY_TYPE_BINARY,
OVAL_ENTITY_TYPE_BOOLEAN,
OVAL_ENTITY_TYPE_FLOAT,
OVAL_ENTITY_TYPE_INTEGER,
OVAL_ENTITY_TYPE_STRING,
} oval_entity_type_t;
typedef enum {
OVAL_FILTER_ACTION_UNKNOWN = 0,
OVAL_FILTER_ACTION_EXCLUDE,
OVAL_FILTER_ACTION_INCLUDE
} oval_filter_action_t;
typedef enum {
OVAL_DATATYPE_UNKNOWN = 0,
OVAL_DATATYPE_BINARY,
OVAL_DATATYPE_BOOLEAN,
OVAL_DATATYPE_EVR_STRING,
OVAL_DATATYPE_FILESET_REVISION,
OVAL_DATATYPE_FLOAT,
OVAL_DATATYPE_INTEGER,
OVAL_DATATYPE_IOS_VERSION,
OVAL_DATATYPE_IPV4ADDR,
OVAL_DATATYPE_IPV6ADDR,
OVAL_DATATYPE_RECORD,
OVAL_DATATYPE_SEXP,
OVAL_DATATYPE_STRING,
OVAL_DATATYPE_STRING_M,
OVAL_DATATYPE_VERSION,
OVAL_DATATYPE_DEBIAN_EVR_STRING
} oval_datatype_t;
typedef enum {
OVAL_ENTITY_VARREF_UNKNOWN,
OVAL_ENTITY_VARREF_NONE,
OVAL_ENTITY_VARREF_ATTRIBUTE,
OVAL_ENTITY_VARREF_ELEMENT
} oval_entity_varref_type_t;
typedef enum {
OVAL_SET_UNKNOWN,
OVAL_SET_AGGREGATE,
OVAL_SET_COLLECTIVE
} oval_setobject_type_t;
typedef enum {
OVAL_SET_OPERATION_UNKNOWN,
OVAL_SET_OPERATION_COMPLEMENT = 1,
OVAL_SET_OPERATION_INTERSECTION = 2,
OVAL_SET_OPERATION_UNION = 3
} oval_setobject_operation_t;
typedef enum {
OVAL_VARIABLE_UNKNOWN,
OVAL_VARIABLE_EXTERNAL,
OVAL_VARIABLE_CONSTANT,
OVAL_VARIABLE_LOCAL
} oval_variable_type_t;
#define OVAL_FUNCTION 4
typedef enum {
OVAL_COMPONENT_UNKNOWN = 0,
OVAL_COMPONENT_LITERAL = 1,
OVAL_COMPONENT_OBJECTREF = 2,
OVAL_COMPONENT_VARREF = 3,
OVAL_COMPONENT_FUNCTION = 4,
OVAL_FUNCTION_BEGIN = OVAL_FUNCTION + 1,
OVAL_FUNCTION_CONCAT = OVAL_FUNCTION + 2,
OVAL_FUNCTION_END = OVAL_FUNCTION + 3,
OVAL_FUNCTION_SPLIT = OVAL_FUNCTION + 4,
OVAL_FUNCTION_SUBSTRING = OVAL_FUNCTION + 5,
OVAL_FUNCTION_TIMEDIF = OVAL_FUNCTION + 6,
OVAL_FUNCTION_ESCAPE_REGEX = OVAL_FUNCTION + 7,
OVAL_FUNCTION_REGEX_CAPTURE = OVAL_FUNCTION + 8,
OVAL_FUNCTION_ARITHMETIC = OVAL_FUNCTION + 9,
OVAL_FUNCTION_COUNT = OVAL_FUNCTION + 10,
OVAL_FUNCTION_UNIQUE = OVAL_FUNCTION + 11,
OVAL_FUNCTION_GLOB_TO_REGEX = OVAL_FUNCTION + 12,
OVAL_FUNCTION_LAST = OVAL_FUNCTION + 13
} oval_component_type_t;
typedef enum {
OVAL_ARITHMETIC_UNKNOWN = 0,
OVAL_ARITHMETIC_ADD = 1,
OVAL_ARITHMETIC_MULTIPLY = 2,
OVAL_ARITHMETIC_SUBTRACT = 3, //NOT YET SUPPORTED BY OVAL
OVAL_ARITHMETIC_DIVIDE = 4 //NOT YET SUPPORTED BY OVAL
} oval_arithmetic_operation_t;
typedef enum {
OVAL_DATETIME_UNKNOWN = 0,
OVAL_DATETIME_YEAR_MONTH_DAY = 1,
OVAL_DATETIME_MONTH_DAY_YEAR = 2,
OVAL_DATETIME_DAY_MONTH_YEAR = 3,
OVAL_DATETIME_WIN_FILETIME = 4,
OVAL_DATETIME_SECONDS_SINCE_EPOCH = 5,
OVAL_DATETIME_CIM_DATETIME = 6
} oval_datetime_format_t;
typedef enum {
OVAL_RECORD_FIELD_UNKNOWN = 0,
OVAL_RECORD_FIELD_STATE = 1,
OVAL_RECORD_FIELD_ITEM = 2,
} oval_record_field_type_t;
OSCAP_API oval_family_t oval_subtype_get_family(oval_subtype_t);
OSCAP_API const char *oval_operator_get_text(oval_operator_t);
OSCAP_API const char *oval_subtype_get_text(oval_subtype_t);
OSCAP_API const char *oval_subtype_to_str(oval_subtype_t);
OSCAP_API oval_subtype_t oval_subtype_from_str(const char *family_str, const char *subtype_str);
OSCAP_API const char *oval_family_get_text(oval_family_t);
OSCAP_API const char *oval_check_get_text(oval_check_t);
OSCAP_API const char *oval_existence_get_text(oval_existence_t);
OSCAP_API const char *oval_affected_family_get_text(oval_affected_family_t);
OSCAP_API const char *oval_datatype_get_text(oval_datatype_t);
OSCAP_API oval_datatype_t oval_datatype_from_text(const char *);
OSCAP_API const char *oval_operation_get_text(oval_operation_t);
OSCAP_API oval_operation_t oval_operation_from_text(const char *);
OSCAP_API const char *oval_set_operation_get_text(oval_setobject_operation_t);
OSCAP_API const char *oval_datetime_format_get_text(oval_datetime_format_t);
OSCAP_API const char *oval_arithmetic_operation_get_text(oval_arithmetic_operation_t);
OSCAP_API const char *oval_filter_action_get_text(oval_filter_action_t);
struct oval_definition_model;
struct oval_definition;
struct oval_definition_iterator;
struct oval_test;
struct oval_test_iterator;
struct oval_object;
struct oval_object_iterator;
struct oval_state;
struct oval_state_iterator;
struct oval_variable;
struct oval_variable_possible_value;
struct oval_variable_possible_value_iterator;
struct oval_variable_possible_restriction;
struct oval_variable_possible_restriction_iterator;
struct oval_variable_restriction;
struct oval_variable_restriction_iterator;
struct oval_variable_iterator;
struct oval_affected;
struct oval_affected_iterator;
struct oval_reference;
struct oval_reference_iterator;
struct oval_criteria_node;
struct oval_criteria_node_iterator;
struct oval_object_content;
struct oval_object_content_iterator;
struct oval_behavior;
struct oval_behavior_iterator;
struct oval_state_content;
struct oval_state_content_iterator;
struct oval_value;
struct oval_value_iterator;
struct oval_entity;
struct oval_entity_iterator;
struct oval_record_field;
struct oval_record_field_iterator;
struct oval_setobject;
struct oval_setobject_iterator;
struct oval_filter;
struct oval_filter_iterator;
struct oval_component;
struct oval_component_iterator;
struct oval_generator;
OSCAP_API struct oval_generator *oval_generator_new(void);
OSCAP_API void oval_generator_free(struct oval_generator *generator);
OSCAP_API struct oval_generator *oval_generator_clone(struct oval_generator *old_generator);
OSCAP_API char *oval_generator_get_product_name(struct oval_generator *generator);
OSCAP_API char *oval_generator_get_product_version(struct oval_generator *generator);
OSCAP_API const char *oval_generator_get_core_schema_version(struct oval_generator *generator);
OSCAP_API char *oval_generator_get_timestamp(struct oval_generator *generator);
OSCAP_API const char *oval_generator_get_platform_schema_version (struct oval_generator *generator, const char *platform);
OSCAP_API void oval_generator_set_product_name(struct oval_generator *generator, const char *product_name);
OSCAP_API void oval_generator_set_product_version(struct oval_generator *generator, const char *product_version);
OSCAP_API void oval_generator_set_core_schema_version(struct oval_generator *generator, const char *schema_version);
OSCAP_API void oval_generator_add_platform_schema_version(struct oval_generator *generator, const char *platform, const char *schema_version);
OSCAP_API void oval_generator_set_timestamp(struct oval_generator *generator, const char *timestamp);
OSCAP_API void oval_generator_update_timestamp(struct oval_generator *generator);
OSCAP_API struct oval_definition_model *oval_definition_model_new(void);
OSCAP_API struct oval_definition_model *oval_definition_model_import_source(struct oscap_source *source);
OSCAP_API struct oval_definition_model *oval_definition_model_clone(struct oval_definition_model *);
OSCAP_API int oval_definition_model_export(struct oval_definition_model *, const char *file);
OSCAP_API void oval_definition_model_free(struct oval_definition_model *model);
OSCAP_API void oval_definition_model_set_generator(struct oval_definition_model *model, struct oval_generator *generator);
OSCAP_API int oval_definition_model_bind_variable_model(struct oval_definition_model *, struct oval_variable_model *);
OSCAP_API void oval_definition_model_clear_external_variables(struct oval_definition_model *);
OSCAP_API struct oval_generator *oval_definition_model_get_generator(struct oval_definition_model *model);
OSCAP_API struct oval_definition *oval_definition_model_get_definition(struct oval_definition_model *, const char *id);
OSCAP_API struct oval_test *oval_definition_model_get_test(struct oval_definition_model *model, const char *id);
OSCAP_API struct oval_object *oval_definition_model_get_object(struct oval_definition_model *model, const char *id);
OSCAP_API struct oval_state *oval_definition_model_get_state(struct oval_definition_model *model, const char *id);
OSCAP_API struct oval_variable *oval_definition_model_get_variable(struct oval_definition_model *model, const char *id);
OSCAP_API struct oval_definition_iterator *oval_definition_model_get_definitions(struct oval_definition_model *model);
OSCAP_API struct oval_test_iterator *oval_definition_model_get_tests(struct oval_definition_model *model);
OSCAP_API struct oval_object_iterator *oval_definition_model_get_objects(struct oval_definition_model *model);
OSCAP_API struct oval_state_iterator *oval_definition_model_get_states(struct oval_definition_model *model);
OSCAP_API struct oval_variable_iterator *oval_definition_model_get_variables(struct oval_definition_model *model);
OSCAP_API const char * oval_definition_model_supported(void);
OSCAP_API struct oval_variable_model_iterator *oval_definition_model_get_variable_models(struct oval_definition_model *);
OSCAP_API struct oval_definition *oval_definition_new(struct oval_definition_model *, const char *id);
OSCAP_API struct oval_definition *oval_definition_clone(struct oval_definition_model *new_model, struct oval_definition *old_definition);
OSCAP_API void oval_definition_free(struct oval_definition *);
OSCAP_API void oval_definition_set_version(struct oval_definition *, int version);
OSCAP_API void oval_definition_set_class(struct oval_definition *, oval_definition_class_t);
OSCAP_API void oval_definition_set_deprecated(struct oval_definition *, bool deprecated);
OSCAP_API void oval_definition_set_title(struct oval_definition *, char *title);
OSCAP_API void oval_definition_set_description(struct oval_definition *, char *description);
OSCAP_API void oval_definition_add_affected(struct oval_definition *, struct oval_affected *affected);
OSCAP_API void oval_definition_add_reference(struct oval_definition *, struct oval_reference *reference);
OSCAP_API void oval_definition_add_note(struct oval_definition *, char *note);
OSCAP_API void oval_definition_set_criteria(struct oval_definition *, struct oval_criteria_node *criteria);
OSCAP_API char *oval_definition_get_id(struct oval_definition *);
OSCAP_API int oval_definition_get_version(struct oval_definition *);
OSCAP_API oval_definition_class_t oval_definition_get_class(struct oval_definition *);
OSCAP_API bool oval_definition_get_deprecated(struct oval_definition *);
OSCAP_API char *oval_definition_get_title(struct oval_definition *);
OSCAP_API char *oval_definition_get_description(struct oval_definition *);
OSCAP_API struct oval_affected_iterator *oval_definition_get_affected(struct oval_definition *);
OSCAP_API struct oval_reference_iterator *oval_definition_get_references(struct oval_definition *);
OSCAP_API struct oval_string_iterator *oval_definition_get_notes(struct oval_definition *);
OSCAP_API struct oval_criteria_node *oval_definition_get_criteria(struct oval_definition *);
OSCAP_API bool oval_definition_iterator_has_more(struct oval_definition_iterator *);
OSCAP_API struct oval_definition *oval_definition_iterator_next(struct oval_definition_iterator *);
OSCAP_API void oval_definition_iterator_free(struct oval_definition_iterator *);
OSCAP_API struct oval_test *oval_test_new(struct oval_definition_model *, const char *id);
OSCAP_API struct oval_test *oval_test_clone(struct oval_definition_model *new_model, struct oval_test *old_test);
OSCAP_API void oval_test_free(struct oval_test *);
OSCAP_API void oval_test_set_subtype(struct oval_test *, oval_subtype_t subtype);
OSCAP_API void oval_test_add_note(struct oval_test *, char *note);
OSCAP_API void oval_test_set_comment(struct oval_test *, char *comment);
OSCAP_API void oval_test_set_deprecated(struct oval_test *, bool deprecated);
OSCAP_API void oval_test_set_version(struct oval_test *, int version);
OSCAP_API void oval_test_set_state_operator(struct oval_test *, oval_operator_t);
OSCAP_API void oval_test_set_existence(struct oval_test *, oval_existence_t);
OSCAP_API void oval_test_set_check(struct oval_test *, oval_check_t);
OSCAP_API void oval_test_set_object(struct oval_test *, struct oval_object *);
OSCAP_API void oval_test_add_state(struct oval_test *, struct oval_state *);
OSCAP_API oval_family_t oval_test_get_family(struct oval_test *);
OSCAP_API oval_subtype_t oval_test_get_subtype(struct oval_test *);
OSCAP_API struct oval_string_iterator *oval_test_get_notes(struct oval_test *);
OSCAP_API char *oval_test_get_comment(struct oval_test *);
OSCAP_API char *oval_test_get_id(struct oval_test *);
OSCAP_API bool oval_test_get_deprecated(struct oval_test *);
OSCAP_API int oval_test_get_version(struct oval_test *);
OSCAP_API oval_operator_t oval_test_get_state_operator(struct oval_test *);
OSCAP_API oval_existence_t oval_test_get_existence(struct oval_test *);
OSCAP_API oval_check_t oval_test_get_check(struct oval_test *);
OSCAP_API struct oval_object *oval_test_get_object(struct oval_test *);
OSCAP_API struct oval_state_iterator *oval_test_get_states(struct oval_test *);
OSCAP_API bool oval_test_iterator_has_more(struct oval_test_iterator *);
OSCAP_API struct oval_test *oval_test_iterator_next(struct oval_test_iterator *);
OSCAP_API void oval_test_iterator_free(struct oval_test_iterator *);
OSCAP_API struct oval_object *oval_object_new(struct oval_definition_model *, const char *id);
OSCAP_API struct oval_object *oval_object_clone(struct oval_definition_model *new_model, struct oval_object *old_object);
OSCAP_API void oval_object_free(struct oval_object *);
OSCAP_API void oval_object_set_subtype(struct oval_object *, oval_subtype_t subtype);
OSCAP_API void oval_object_add_note(struct oval_object *, char *note);
OSCAP_API void oval_object_set_comment(struct oval_object *, char *comment);
OSCAP_API void oval_object_set_deprecated(struct oval_object *, bool deprecated);
OSCAP_API void oval_object_set_version(struct oval_object *, int version);
OSCAP_API void oval_object_add_object_content(struct oval_object *, struct oval_object_content *content);
OSCAP_API void oval_object_add_behavior(struct oval_object *, struct oval_behavior *behavior);
OSCAP_API oval_family_t oval_object_get_family(struct oval_object *);
OSCAP_API const char *oval_object_get_name(struct oval_object *);
OSCAP_API oval_subtype_t oval_object_get_subtype(struct oval_object *);
OSCAP_API struct oval_string_iterator *oval_object_get_notes(struct oval_object *);
OSCAP_API char *oval_object_get_comment(struct oval_object *);
OSCAP_API char *oval_object_get_id(struct oval_object *);
OSCAP_API bool oval_object_get_deprecated(struct oval_object *);
OSCAP_API int oval_object_get_version(struct oval_object *);
OSCAP_API oval_schema_version_t oval_object_get_platform_schema_version(struct oval_object *object);
OSCAP_API struct oval_object_content_iterator *oval_object_get_object_contents(struct oval_object *);
OSCAP_API struct oval_behavior_iterator *oval_object_get_behaviors(struct oval_object *);
OSCAP_API bool oval_object_iterator_has_more(struct oval_object_iterator *);
OSCAP_API struct oval_object *oval_object_iterator_next(struct oval_object_iterator *);
OSCAP_API void oval_object_iterator_free(struct oval_object_iterator *);
OSCAP_API struct oval_state *oval_state_new(struct oval_definition_model *, const char *id);
OSCAP_API struct oval_state *oval_state_clone(struct oval_definition_model *new_model, struct oval_state *old_state);
OSCAP_API void oval_state_free(struct oval_state *);
OSCAP_API void oval_state_set_subtype(struct oval_state *, oval_subtype_t subtype);
OSCAP_API void oval_state_add_note(struct oval_state *, char *note);
OSCAP_API void oval_state_set_comment(struct oval_state *, char *comment);
OSCAP_API void oval_state_set_deprecated(struct oval_state *, bool deprecated);
OSCAP_API void oval_state_set_version(struct oval_state *, int version);
OSCAP_API void oval_state_set_operator(struct oval_state *, oval_operator_t);
OSCAP_API void oval_state_add_content(struct oval_state *, struct oval_state_content *content);
OSCAP_API oval_family_t oval_state_get_family(struct oval_state *);
OSCAP_API const char *oval_state_get_name(struct oval_state *);
OSCAP_API oval_subtype_t oval_state_get_subtype(struct oval_state *);
OSCAP_API struct oval_string_iterator *oval_state_get_notes(struct oval_state *);
OSCAP_API char *oval_state_get_comment(struct oval_state *);
OSCAP_API char *oval_state_get_id(struct oval_state *);
OSCAP_API bool oval_state_get_deprecated(struct oval_state *);
OSCAP_API int oval_state_get_version(struct oval_state *);
OSCAP_API int oval_state_get_operator(struct oval_state *);
OSCAP_API struct oval_state_content_iterator *oval_state_get_contents(struct oval_state *);
OSCAP_API bool oval_state_iterator_has_more(struct oval_state_iterator *);
OSCAP_API struct oval_state *oval_state_iterator_next(struct oval_state_iterator *);
OSCAP_API void oval_state_iterator_free(struct oval_state_iterator *);
OSCAP_API struct oval_variable *oval_variable_new(struct oval_definition_model *model, const char *id, oval_variable_type_t type);
OSCAP_API struct oval_variable *oval_variable_clone(struct oval_definition_model *new_model, struct oval_variable *old_variable);
OSCAP_API void oval_variable_free(struct oval_variable *);
OSCAP_API struct oval_variable_possible_value *oval_variable_possible_value_new(const char *hint, const char *value);
OSCAP_API void oval_variable_possible_value_free(struct oval_variable_possible_value *pv);
OSCAP_API char* oval_variable_possible_value_get_hint(struct oval_variable_possible_value* pv);
OSCAP_API char* oval_variable_possible_value_get_value(struct oval_variable_possible_value* pv);
OSCAP_API bool oval_variable_possible_value_iterator_has_more(struct oval_variable_possible_value_iterator*);
OSCAP_API struct oval_variable_possible_value *oval_variable_possible_value_iterator_next(struct oval_variable_possible_value_iterator*);
OSCAP_API int oval_variable_possible_value_iterator_remaining(struct oval_variable_possible_value_iterator*);
OSCAP_API void oval_variable_possible_value_iterator_free(struct oval_variable_possible_value_iterator*);
OSCAP_API struct oval_variable_possible_restriction *oval_variable_possible_restriction_new(oval_operator_t, const char *);
OSCAP_API void oval_variable_possible_restriction_free(struct oval_variable_possible_restriction *pr);
OSCAP_API bool oval_variable_possible_restriction_iterator_has_more(struct oval_variable_possible_restriction_iterator* iter);
OSCAP_API struct oval_variable_possible_restriction *oval_variable_possible_restriction_iterator_next(struct oval_variable_possible_restriction_iterator* iter);
OSCAP_API int oval_variable_possible_restriction_iterator_remaining(struct oval_variable_possible_restriction_iterator* iter);
OSCAP_API void oval_variable_possible_restriction_iterator_free(struct oval_variable_possible_restriction_iterator* iter);
OSCAP_API struct oval_variable_restriction *oval_variable_restriction_new(oval_operation_t operation, const char *value);
OSCAP_API void oval_variable_restriction_free(struct oval_variable_restriction *r);
OSCAP_API oval_operation_t oval_variable_restriction_get_operation(struct oval_variable_restriction* restriction);
OSCAP_API char* oval_variable_restriction_get_value(struct oval_variable_restriction* restriction);
OSCAP_API bool oval_variable_restriction_iterator_has_more(struct oval_variable_restriction_iterator*);
OSCAP_API struct oval_variable_restriction *oval_variable_restriction_iterator_next(struct oval_variable_restriction_iterator*);
OSCAP_API int oval_variable_restriction_iterator_remaining(struct oval_variable_restriction_iterator*);
OSCAP_API void oval_variable_restriction_iterator_free(struct oval_variable_restriction_iterator*);
OSCAP_API void oval_variable_set_comment(struct oval_variable *, char *comment);
OSCAP_API void oval_variable_set_version(struct oval_variable *, int version);
OSCAP_API void oval_variable_set_deprecated(struct oval_variable *, bool deprecated);
OSCAP_API void oval_variable_set_datatype(struct oval_variable *, oval_datatype_t);
OSCAP_API void oval_variable_add_value(struct oval_variable *, struct oval_value *); //type==OVAL_VARIABLE_CONSTANT
OSCAP_API void oval_variable_clear_values(struct oval_variable *);
OSCAP_API void oval_variable_add_possible_value(struct oval_variable *variable, struct oval_variable_possible_value *pv);
OSCAP_API void oval_variable_add_possible_restriction(struct oval_variable *variable, struct oval_variable_possible_restriction *pr);
OSCAP_API void oval_variable_possible_restriction_add_restriction(struct oval_variable_possible_restriction *pr, struct oval_variable_restriction *r);
OSCAP_API void oval_variable_set_component(struct oval_variable *, struct oval_component *component); //type==OVAL_VARIABLE_LOCAL
OSCAP_API char *oval_variable_get_id(struct oval_variable *);
OSCAP_API char *oval_variable_get_comment(struct oval_variable *);
OSCAP_API int oval_variable_get_version(struct oval_variable *);
OSCAP_API bool oval_variable_get_deprecated(struct oval_variable *);
OSCAP_API oval_variable_type_t oval_variable_get_type(struct oval_variable *);
OSCAP_API oval_datatype_t oval_variable_get_datatype(struct oval_variable *);
OSCAP_API struct oval_value_iterator *oval_variable_get_values(struct oval_variable *); //type==OVAL_VARIABLE_CONSTANT
OSCAP_API struct oval_component *oval_variable_get_component(struct oval_variable *); //type==OVAL_VARIABLE_LOCAL
OSCAP_API struct oval_variable_possible_value_iterator *oval_variable_get_possible_values2(struct oval_variable *variable);
OSCAP_API struct oval_variable_possible_restriction_iterator *oval_variable_get_possible_restrictions2(struct oval_variable *variable);
OSCAP_API struct oval_variable_restriction_iterator *oval_variable_possible_restriction_get_restrictions2(struct oval_variable_possible_restriction *possible_restriction);
OSCAP_API oval_operator_t oval_variable_possible_restriction_get_operator(struct oval_variable_possible_restriction *possible_restriction);
OSCAP_API char* oval_variable_possible_restriction_get_hint(struct oval_variable_possible_restriction* possible_restriction);
OSCAP_API const char *oval_component_type_get_text(oval_component_type_t type);
OSCAP_API bool oval_variable_iterator_has_more(struct oval_variable_iterator *);
OSCAP_API struct oval_variable *oval_variable_iterator_next(struct oval_variable_iterator *);
OSCAP_API void oval_variable_iterator_free(struct oval_variable_iterator *);
OSCAP_API struct oval_affected *oval_affected_new(struct oval_definition_model *);
OSCAP_API struct oval_affected *oval_affected_clone(struct oval_definition_model *new_model, struct oval_affected *old_affected);
OSCAP_API void oval_affected_free(struct oval_affected *);
OSCAP_API void oval_affected_set_family(struct oval_affected *, oval_affected_family_t family);
OSCAP_API void oval_affected_add_platform(struct oval_affected *, char *platform_name);
OSCAP_API void oval_affected_add_product(struct oval_affected *, char *product_name);
OSCAP_API oval_affected_family_t oval_affected_get_family(struct oval_affected *);
OSCAP_API struct oval_string_iterator *oval_affected_get_platforms(struct oval_affected *);
OSCAP_API struct oval_string_iterator *oval_affected_get_products(struct oval_affected *);
OSCAP_API bool oval_affected_iterator_has_more(struct oval_affected_iterator *);
OSCAP_API struct oval_affected *oval_affected_iterator_next(struct oval_affected_iterator *);
OSCAP_API void oval_affected_iterator_free(struct oval_affected_iterator *);
OSCAP_API struct oval_reference *oval_reference_new(struct oval_definition_model *);
OSCAP_API struct oval_reference *oval_reference_clone
(struct oval_definition_model *new_model, struct oval_reference *old_reference);
OSCAP_API void oval_reference_free(struct oval_reference *);
OSCAP_API void oval_reference_set_source(struct oval_reference *, char *);
OSCAP_API void oval_reference_set_id(struct oval_reference *, char *);
OSCAP_API void oval_reference_set_url(struct oval_reference *, char *);
OSCAP_API char *oval_reference_get_source(struct oval_reference *);
OSCAP_API char *oval_reference_get_id(struct oval_reference *);
OSCAP_API char *oval_reference_get_url(struct oval_reference *);
OSCAP_API bool oval_reference_iterator_has_more(struct oval_reference_iterator *);
OSCAP_API struct oval_reference *oval_reference_iterator_next(struct oval_reference_iterator *);
OSCAP_API void oval_reference_iterator_free(struct oval_reference_iterator *);
OSCAP_API struct oval_criteria_node *oval_criteria_node_new(struct oval_definition_model *, oval_criteria_node_type_t type);
OSCAP_API struct oval_criteria_node *oval_criteria_node_clone
(struct oval_definition_model *new_model, struct oval_criteria_node *old_node);
OSCAP_API void oval_criteria_node_free(struct oval_criteria_node *);
OSCAP_API void oval_criteria_node_set_negate(struct oval_criteria_node *, bool negate);
OSCAP_API void oval_criteria_node_set_applicability_check(struct oval_criteria_node *, bool applicability_check);
OSCAP_API void oval_criteria_set_node_type(struct oval_criteria_node *node, oval_criteria_node_type_t type);
OSCAP_API void oval_criteria_node_set_comment(struct oval_criteria_node *, char *comment);
OSCAP_API void oval_criteria_node_set_operator(struct oval_criteria_node *, oval_operator_t op);
OSCAP_API void oval_criteria_node_add_subnode(struct oval_criteria_node *, struct oval_criteria_node *node);
OSCAP_API void oval_criteria_node_set_test(struct oval_criteria_node *, struct oval_test *);
OSCAP_API void oval_criteria_node_set_definition(struct oval_criteria_node *, struct oval_definition *); //type==NODETYPE_EXTENDDEF
OSCAP_API oval_criteria_node_type_t oval_criteria_node_get_type(struct oval_criteria_node *);
OSCAP_API bool oval_criteria_node_get_negate(struct oval_criteria_node *);
OSCAP_API bool oval_criteria_node_get_applicability_check(struct oval_criteria_node *);
OSCAP_API char *oval_criteria_node_get_comment(struct oval_criteria_node *);
OSCAP_API oval_operator_t oval_criteria_node_get_operator(struct oval_criteria_node *);
OSCAP_API struct oval_criteria_node_iterator *oval_criteria_node_get_subnodes(struct oval_criteria_node *);
OSCAP_API struct oval_test *oval_criteria_node_get_test(struct oval_criteria_node *);
OSCAP_API struct oval_definition *oval_criteria_node_get_definition(struct oval_criteria_node *);
OSCAP_API bool oval_criteria_node_iterator_has_more(struct oval_criteria_node_iterator *);
OSCAP_API struct oval_criteria_node *oval_criteria_node_iterator_next(struct oval_criteria_node_iterator *);
OSCAP_API void oval_criteria_node_iterator_free(struct oval_criteria_node_iterator *);
OSCAP_API struct oval_object_content *oval_object_content_new(struct oval_definition_model *model, oval_object_content_type_t type);
OSCAP_API struct oval_object_content *oval_object_content_clone
(struct oval_definition_model *new_model, struct oval_object_content *old_content);
OSCAP_API void oval_object_content_free(struct oval_object_content *);
OSCAP_API void oval_object_content_set_type(struct oval_object_content *, oval_object_content_type_t);
OSCAP_API void oval_object_content_set_field_name(struct oval_object_content *, char *);
OSCAP_API void oval_object_content_set_entity(struct oval_object_content *, struct oval_entity *); //type == OVAL_OBJECTCONTENT_ENTITY
OSCAP_API void oval_object_content_set_varCheck(struct oval_object_content *, oval_check_t); //type == OVAL_OBJECTCONTENT_ENTITY
OSCAP_API void oval_object_content_set_setobject(struct oval_object_content *, struct oval_setobject *); //type == OVAL_OBJECTCONTENT_SET
OSCAP_API void oval_object_content_set_filter(struct oval_object_content *, struct oval_filter *); //type == OVAL_OBJECTCONTENT_FILTER
OSCAP_API char *oval_object_content_get_field_name(struct oval_object_content *);
OSCAP_API oval_object_content_type_t oval_object_content_get_type(struct oval_object_content *);
OSCAP_API struct oval_entity *oval_object_content_get_entity(struct oval_object_content *); //type == OVAL_OBJECTCONTENT_ENTITY
OSCAP_API oval_check_t oval_object_content_get_varCheck(struct oval_object_content *); //type == OVAL_OBJECTCONTENT_ENTITY
OSCAP_API struct oval_setobject *oval_object_content_get_setobject(struct oval_object_content *); //type == OVAL_OBJECTCONTENT_SET
OSCAP_API struct oval_filter *oval_object_content_get_filter(struct oval_object_content *content); //type == OVAL_OBJECTCONTENT_FILTER
OSCAP_API bool oval_object_content_iterator_has_more(struct oval_object_content_iterator *);
OSCAP_API struct oval_object_content *oval_object_content_iterator_next(struct oval_object_content_iterator *);
OSCAP_API void oval_object_content_iterator_free(struct oval_object_content_iterator *);
OSCAP_API struct oval_behavior *oval_behavior_new(struct oval_definition_model *);
OSCAP_API struct oval_behavior *oval_behavior_clone(struct oval_definition_model *new_model, struct oval_behavior *old_behavior);
OSCAP_API void oval_behavior_free(struct oval_behavior *);
OSCAP_API void oval_behavior_set_keyval(struct oval_behavior *behavior, const char *key, const char *value);
OSCAP_API char *oval_behavior_get_key(struct oval_behavior *);
OSCAP_API char *oval_behavior_get_value(struct oval_behavior *);
OSCAP_API bool oval_behavior_iterator_has_more(struct oval_behavior_iterator *);
OSCAP_API struct oval_behavior *oval_behavior_iterator_next(struct oval_behavior_iterator *);
OSCAP_API void oval_behavior_iterator_free(struct oval_behavior_iterator *);
OSCAP_API struct oval_state_content *oval_state_content_new(struct oval_definition_model *);
OSCAP_API struct oval_state_content *oval_state_content_clone (struct oval_definition_model *new_model, struct oval_state_content *old_content);
OSCAP_API void oval_state_content_free(struct oval_state_content *);
OSCAP_API void oval_state_content_set_entity(struct oval_state_content *, struct oval_entity *);
OSCAP_API void oval_state_content_add_record_field(struct oval_state_content *, struct oval_record_field *);
OSCAP_API void oval_state_content_set_varcheck(struct oval_state_content *, oval_check_t);
OSCAP_API void oval_state_content_set_entcheck(struct oval_state_content *, oval_check_t);
OSCAP_API void oval_state_content_set_check_existence(struct oval_state_content *content, oval_existence_t existence);
OSCAP_API struct oval_entity *oval_state_content_get_entity(struct oval_state_content *);
OSCAP_API struct oval_record_field_iterator *oval_state_content_get_record_fields(struct oval_state_content *);
OSCAP_API oval_check_t oval_state_content_get_var_check(struct oval_state_content *);
OSCAP_API oval_check_t oval_state_content_get_ent_check(struct oval_state_content *);
OSCAP_API oval_existence_t oval_state_content_get_check_existence(struct oval_state_content *content);
OSCAP_API bool oval_state_content_iterator_has_more(struct oval_state_content_iterator *);
OSCAP_API struct oval_state_content *oval_state_content_iterator_next(struct oval_state_content_iterator *);
OSCAP_API void oval_state_content_iterator_free(struct oval_state_content_iterator *);
OSCAP_API struct oval_value *oval_value_new(oval_datatype_t datatype, char *text_value);
OSCAP_API struct oval_value *oval_value_clone(struct oval_value *old_value);
OSCAP_API void oval_value_free(struct oval_value *);
OSCAP_API void oval_value_set_datatype(struct oval_value *, oval_datatype_t);
OSCAP_API oval_datatype_t oval_value_get_datatype(struct oval_value *);
OSCAP_API char *oval_value_get_text(struct oval_value *);
OSCAP_API unsigned char *oval_value_get_binary(struct oval_value *); //datatype==OVAL_DATATYPE_BINARY
OSCAP_API bool oval_value_get_boolean(struct oval_value *); //datatype==OVAL_DATATYPE_BOOLEAN
OSCAP_API float oval_value_get_float(struct oval_value *); //datatype==OVAL_DATATYPE_FLOAT
OSCAP_API long long oval_value_get_integer(struct oval_value *); //datatype==OVAL_DATATYPE_INTEGER
OSCAP_API bool oval_value_iterator_has_more(struct oval_value_iterator *);
OSCAP_API struct oval_value *oval_value_iterator_next(struct oval_value_iterator *);
OSCAP_API int oval_value_iterator_remaining(struct oval_value_iterator *iterator);
OSCAP_API void oval_value_iterator_free(struct oval_value_iterator *);
OSCAP_API struct oval_entity *oval_entity_new(struct oval_definition_model *);
OSCAP_API struct oval_entity *oval_entity_clone(struct oval_definition_model *model, struct oval_entity *old_entity);
OSCAP_API void oval_entity_free(struct oval_entity *);
OSCAP_API void oval_entity_set_type(struct oval_entity *, oval_entity_type_t);
OSCAP_API void oval_entity_set_datatype(struct oval_entity *, oval_datatype_t);
OSCAP_API void oval_entity_set_mask(struct oval_entity *, int);
OSCAP_API void oval_entity_set_varref_type(struct oval_entity *, oval_entity_varref_type_t);
OSCAP_API void oval_entity_set_variable(struct oval_entity *, struct oval_variable *);
OSCAP_API void oval_entity_set_value(struct oval_entity *, struct oval_value *);
OSCAP_API void oval_entity_set_name(struct oval_entity *, char *);
OSCAP_API void oval_entity_set_operation(struct oval_entity *, oval_operation_t);
OSCAP_API char *oval_entity_get_name(struct oval_entity *);
OSCAP_API oval_entity_type_t oval_entity_get_type(struct oval_entity *);
OSCAP_API oval_datatype_t oval_entity_get_datatype(struct oval_entity *);
OSCAP_API oval_operation_t oval_entity_get_operation(struct oval_entity *);
OSCAP_API struct oval_variable *oval_entity_get_variable(struct oval_entity *);
OSCAP_API struct oval_value *oval_entity_get_value(struct oval_entity *);
OSCAP_API int oval_entity_get_mask(struct oval_entity *);
OSCAP_API oval_entity_varref_type_t oval_entity_get_varref_type(struct oval_entity *);
OSCAP_API bool oval_entity_iterator_has_more(struct oval_entity_iterator *);
OSCAP_API struct oval_entity *oval_entity_iterator_next(struct oval_entity_iterator *);
OSCAP_API void oval_entity_iterator_free(struct oval_entity_iterator *);
OSCAP_API struct oval_record_field *oval_record_field_new(oval_record_field_type_t);
OSCAP_API struct oval_record_field *oval_record_field_clone(struct oval_record_field *);
OSCAP_API void oval_record_field_free(struct oval_record_field *);
OSCAP_API void oval_record_field_set_name(struct oval_record_field *, char *);
OSCAP_API void oval_record_field_set_value(struct oval_record_field *, char *);
OSCAP_API void oval_record_field_set_datatype(struct oval_record_field *, oval_datatype_t);
OSCAP_API void oval_record_field_set_mask(struct oval_record_field *, int);
OSCAP_API void oval_record_field_set_operation(struct oval_record_field *, oval_operation_t);
OSCAP_API void oval_record_field_set_variable(struct oval_record_field *, struct oval_variable *);
OSCAP_API void oval_record_field_set_var_check(struct oval_record_field *, oval_check_t);
OSCAP_API void oval_record_field_set_ent_check(struct oval_record_field *, oval_check_t);
OSCAP_API oval_record_field_type_t oval_record_field_get_type(struct oval_record_field *);
OSCAP_API char *oval_record_field_get_name(struct oval_record_field *);
OSCAP_API char *oval_record_field_get_value(struct oval_record_field *);
OSCAP_API oval_datatype_t oval_record_field_get_datatype(struct oval_record_field *);
OSCAP_API int oval_record_field_get_mask(struct oval_record_field *);
OSCAP_API oval_operation_t oval_record_field_get_operation(struct oval_record_field *);
OSCAP_API struct oval_variable *oval_record_field_get_variable(struct oval_record_field *);
OSCAP_API oval_check_t oval_record_field_get_var_check(struct oval_record_field *);
OSCAP_API oval_check_t oval_record_field_get_ent_check(struct oval_record_field *);
OSCAP_API bool oval_record_field_iterator_has_more(struct oval_record_field_iterator *);
OSCAP_API struct oval_record_field *oval_record_field_iterator_next(struct oval_record_field_iterator *);
OSCAP_API void oval_record_field_iterator_free(struct oval_record_field_iterator *);
OSCAP_API struct oval_filter *oval_filter_new(struct oval_definition_model *);
OSCAP_API void oval_filter_free(struct oval_filter *);
OSCAP_API struct oval_filter *oval_filter_clone(struct oval_definition_model *, struct oval_filter *);
OSCAP_API void oval_filter_set_state(struct oval_filter *, struct oval_state *);
OSCAP_API void oval_filter_set_filter_action(struct oval_filter *, oval_filter_action_t );
OSCAP_API struct oval_state *oval_filter_get_state(struct oval_filter *);
OSCAP_API oval_filter_action_t oval_filter_get_filter_action(struct oval_filter *);
OSCAP_API bool oval_filter_iterator_has_more(struct oval_filter_iterator *);
OSCAP_API struct oval_filter *oval_filter_iterator_next(struct oval_filter_iterator *);
OSCAP_API void oval_filter_iterator_free(struct oval_filter_iterator *);
OSCAP_API struct oval_setobject *oval_setobject_new(struct oval_definition_model *);
OSCAP_API struct oval_setobject *oval_setobject_clone(struct oval_definition_model *new_model, struct oval_setobject *old_setobject);
OSCAP_API void oval_setobject_free(struct oval_setobject *);
OSCAP_API void oval_setobject_set_type(struct oval_setobject *, oval_setobject_type_t);
OSCAP_API void oval_setobject_set_operation(struct oval_setobject *, oval_setobject_operation_t);
OSCAP_API void oval_setobject_add_subset(struct oval_setobject *, struct oval_setobject *); //type==OVAL_SET_AGGREGATE;
OSCAP_API void oval_setobject_add_object(struct oval_setobject *, struct oval_object *); //type==OVAL_SET_COLLECTIVE;
OSCAP_API void oval_setobject_add_filter(struct oval_setobject *, struct oval_filter *); //type==OVAL_SET_COLLECTIVE;
OSCAP_API oval_setobject_type_t oval_setobject_get_type(struct oval_setobject *);
OSCAP_API oval_setobject_operation_t oval_setobject_get_operation(struct oval_setobject *);
OSCAP_API struct oval_setobject_iterator *oval_setobject_get_subsets(struct oval_setobject *); //type==OVAL_SET_AGGREGATE;
OSCAP_API struct oval_object_iterator *oval_setobject_get_objects(struct oval_setobject *); //type==OVAL_SET_COLLECTIVE;
OSCAP_API struct oval_filter_iterator *oval_setobject_get_filters(struct oval_setobject *); //type==OVAL_SET_COLLECTIVE;
OSCAP_API bool oval_setobject_iterator_has_more(struct oval_setobject_iterator *);
OSCAP_API struct oval_setobject *oval_setobject_iterator_next(struct oval_setobject_iterator *);
OSCAP_API void oval_setobject_iterator_free(struct oval_setobject_iterator *);
OSCAP_API struct oval_component *oval_component_new(struct oval_definition_model *, oval_component_type_t type);
OSCAP_API struct oval_component *oval_component_clone(struct oval_definition_model *new_model,
struct oval_component *old_component);
OSCAP_API void oval_component_free(struct oval_component *);
OSCAP_API void oval_component_set_type(struct oval_component *component, oval_component_type_t type);
OSCAP_API void oval_component_set_object(struct oval_component *, struct oval_object *object);
OSCAP_API void oval_component_set_item_field(struct oval_component *, char *);
OSCAP_API void oval_component_set_record_field(struct oval_component *, char *);
OSCAP_API void oval_component_set_variable(struct oval_component *, struct oval_variable *variable);
OSCAP_API void oval_component_add_function_component(struct oval_component *, struct oval_component *); //type==OVAL_COMPONENT_FUNCTION
OSCAP_API void oval_component_set_arithmetic_operation(struct oval_component *, oval_arithmetic_operation_t); //type==OVAL_COMPONENT_ARITHMETIC
OSCAP_API void oval_component_set_prefix(struct oval_component *, char *); //type==OVAL_COMPONENT_BEGIN
OSCAP_API void oval_component_set_suffix(struct oval_component *, char *); //type==OVAL_COMPONENT_END
OSCAP_API void oval_component_set_split_delimiter(struct oval_component *, char *); //type==OVAL_COMPONENT_SPLIT
OSCAP_API void oval_component_set_glob_to_regex_glob_noescape(struct oval_component *, bool); //type==OVAL_COMPONENT_GLOB
OSCAP_API void oval_component_set_substring_start(struct oval_component *, int); //type==OVAL_COMPONENT_SUBSTRING
OSCAP_API void oval_component_set_substring_length(struct oval_component *, int); //type==OVAL_COMPONENT_SUBSTRING
OSCAP_API void oval_component_set_timedif_format_1(struct oval_component *, oval_datetime_format_t); //type==OVAL_COMPONENT_TIMEDIF
OSCAP_API void oval_component_set_timedif_format_2(struct oval_component *, oval_datetime_format_t); //type==OVAL_COMPONENT_TIMEDIF
OSCAP_API void oval_component_set_regex_pattern(struct oval_component *, char *); //type==OVAL_COMPONENT_REGEX_CAPTURE
OSCAP_API void oval_component_set_literal_value(struct oval_component *, struct oval_value *); //type==OVAL_COMPONENT_LITERAL
OSCAP_API oval_component_type_t oval_component_get_type(struct oval_component *);
OSCAP_API struct oval_object *oval_component_get_object(struct oval_component *); //type==OVAL_COMPONENT_OBJECTREF
OSCAP_API char *oval_component_get_item_field(struct oval_component *);
OSCAP_API char *oval_component_get_record_field(struct oval_component *);
OSCAP_API struct oval_variable *oval_component_get_variable(struct oval_component *);
OSCAP_API struct oval_component_iterator *oval_component_get_function_components(struct oval_component *); //type==OVAL_COMPONENT_FUNCTION
OSCAP_API oval_arithmetic_operation_t oval_component_get_arithmetic_operation(struct oval_component *); //type==OVAL_COMPONENT_ARITHMETIC
OSCAP_API char *oval_component_get_prefix(struct oval_component *); //type==OVAL_COMPONENT_BEGIN
OSCAP_API char *oval_component_get_suffix(struct oval_component *); //type==OVAL_COMPONENT_END
OSCAP_API char *oval_component_get_split_delimiter(struct oval_component *); //type==OVAL_COMPONENT_SPLIT
OSCAP_API bool oval_component_get_glob_to_regex_glob_noescape(struct oval_component *); //type==OVAL_COMPONENT_GLOB
OSCAP_API int oval_component_get_substring_start(struct oval_component *); //type==OVAL_COMPONENT_SUBSTRING
OSCAP_API int oval_component_get_substring_length(struct oval_component *); //type==OVAL_COMPONENT_SUBSTRING
OSCAP_API oval_datetime_format_t oval_component_get_timedif_format_1(struct oval_component *); //type==OVAL_COMPONENT_TIMEDIF
OSCAP_API oval_datetime_format_t oval_component_get_timedif_format_2(struct oval_component *); //type==OVAL_COMPONENT_TIMEDIF
OSCAP_API char *oval_component_get_regex_pattern(struct oval_component *); //type==OVAL_COMPONENT_REGEX_CAPTURE
OSCAP_API struct oval_value *oval_component_get_literal_value(struct oval_component *); //type==OVAL_COMPONENT_LITERAL
OSCAP_API bool oval_component_iterator_has_more(struct oval_component_iterator *);
OSCAP_API struct oval_component *oval_component_iterator_next(struct oval_component_iterator *);
OSCAP_API void oval_component_iterator_free(struct oval_component_iterator *);
OSCAP_API int oval_component_iterator_remaining(struct oval_component_iterator *);
#endif
oval_component_iterator::oval_component_iterator_free
OSCAP_API void oval_component_iterator_free(struct oval_component_iterator *)
Free the iterator.
Definition oval_component.c:266
oval_state::oval_state_free
OSCAP_API void oval_state_free(struct oval_state *)
Free instance of oval_state.
Definition oval_state.c:195
oval_setobject::oval_setobject_clone
OSCAP_API struct oval_setobject * oval_setobject_clone(struct oval_definition_model *new_model, struct oval_setobject *old_setobject)
Definition oval_set.c:147
oval_variable_possible_restriction::oval_variable_possible_restriction_free
OSCAP_API void oval_variable_possible_restriction_free(struct oval_variable_possible_restriction *pr)
Free instance of possible_restriction.
Definition oval_variable.c:169
oval_state::oval_state_new
OSCAP_API struct oval_state * oval_state_new(struct oval_definition_model *, const char *id)
Construct new intance of oval_state.
Definition oval_state.c:143
oval_definition_model::oval_definition_model_clone
OSCAP_API struct oval_definition_model * oval_definition_model_clone(struct oval_definition_model *)
Copy an oval_definition_model.
Definition oval_defModel.c:105
oval_object::oval_object_set_deprecated
OSCAP_API void oval_object_set_deprecated(struct oval_object *, bool deprecated)
Sets attribute oval_object->deprecated.
Definition oval_object.c:274
oval_variable_restriction::oval_variable_restriction_free
OSCAP_API void oval_variable_restriction_free(struct oval_variable_restriction *r)
Free instance of restriction element.
Definition oval_variable.c:235
oval_criteria_node::oval_criteria_node_set_comment
OSCAP_API void oval_criteria_node_set_comment(struct oval_criteria_node *, char *comment)
set attribute Oval_criteria_node->comment.
Definition oval_criteriaNode.c:317
oval_component::oval_component_free
OSCAP_API void oval_component_free(struct oval_component *)
Free instance of Oval_component.
Definition oval_component.c:862
oval_criteria_node::oval_criteria_node_set_negate
OSCAP_API void oval_criteria_node_set_negate(struct oval_criteria_node *, bool negate)
Set attribute Oval_criteria_node->negate.
Definition oval_criteriaNode.c:305
oval_state::oval_state_set_comment
OSCAP_API void oval_state_set_comment(struct oval_state *, char *comment)
Sets a copy of the comment parameter to attribute oval_state->comment.
Definition oval_state.c:225
oval_definition::oval_definition_new
OSCAP_API struct oval_definition * oval_definition_new(struct oval_definition_model *, const char *id)
Construct an instance of oval_definition.
Definition oval_definition.c:148
oval_definition_model::oval_definition_model_bind_variable_model
OSCAP_API int oval_definition_model_bind_variable_model(struct oval_definition_model *, struct oval_variable_model *)
Bind an oval_variable_model to the specified oval_definition_model.
Definition oval_defModel.c:290
oval_component::oval_component_clone
OSCAP_API struct oval_component * oval_component_clone(struct oval_definition_model *new_model, struct oval_component *old_component)
Clone instance of Oval_component.
Definition oval_component.c:764
oval_definition::oval_definition_add_reference
OSCAP_API void oval_definition_add_reference(struct oval_definition *, struct oval_reference *reference)
Append instance of oval_reference to attribute oval_definition->references.
Definition oval_definition.c:311
oval_variable::oval_variable_free
OSCAP_API void oval_variable_free(struct oval_variable *)
Free instance of oval_variable.
Definition oval_variable.c:718
oval_test::oval_test_clone
OSCAP_API struct oval_test * oval_test_clone(struct oval_definition_model *new_model, struct oval_test *old_test)
Clone instance of oval_test and add it to the specified oval_definition_model.
Definition oval_test.c:218
oval_criteria_node::oval_criteria_node_clone
OSCAP_API struct oval_criteria_node * oval_criteria_node_clone(struct oval_definition_model *new_model, struct oval_criteria_node *old_node)
Clone an instance of oval_criteria_node.
Definition oval_criteriaNode.c:224
oval_value::oval_value_get_datatype
OSCAP_API oval_datatype_t oval_value_get_datatype(struct oval_value *)
Get OVAL value datatype.
Definition oval_value.c:74
oval_value::oval_value_get_float
OSCAP_API float oval_value_get_float(struct oval_value *)
Get OVAL value as a floating point number.
Definition oval_value.c:103
oval_definition::oval_definition_get_description
OSCAP_API char * oval_definition_get_description(struct oval_definition *)
Returns attribute oval_definition->description.
Definition oval_definition.c:108
oval_test::oval_test_add_state
OSCAP_API void oval_test_add_state(struct oval_test *, struct oval_state *)
Add the specified state to the state list of the specified test.
Definition oval_test.c:321
oval_test::oval_test_set_deprecated
OSCAP_API void oval_test_set_deprecated(struct oval_test *, bool deprecated)
Sets attribute oval_test->deprecated.
Definition oval_test.c:271
oval_object::oval_object_set_comment
OSCAP_API void oval_object_set_comment(struct oval_object *, char *comment)
Sets a copy of the comment parameter to attribute oval_object->comment.
Definition oval_object.c:266
oval_state::oval_state_add_note
OSCAP_API void oval_state_add_note(struct oval_state *, char *note)
Appends a copy of the note parameter to attribute oval_state->notes.
Definition oval_state.c:219
oval_affected::oval_affected_add_platform
OSCAP_API void oval_affected_add_platform(struct oval_affected *, char *platform_name)
Append name to oval_affected platform names.
Definition oval_affected.c:174
oval_definition_model::oval_definition_model_export
OSCAP_API int oval_definition_model_export(struct oval_definition_model *, const char *file)
Export an oval_definition_model into file.
Definition oval_defModel.c:550
oval_affected::oval_affected_free
OSCAP_API void oval_affected_free(struct oval_affected *)
Release instance of oval_affected.
Definition oval_affected.c:156
oval_state_content::oval_state_content_set_check_existence
OSCAP_API void oval_state_content_set_check_existence(struct oval_state_content *content, oval_existence_t existence)
Sets the "check_existence" attribute of an OVAL state entity.
Definition oval_stateContent.c:182
oval_variable_possible_value::oval_variable_possible_value_get_hint
OSCAP_API char * oval_variable_possible_value_get_hint(struct oval_variable_possible_value *pv)
Get the hint of the possible_value.
Definition oval_variable.c:125
oval_definition::oval_definition_set_deprecated
OSCAP_API void oval_definition_set_deprecated(struct oval_definition *, bool deprecated)
Set attribute oval_definition->deprecated.
Definition oval_definition.c:277
oval_definition::oval_definition_get_id
OSCAP_API char * oval_definition_get_id(struct oval_definition *)
Returns attribute oval_definition->id (identifier).
Definition oval_definition.c:73
oval_object::oval_object_new
OSCAP_API struct oval_object * oval_object_new(struct oval_definition_model *, const char *id)
Construct new intance of oval_object.
Definition oval_object.c:163
oval_component_iterator::oval_component_iterator_next
OSCAP_API struct oval_component * oval_component_iterator_next(struct oval_component_iterator *)
return the next instance of Oval_component.
Definition oval_component.c:260
oval_state::oval_state_set_operator
OSCAP_API void oval_state_set_operator(struct oval_state *, oval_operator_t)
Sets attribute oval_state->operator.
Definition oval_state.c:244
oval_test::oval_test_set_state_operator
OSCAP_API void oval_test_set_state_operator(struct oval_test *, oval_operator_t)
Sets attribute oval_test->state_operator.
Definition oval_test.c:303
oval_definition::oval_definition_get_title
OSCAP_API char * oval_definition_get_title(struct oval_definition *)
Returns attribute oval_definition->title.
Definition oval_definition.c:101
oval_affected::oval_affected_new
OSCAP_API struct oval_affected * oval_affected_new(struct oval_definition_model *)
Construct instance of oval_affected.
Definition oval_affected.c:118
oval_subtype_get_family
OSCAP_API oval_family_t oval_subtype_get_family(oval_subtype_t)
Get the family associated with a given subtype.
Definition oval_enumerations.c:867
oval_test::oval_test_set_check
OSCAP_API void oval_test_set_check(struct oval_test *, oval_check_t)
Sets attribute oval_test->check.
Definition oval_test.c:309
oval_state::oval_state_set_subtype
OSCAP_API void oval_state_set_subtype(struct oval_state *, oval_subtype_t subtype)
Sets attributes oval_state->subtype and oval_state->family.
Definition oval_state.c:213
oval_object_content::oval_object_content_get_type
OSCAP_API oval_object_content_type_t oval_object_content_get_type(struct oval_object_content *)
Get type of a object content (entity or set).
Definition oval_objectContent.c:101
oval_definition::oval_definition_free
OSCAP_API void oval_definition_free(struct oval_definition *)
Release an instance of oval_definition.
Definition oval_definition.c:212
oval_operation_t
oval_operation_t
Operations.
Definition oval_definitions.h:84
oval_test::oval_test_set_object
OSCAP_API void oval_test_set_object(struct oval_test *, struct oval_object *)
Sets attribute oval_test->object.
Definition oval_test.c:315
oval_definition::oval_definition_set_version
OSCAP_API void oval_definition_set_version(struct oval_definition *, int version)
Set attribute oval_definition->version.
Definition oval_definition.c:265
oval_value::oval_value_get_binary
OSCAP_API unsigned char * oval_value_get_binary(struct oval_value *)
Get OVAL value as a piece of raw binary data.
Definition oval_value.c:88
oval_state_content::oval_state_content_clone
OSCAP_API struct oval_state_content * oval_state_content_clone(struct oval_definition_model *new_model, struct oval_state_content *old_content)
Definition oval_stateContent.c:133
oval_affected::oval_affected_set_family
OSCAP_API void oval_affected_set_family(struct oval_affected *, oval_affected_family_t family)
Set oval_affected family.
Definition oval_affected.c:167
oval_state::oval_state_get_name
OSCAP_API const char * oval_state_get_name(struct oval_state *)
Returns the name of an oval_state.
Definition oval_state.c:88
oval_variable_restriction::oval_variable_restriction_new
OSCAP_API struct oval_variable_restriction * oval_variable_restriction_new(oval_operation_t operation, const char *value)
Construct new instance of restriction element.
Definition oval_variable.c:226
oval_state::oval_state_get_subtype
OSCAP_API oval_subtype_t oval_state_get_subtype(struct oval_state *)
Returns attribute oval_state->subtype.
Definition oval_state.c:81
oval_setobject::oval_setobject_get_type
OSCAP_API oval_setobject_type_t oval_setobject_get_type(struct oval_setobject *)
Get OVAL set object type.
Definition oval_set.c:78
oval_definition::oval_definition_get_class
OSCAP_API oval_definition_class_t oval_definition_get_class(struct oval_definition *)
Returns attribute oval_definition->class.
Definition oval_definition.c:87
oval_variable_type_t
oval_variable_type_t
OVAL variable types.
Definition oval_definitions.h:192
oval_filter_action_t
oval_filter_action_t
Type of filter action.
Definition oval_definitions.h:142
oval_component_iterator::oval_component_iterator_remaining
OSCAP_API int oval_component_iterator_remaining(struct oval_component_iterator *)
How many remains.
Definition oval_component.c:255
oval_existence_t
oval_existence_t
Existence check enumeration.
Definition oval_definitions.h:103
oval_criteria_node::oval_criteria_node_new
OSCAP_API struct oval_criteria_node * oval_criteria_node_new(struct oval_definition_model *, oval_criteria_node_type_t type)
Construct an instance of oval_criteria_node.
Definition oval_criteriaNode.c:182
oval_reference::oval_reference_get_id
OSCAP_API char * oval_reference_get_id(struct oval_reference *)
Get OVAL reference ID.
Definition oval_reference.c:79
oval_component::oval_component_set_record_field
OSCAP_API void oval_component_set_record_field(struct oval_component *, char *)
set attribute Oval_component_object->record_field.
Definition oval_component.c:339
oval_criteria_node::oval_criteria_node_add_subnode
OSCAP_API void oval_criteria_node_add_subnode(struct oval_criteria_node *, struct oval_criteria_node *node)
Append instance of Oval_criteria_node to attribute Oval_criteria->subnodes.
Definition oval_criteriaNode.c:334
oval_state::oval_state_add_content
OSCAP_API void oval_state_add_content(struct oval_state *, struct oval_state_content *content)
Append instance of oval_state_content to attribute oval_state->state_contents.
Definition oval_state.c:250
oval_variable_possible_value::oval_variable_possible_value_free
OSCAP_API void oval_variable_possible_value_free(struct oval_variable_possible_value *pv)
Free instance of possible_value.
Definition oval_variable.c:116
oval_behavior::oval_behavior_get_value
OSCAP_API char * oval_behavior_get_value(struct oval_behavior *)
Get OVAL behavior value.
Definition oval_behavior.c:79
oval_state::oval_state_clone
OSCAP_API struct oval_state * oval_state_clone(struct oval_definition_model *new_model, struct oval_state *old_state)
Clone instance of oval_state and add it to the specified oval_definition_model.
Definition oval_state.c:167
oval_definition::oval_definition_add_affected
OSCAP_API void oval_definition_add_affected(struct oval_definition *, struct oval_affected *affected)
Append instance of oval_affected to attribute oval_definition->affected.
Definition oval_definition.c:305
oval_state::oval_state_set_deprecated
OSCAP_API void oval_state_set_deprecated(struct oval_state *, bool deprecated)
Sets attribute oval_state->deprecated.
Definition oval_state.c:232
oval_setobject_operation_t
oval_setobject_operation_t
Set operations.
Definition oval_definitions.h:184
oval_object::oval_object_add_behavior
OSCAP_API void oval_object_add_behavior(struct oval_object *, struct oval_behavior *behavior)
Append instance of oval_behavior to attribute oval_object->behaviors.
Definition oval_object.c:292
oval_component::oval_component_set_variable
OSCAP_API void oval_component_set_variable(struct oval_component *, struct oval_variable *variable)
set attribute Oval_component_object->variable.
Definition oval_component.c:934
oval_criteria_node_type_t
oval_criteria_node_type_t
Criteria node type.
Definition oval_definitions.h:67
oval_component::oval_component_new
OSCAP_API struct oval_component * oval_component_new(struct oval_definition_model *, oval_component_type_t type)
Construct new intance of Oval_component.
Definition oval_component.c:621
oval_reference::oval_reference_clone
OSCAP_API struct oval_reference * oval_reference_clone(struct oval_definition_model *new_model, struct oval_reference *old_reference)
Definition oval_reference.c:107
oval_value::oval_value_get_text
OSCAP_API char * oval_value_get_text(struct oval_value *)
Get OVAL value as a text.
Definition oval_value.c:81
oval_behavior::oval_behavior_get_key
OSCAP_API char * oval_behavior_get_key(struct oval_behavior *)
Get OVAL behavior name.
Definition oval_behavior.c:86
oval_affected::oval_affected_add_product
OSCAP_API void oval_affected_add_product(struct oval_affected *, char *product_name)
Append name to oval_affected product names.
Definition oval_affected.c:181
oval_affected::oval_affected_get_family
OSCAP_API oval_affected_family_t oval_affected_get_family(struct oval_affected *)
Get member value oval_affected family.
Definition oval_affected.c:95
oval_criteria_node::oval_criteria_set_node_type
OSCAP_API void oval_criteria_set_node_type(struct oval_criteria_node *node, oval_criteria_node_type_t type)
Set attribute Oval_criteria_node->type.
Definition oval_criteriaNode.c:298
oval_affected_family_t
oval_affected_family_t
Affected family enumeration.
Definition oval_definitions.h:55
oval_reference::oval_reference_set_source
OSCAP_API void oval_reference_set_source(struct oval_reference *, char *)
Set OVAL reference source.
Definition oval_reference.c:134
oval_reference::oval_reference_get_url
OSCAP_API char * oval_reference_get_url(struct oval_reference *)
Get OVAL reference URL.
Definition oval_reference.c:86
oval_definition::oval_definition_get_version
OSCAP_API int oval_definition_get_version(struct oval_definition *)
Returns attribute oval_definition->version.
Definition oval_definition.c:80
oval_value::oval_value_get_boolean
OSCAP_API bool oval_value_get_boolean(struct oval_value *)
Get OVAL value as a boolean.
Definition oval_value.c:93
oval_definition::oval_definition_set_criteria
OSCAP_API void oval_definition_set_criteria(struct oval_definition *, struct oval_criteria_node *criteria)
Set attribute oval_definition->criteria.
Definition oval_definition.c:299
oval_definition::oval_definition_add_note
OSCAP_API void oval_definition_add_note(struct oval_definition *, char *note)
Append a copy of the note parameter to attribute Oval_definition->notes.
Definition oval_definition.c:317
oval_test::oval_test_get_family
OSCAP_API oval_family_t oval_test_get_family(struct oval_test *)
Returns attribute Oval_test->family.
Definition oval_test.c:80
oval_definition_model::oval_definition_model_new
OSCAP_API struct oval_definition_model * oval_definition_model_new(void)
Create an empty oval_definition_model.
Definition oval_defModel.c:68
oval_criteria_node::oval_criteria_node_get_applicability_check
OSCAP_API bool oval_criteria_node_get_applicability_check(struct oval_criteria_node *)
Returns attribute Oval_criteria_node->applicability_check.
Definition oval_criteriaNode.c:129
oval_criteria_node::oval_criteria_node_get_type
OSCAP_API oval_criteria_node_type_t oval_criteria_node_get_type(struct oval_criteria_node *)
Returns attribute Oval_criteria_node->type.
Definition oval_criteriaNode.c:114
oval_check_t
oval_check_t
Check enumeration.
Definition oval_definitions.h:113
oval_object::oval_object_clone
OSCAP_API struct oval_object * oval_object_clone(struct oval_definition_model *new_model, struct oval_object *old_object)
Clone instance of oval_object and add it to the specified oval_definition_model.
Definition oval_object.c:228
oval_entity::oval_entity_get_name
OSCAP_API char * oval_entity_get_name(struct oval_entity *)
Get OVAL entity name.
Definition oval_entity.c:99
oval_criteria_node::oval_criteria_node_set_operator
OSCAP_API void oval_criteria_node_set_operator(struct oval_criteria_node *, oval_operator_t op)
Set attribute Oval_criteria->operator.
Definition oval_criteriaNode.c:325
oval_variable_restriction::oval_variable_restriction_get_value
OSCAP_API char * oval_variable_restriction_get_value(struct oval_variable_restriction *restriction)
Get the value of a restriction element.
Definition oval_variable.c:250
oval_object::oval_object_set_subtype
OSCAP_API void oval_object_set_subtype(struct oval_object *, oval_subtype_t subtype)
Sets attributes oval_object->subtype and oval_object->family.
Definition oval_object.c:254
oval_criteria_node::oval_criteria_node_set_test
OSCAP_API void oval_criteria_node_set_test(struct oval_criteria_node *, struct oval_test *)
Sets attribute Oval_criterion->test.
Definition oval_criteriaNode.c:343
oval_test::oval_test_add_note
OSCAP_API void oval_test_add_note(struct oval_test *, char *note)
Appends a copy of the note parameter to attribute oval_test->notes.
Definition oval_test.c:327
oval_reference::oval_reference_get_source
OSCAP_API char * oval_reference_get_source(struct oval_reference *)
Get OVAL reference source.
Definition oval_reference.c:72
oval_value::oval_value_clone
OSCAP_API struct oval_value * oval_value_clone(struct oval_value *old_value)
Definition oval_value.c:131
oval_entity::oval_entity_clone
OSCAP_API struct oval_entity * oval_entity_clone(struct oval_definition_model *model, struct oval_entity *old_entity)
Definition oval_entity.c:179
oval_object_content::oval_object_content_get_field_name
OSCAP_API char * oval_object_content_get_field_name(struct oval_object_content *)
Get field name of a object content.
Definition oval_objectContent.c:96
oval_definition::oval_definition_clone
OSCAP_API struct oval_definition * oval_definition_clone(struct oval_definition_model *new_model, struct oval_definition *old_definition)
Clone instance of oval_definition and add it to the specified oval_definition_model.
Definition oval_definition.c:173
oval_state::oval_state_get_family
OSCAP_API oval_family_t oval_state_get_family(struct oval_state *)
Returns attribute oval_state->family.
Definition oval_state.c:76
oval_object::oval_object_free
OSCAP_API void oval_object_free(struct oval_object *)
Free instance of oval_object.
Definition oval_object.c:233
oval_component::oval_component_get_type
OSCAP_API oval_component_type_t oval_component_get_type(struct oval_component *)
Returns attribute Oval_component->type.
Definition oval_component.c:271
oval_criteria_node::oval_criteria_node_get_comment
OSCAP_API char * oval_criteria_node_get_comment(struct oval_criteria_node *)
Returns attribute Oval_criteria_node->comment.
Definition oval_criteriaNode.c:136
oval_definition::oval_definition_set_class
OSCAP_API void oval_definition_set_class(struct oval_definition *, oval_definition_class_t)
Set attribute oval_definition->class.
Definition oval_definition.c:271
oval_object::oval_object_get_family
OSCAP_API oval_family_t oval_object_get_family(struct oval_object *)
Returns attribute oval_object->family.
Definition oval_object.c:77
oval_component_type_t
oval_component_type_t
Component types.
Definition oval_definitions.h:201
oval_variable_possible_value::oval_variable_possible_value_get_value
OSCAP_API char * oval_variable_possible_value_get_value(struct oval_variable_possible_value *pv)
Get the value of the possible value.
Definition oval_variable.c:132
oval_object::oval_object_add_object_content
OSCAP_API void oval_object_add_object_content(struct oval_object *, struct oval_object_content *content)
Append instance of oval_object_content to attribute oval_object->object_contents.
Definition oval_object.c:286
oval_object::oval_object_get_name
OSCAP_API const char * oval_object_get_name(struct oval_object *)
Returns the name of an oval_object.
Definition oval_object.c:91
oval_criteria_node::oval_criteria_node_get_operator
OSCAP_API oval_operator_t oval_criteria_node_get_operator(struct oval_criteria_node *)
Returns attribute Oval_criteria->operator HOWDI.
Definition oval_criteriaNode.c:143
oval_object::oval_object_add_note
OSCAP_API void oval_object_add_note(struct oval_object *, char *note)
Appends a copy of the note parameter to attribute oval_object->notes.
Definition oval_object.c:260
oval_test::oval_test_new
OSCAP_API struct oval_test * oval_test_new(struct oval_definition_model *, const char *id)
Construct new instance of oval_test.
Definition oval_test.c:191
oval_behavior::oval_behavior_clone
OSCAP_API struct oval_behavior * oval_behavior_clone(struct oval_definition_model *new_model, struct oval_behavior *old_behavior)
Definition oval_behavior.c:105
oval_criteria_node::oval_criteria_node_set_definition
OSCAP_API void oval_criteria_node_set_definition(struct oval_criteria_node *, struct oval_definition *)
Sets attribute Oval_extends->definition.
Definition oval_criteriaNode.c:352
oval_object::oval_object_set_version
OSCAP_API void oval_object_set_version(struct oval_object *, int version)
Sets attribute oval_object->version.
Definition oval_object.c:280
oval_component::oval_component_set_object
OSCAP_API void oval_component_set_object(struct oval_component *, struct oval_object *object)
set attribute Oval_component_object->object.
Definition oval_component.c:310
oval_entity_type_t
oval_entity_type_t
Type of OVAL entity.
Definition oval_definitions.h:131
oval_test::oval_test_set_comment
OSCAP_API void oval_test_set_comment(struct oval_test *, char *comment)
Sets a copy of the comment parameter to attribute oval_test->comment.
Definition oval_test.c:289
oval_component::oval_component_set_item_field
OSCAP_API void oval_component_set_item_field(struct oval_component *, char *)
set attribute Oval_component_object->item_field.
Definition oval_component.c:325
oval_setobject_type_t
oval_setobject_type_t
OVAL set object types.
Definition oval_definitions.h:177
oval_operator_t
oval_operator_t
Boolean operators.
Definition oval_definitions.h:75
oval_component::oval_component_set_type
OSCAP_API void oval_component_set_type(struct oval_component *component, oval_component_type_t type)
Set type of component Oval_component->type.
Definition oval_component.c:295
oval_criteria_node::oval_criteria_node_free
OSCAP_API void oval_criteria_node_free(struct oval_criteria_node *)
Free an instance of oval_criteria_node.
Definition oval_criteriaNode.c:269
oval_criteria_node::oval_criteria_node_get_negate
OSCAP_API bool oval_criteria_node_get_negate(struct oval_criteria_node *)
Returns attribute Oval_criteria_node->negate.
Definition oval_criteriaNode.c:122
oval_variable::oval_variable_clone
OSCAP_API struct oval_variable * oval_variable_clone(struct oval_definition_model *new_model, struct oval_variable *old_variable)
Clone instance of oval_variable and add it to the specified oval_definition_model.
Definition oval_variable.c:617
oval_entity::oval_entity_get_type
OSCAP_API oval_entity_type_t oval_entity_get_type(struct oval_entity *)
Get OVAL entity type.
Definition oval_entity.c:106
oval_value::oval_value_get_integer
OSCAP_API long long oval_value_get_integer(struct oval_value *)
Get OVAL value as an integer.
Definition oval_value.c:111
oval_arithmetic_operation_t
oval_arithmetic_operation_t
Arithmetic format enumeration.
Definition oval_definitions.h:223
oval_test::oval_test_get_subtype
OSCAP_API oval_subtype_t oval_test_get_subtype(struct oval_test *)
Returns attribute Oval_test->subtype.
Definition oval_test.c:87
oval_definition_model::oval_definition_model_free
OSCAP_API void oval_definition_model_free(struct oval_definition_model *model)
Free OVAL object model and all binded variable models.
Definition oval_defModel.c:126
oval_test::oval_test_free
OSCAP_API void oval_test_free(struct oval_test *)
Destruct instance of oval_test.
Definition oval_test.c:258
oval_affected::oval_affected_clone
OSCAP_API struct oval_affected * oval_affected_clone(struct oval_definition_model *new_model, struct oval_affected *old_affected)
Clone instance of oval_affected.
Definition oval_affected.c:131
oval_variable_restriction::oval_variable_restriction_get_operation
OSCAP_API oval_operation_t oval_variable_restriction_get_operation(struct oval_variable_restriction *restriction)
Get the operation of a restriction element.
Definition oval_variable.c:243
oval_definition::oval_definition_set_title
OSCAP_API void oval_definition_set_title(struct oval_definition *, char *title)
Set attribute oval_definition->title.
Definition oval_definition.c:283
oval_variable_possible_value::oval_variable_possible_value_new
OSCAP_API struct oval_variable_possible_value * oval_variable_possible_value_new(const char *hint, const char *value)
Construct new instance of possible_value element.
Definition oval_variable.c:107
oval_setobject::oval_setobject_get_operation
OSCAP_API oval_setobject_operation_t oval_setobject_get_operation(struct oval_setobject *)
Get OVAL set object operation type.
Definition oval_set.c:85
oval_test::oval_test_set_version
OSCAP_API void oval_test_set_version(struct oval_test *, int version)
Sets attribute oval_test->version.
Definition oval_test.c:277
oval_criteria_node::oval_criteria_node_set_applicability_check
OSCAP_API void oval_criteria_node_set_applicability_check(struct oval_criteria_node *, bool applicability_check)
Set attribute Oval_criteria_node->applicability_check.
Definition oval_criteriaNode.c:311
oval_state::oval_state_set_version
OSCAP_API void oval_state_set_version(struct oval_state *, int version)
Sets attribute oval_state->version.
Definition oval_state.c:238
oval_datetime_format_t
oval_datetime_format_t
Datetime format enumeration.
Definition oval_definitions.h:232
oval_variable::oval_variable_new
OSCAP_API struct oval_variable * oval_variable_new(struct oval_definition_model *model, const char *id, oval_variable_type_t type)
Construct new instance of oval_variable.
Definition oval_variable.c:549
oval_definition::oval_definition_get_deprecated
OSCAP_API bool oval_definition_get_deprecated(struct oval_definition *)
Returns attribute oval_definition->deprecated.
Definition oval_definition.c:94
oval_object_content::oval_object_content_clone
OSCAP_API struct oval_object_content * oval_object_content_clone(struct oval_definition_model *new_model, struct oval_object_content *old_content)
Definition oval_objectContent.c:206
oval_datatype_t
oval_datatype_t
Datatypes.
Definition oval_definitions.h:149
oval_definition::oval_definition_set_description
OSCAP_API void oval_definition_set_description(struct oval_definition *, char *description)
Set attribute oval_definition->description.
Definition oval_definition.c:291
oval_entity_varref_type_t
oval_entity_varref_type_t
Varref types.
Definition oval_definitions.h:169
oval_definition_model::oval_definition_model_import_source
OSCAP_API struct oval_definition_model * oval_definition_model_import_source(struct oscap_source *source)
Import the content of the oscap_source into the oval_definition_model.
Definition oval_defModel.c:244
oval_entity::oval_entity_get_operation
OSCAP_API oval_operation_t oval_entity_get_operation(struct oval_entity *)
Get OVAL entity operation type.
Definition oval_entity.c:120
oval_test::oval_test_set_existence
OSCAP_API void oval_test_set_existence(struct oval_test *, oval_existence_t)
Sets attribute oval_test->existence.
Definition oval_test.c:297
oval_object_content_type_t
oval_object_content_type_t
Type of object content.
Definition oval_definitions.h:123
oval_object::oval_object_get_subtype
OSCAP_API oval_subtype_t oval_object_get_subtype(struct oval_object *)
Returns attribute oval_object->subtype.
Definition oval_object.c:84
oval_entity::oval_entity_get_datatype
OSCAP_API oval_datatype_t oval_entity_get_datatype(struct oval_entity *)
Get OVAL entity datatype.
Definition oval_entity.c:113
oval_test::oval_test_set_subtype
OSCAP_API void oval_test_set_subtype(struct oval_test *, oval_subtype_t subtype)
Sets attributes oval_test->subtype and Oval_test->family.
Definition oval_test.c:283
oval_variable_possible_restriction::oval_variable_possible_restriction_new
OSCAP_API struct oval_variable_possible_restriction * oval_variable_possible_restriction_new(oval_operator_t, const char *)
Construct new instance of possible_restriction element.
Definition oval_variable.c:159
oval_component_iterator::oval_component_iterator_has_more
OSCAP_API bool oval_component_iterator_has_more(struct oval_component_iterator *)
Return true if the iterator is not exhausted.
Definition oval_component.c:250
oval_family_t
oval_family_t
OVAL family.
Definition oval_types.h:41
oval_subtype_t
oval_subtype_t
Unknown subtypes.
Definition oval_types.h:127
oscap.h
General OpenScap functions and types.
oval_adt.h
oval_types.h
oval_definition_class_t
oval_definition_class_t
Definition oval_types.h:471
oscap_source
Definition oscap_source.c:66
oval_affected_iterator
oval_affected
Each OVAL Definition specifies certain type of affected system(s).
Definition oval_affected.c:52
oval_behavior_iterator
oval_behavior
OVAL behavior.
Definition oval_behavior.c:50
oval_component_iterator
oval_component
OVAL variable component Oval_component instances specify evaluation constraints on local variables (s...
Definition oval_component.c:123
oval_criteria_node_iterator
oval_criteria_node
Specify oval_definition dependencies.
Definition oval_criteriaNode.c:50
oval_definition_iterator
oval_definition_model
Oval definition model.
Definition oval_defModel.c:53
oval_definition
Oval definition specification.
Definition oval_definition.c:53
oval_entity_iterator
oval_entity
OVAL entity.
Definition oval_entity.c:54
oval_filter_iterator
oval_filter
OVAL filter.
Definition oval_filter.c:43
oval_generator
Definition oval_generator.c:47
oval_object_content_iterator
oval_object_content
An Oval_object_content instance specifies an oval_object field.
Definition oval_objectContent.c:44
oval_object_iterator
oval_object
An Oval_object instance describes a set of items to look for on an instrumented host platform.
Definition oval_object.c:45
oval_record_field_iterator
oval_record_field
Definition oval_recordField.c:35
oval_reference_iterator
oval_reference
An Oval_reference links an Oval_definition to a definitive external reference.
Definition oval_reference.c:43
oval_schema_version_t
Definition oval_schema_version.h:41
oval_setobject
OVAL set object.
Definition oval_set.c:45
oval_state_content_iterator
oval_state_content
An Oval_state_content instance specifies an oval_state field.
Definition oval_stateContent.c:45
oval_state_iterator
oval_state
An Oval_state instance is a collection of one or more characteristics pertaining to a specific object...
Definition oval_state.c:45
oval_string_iterator
oval_test_iterator
oval_test
An Oval_test specifies a technical control by identifying an oval_object that is evaluated on an inst...
Definition oval_test.c:48
oval_value_iterator
oval_value
OVAL object or item entity value.
Definition oval_value.c:45
oval_variable_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
oval_variable_possible_restriction
Definition oval_variable.c:96
oval_variable_possible_value
Definition oval_variable.c:91
oval_variable_restriction
Definition oval_variable.c:102
oval_variable
An oval variable resolves an oval_value stream which specifies constraints for oval_object s and ova...
Definition oval_variable.c:50