oval_defModel.c File Reference

Open Vulnerability and Assessment Language. More...

#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 ()
 Create an empty oval_definition_model.
struct oval_definition_modeloval_definition_model_clone (struct oval_definition_model *oldmodel)
 Copy an oval_definition_model.
void oval_definition_model_free (struct oval_definition_model *model)
 Free OVAL object model and all binded variable models.
struct oval_generator * oval_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)
 Import the content of the oscap_source into the oval_definition_model oval_definition_model.
struct oval_definition_modeloval_definition_model_import (const char *file)
 Import the content from the file into an oval_definition_model.
int oval_definition_model_merge (struct oval_definition_model *model, const char *file)
 Merge the content from the file with specified oval_definition_model.
struct oval_definitionoval_definition_model_get_definition (struct oval_definition_model *model, const char *key)
 Returns the appended oval_definition having the specified id.
struct oval_testoval_definition_model_get_test (struct oval_definition_model *model, const char *key)
 Get oval test by ID.
struct oval_objectoval_definition_model_get_object (struct oval_definition_model *model, const char *key)
 Get OVAL object by ID.
struct oval_stateoval_definition_model_get_state (struct oval_definition_model *model, const char *key)
 Get OVAL state by ID.
struct oval_variableoval_definition_model_get_variable (struct oval_definition_model *model, const char *key)
 Get OVAL variable by ID.
int oval_definition_model_bind_variable_model (struct oval_definition_model *defmodel, struct oval_variable_model *varmodel)
 Bind an oval_variable_model to the specified oval_definition_model.
struct
oval_variable_model_iterator
oval_definition_model_get_variable_models (struct oval_definition_model *model)
 Return the list of variable models bound to the specified oval_definition_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)
 Returns all appended oval_definition instances.
struct oval_string_iterator * oval_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)
 Get OVAL tests.
struct oval_object_iteratoroval_definition_model_get_objects (struct oval_definition_model *model)
 Get OVAL objects.
struct oval_state_iteratoroval_definition_model_get_states (struct oval_definition_model *model)
 Get OVAL states.
struct oval_variable_iteratoroval_definition_model_get_variables (struct oval_definition_model *model)
 Get OVAL variables.
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)
 Export an oval_definition_model into file.
void oval_definition_model_optimize_by_filter_propagation (struct oval_definition_model *model)


Detailed Description

Open Vulnerability and Assessment Language.

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


Generated on Tue Nov 14 12:18:55 2017 for Open SCAP Library by  doxygen 1.5.6