Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
oval_defModel.c File Reference

Detailed Description

Open Vulnerability and Assessment Language.

See more details at http://oval.mitre.org/

#include <string.h>
#include <time.h>
#include "oval_definitions_impl.h"
#include "oval_agent_api_impl.h"
#include "oval_parser_impl.h"
#include "adt/oval_string_map_impl.h"
#include "oval_system_characteristics_impl.h"
#include "oval_probe_impl.h"
#include "common/util.h"
#include "common/debug_priv.h"
#include "common/_error.h"
#include "common/elements.h"
#include "oscap_source.h"
#include "source/oscap_source_priv.h"

Data Structures

struct  oval_definition_model
 Oval definition model. More...
 

Typedefs

typedef struct
oval_definition_model 
oval_definition_model_t
 
typedef void(* _oval_clone_func )(void *, struct oval_definition_model *)
 

Functions

struct oval_definition_modeloval_definition_model_new ()
 
struct oval_definition_modeloval_definition_model_clone (struct oval_definition_model *oldmodel)
 
void oval_definition_model_free (struct oval_definition_model *model)
 
struct oval_generatoroval_definition_model_get_generator (struct oval_definition_model *model)
 
void oval_definition_model_set_generator (struct oval_definition_model *model, struct oval_generator *generator)
 
const char * oval_definition_model_get_schema (struct oval_definition_model *model)
 
oval_version_t oval_definition_model_get_schema_version (struct oval_definition_model *model)
 
oval_schema_version_t oval_definition_model_get_core_schema_version (struct oval_definition_model *model)
 
oval_schema_version_t oval_definition_model_get_platform_schema_version (struct oval_definition_model *model, const char *platform)
 
void oval_definition_model_add_definition (struct oval_definition_model *model, struct oval_definition *definition)
 
void oval_definition_model_set_schema (struct oval_definition_model *model, const char *version)
 
void oval_definition_model_add_test (struct oval_definition_model *model, struct oval_test *test)
 
void oval_definition_model_add_object (struct oval_definition_model *model, struct oval_object *object)
 
void oval_definition_model_add_state (struct oval_definition_model *model, struct oval_state *state)
 
void oval_definition_model_add_variable (struct oval_definition_model *model, struct oval_variable *variable)
 
struct oval_definition_modeloval_definition_model_import_source (struct oscap_source *source)
 
struct oval_definition_modeloval_definition_model_import (const char *file)
 
int oval_definition_model_merge (struct oval_definition_model *model, const char *file)
 
struct oval_definitionoval_definition_model_get_definition (struct oval_definition_model *model, const char *key)
 
struct oval_testoval_definition_model_get_test (struct oval_definition_model *model, const char *key)
 
struct oval_objectoval_definition_model_get_object (struct oval_definition_model *model, const char *key)
 
struct oval_stateoval_definition_model_get_state (struct oval_definition_model *model, const char *key)
 
struct oval_variableoval_definition_model_get_variable (struct oval_definition_model *model, const char *key)
 
int oval_definition_model_bind_variable_model (struct oval_definition_model *defmodel, struct oval_variable_model *varmodel)
 
struct
oval_variable_model_iterator
oval_definition_model_get_variable_models (struct oval_definition_model *model)
 
void oval_definition_model_clear_external_variables (struct oval_definition_model *model)
 
struct oval_definition_iteratoroval_definition_model_get_definitions (struct oval_definition_model *model)
 
struct oval_string_iteratoroval_definition_model_get_definitions_dependent_on_variable (struct oval_definition_model *model, struct oval_variable *variable)
 
struct oval_test_iteratoroval_definition_model_get_tests (struct oval_definition_model *model)
 
struct oval_object_iteratoroval_definition_model_get_objects (struct oval_definition_model *model)
 
struct oval_state_iteratoroval_definition_model_get_states (struct oval_definition_model *model)
 
struct oval_variable_iteratoroval_definition_model_get_variables (struct oval_definition_model *model)
 
struct oval_definitionoval_definition_model_get_new_definition (struct oval_definition_model *model, const char *id)
 
struct oval_variableoval_definition_model_get_new_variable (struct oval_definition_model *model, const char *id, oval_variable_type_t type)
 
struct oval_stateoval_definition_model_get_new_state (struct oval_definition_model *model, const char *id)
 
struct oval_objectoval_definition_model_get_new_object (struct oval_definition_model *model, const char *id)
 
struct oval_testoval_definition_model_get_new_test (struct oval_definition_model *model, const char *id)
 
xmlNode * oval_definition_model_to_dom (struct oval_definition_model *definition_model, xmlDocPtr doc, xmlNode *parent)
 
int oval_definition_model_export (struct oval_definition_model *model, const char *file)
 
void oval_definition_model_optimize_by_filter_propagation (struct oval_definition_model *model)