OVALDEF

OVAL Definitions API. More...

Data Structures

struct  oval_definition_model
 OVAL definition model. More...

Functions

struct oval_definition_modeloval_definition_model_new (void)
 Create an empty oval_definition_model.
struct oval_definition_modeloval_definition_model_clone (struct oval_definition_model *)
 Copy an oval_definition_model.
void oval_definition_model_free (struct oval_definition_model *model)
int oval_definition_model_import (struct oval_definition_model *model, struct oval_import_source *source, oval_xml_error_handler error_handler, void *client)
 Load OVAL definitions from a XML stream.
struct oval_definitionoval_definition_model_get_definition (struct oval_definition_model *model, char *id)
 Get OVAL definition by ID.
struct oval_testoval_definition_model_get_test (struct oval_definition_model *model, char *id)
 Get oval test by ID.
struct oval_objectoval_definition_model_get_object (struct oval_definition_model *model, char *id)
 Get OVAL object by ID.
struct oval_stateoval_definition_model_get_state (struct oval_definition_model *model, char *id)
 Get OVAL state by ID.
struct oval_variableoval_definition_model_get_variable (struct oval_definition_model *model, char *id)
 Get OVAL variable by ID.
struct oval_definition_iterator * oval_definition_model_get_definitions (struct oval_definition_model *model)
 Get OVAL definitions.
struct oval_test_iterator * oval_definition_model_get_tests (struct oval_definition_model *model)
 Get OVAL tests.
struct oval_object_iterator * oval_definition_model_get_objects (struct oval_definition_model *model)
 Get OVAL objects.
struct oval_state_iterator * oval_definition_model_get_states (struct oval_definition_model *model)
 Get OVAL states.
struct oval_variable_iterator * oval_definition_model_get_variables (struct oval_definition_model *model)
 Get OVAL variables.
int oval_definition_model_export (struct oval_definition_model *, struct oval_export_target *)
void oval_definition_model_add_definition (struct oval_definition_model *, struct oval_definition *)
void oval_definition_model_add_test (struct oval_definition_model *, struct oval_test *)
void oval_definition_model_add_object (struct oval_definition_model *, struct oval_object *)
void oval_definition_model_add_state (struct oval_definition_model *, struct oval_state *)
void oval_definition_model_add_variable (struct oval_definition_model *, struct oval_variable *)
void 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.

Detailed Description

OVAL Definitions API.


Function Documentation

struct oval_definition* oval_definition_model_get_definition ( struct oval_definition_model model,
char *  id 
) [read]

Get OVAL definition by ID.

Return a designated oval_definition from the specified oval_definition_model. If the specified id does not resolve to an oval_definition the function returns NULL.

Parameters:
model the queried model.
id the definition id.
struct oval_definition_iterator* oval_definition_model_get_definitions ( struct oval_definition_model model  )  [read]

Get OVAL definitions.

Return all oval_definitions from the specified oval_definition_model.

Parameters:
model the queried model.
struct oval_object* oval_definition_model_get_object ( struct oval_definition_model model,
char *  id 
) [read]

Get OVAL object by ID.

Return a designated oval_object from the specified oval_definition_model. If the specified id does not resolve to an oval_object the function returns NULL.

Parameters:
model the queried model.
id the object id.
struct oval_object_iterator* oval_definition_model_get_objects ( struct oval_definition_model model  )  [read]

Get OVAL objects.

Return all oval_objects from the specified oval_definition_model.

Parameters:
model the queried model.
struct oval_state* oval_definition_model_get_state ( struct oval_definition_model model,
char *  id 
) [read]

Get OVAL state by ID.

Return a designated oval_state from the specified oval_definition_model. If the specified id does not resolve to an oval_state the function returns NULL.

Parameters:
model the queried model.
id the state id.
struct oval_state_iterator* oval_definition_model_get_states ( struct oval_definition_model model  )  [read]

Get OVAL states.

Return all oval_states from the specified oval_definition_model.

Parameters:
model the queried model.
struct oval_test* oval_definition_model_get_test ( struct oval_definition_model model,
char *  id 
) [read]

Get oval test by ID.

Return a designated oval_test from the specified oval_definition_model. If the specified id does not resolve to an oval_test the function returns NULL.

Parameters:
model the queried model.
id the test id.
struct oval_test_iterator* oval_definition_model_get_tests ( struct oval_definition_model model  )  [read]

Get OVAL tests.

Return all oval_tests from the specified oval_definition_model.

Parameters:
model the queried model.
struct oval_variable* oval_definition_model_get_variable ( struct oval_definition_model model,
char *  id 
) [read]

Get OVAL variable by ID.

Return a designated oval_variable from the specified oval_definition_model. If the specified id does not resolve to an oval_variable the function returns NULL.

Parameters:
model the queried model.
id the variable id.
struct oval_variable_iterator* oval_definition_model_get_variables ( struct oval_definition_model model  )  [read]

Get OVAL variables.

Return all oval_variables from the specified oval_definition_model.

Parameters:
model the queried model.
int oval_definition_model_import ( struct oval_definition_model model,
struct oval_import_source source,
oval_xml_error_handler  error_handler,
void *  client 
)

Load OVAL definitions from a XML stream.

Merge content from a specified XML stream into a specified oval_definition_model. If the input_source specifies a model entity (id=A, version=V) and the model specifies no entity (id=A, ...) then (id=A, version=V) is merged into the model. If the input_source specifies a model entity (id=A, version=V) and the model specifies an entity (id=A, ...) then (id=A, version=V) then the source specification is skipped.

Parameters:
model the merge target model.
source an <oval_def:oval_definitions> XML stream
error_handler callback for detected error conditions (may be NULL)
client pointer to client data (may be NULL)

Generated on 12 Nov 2009 for Open SCAP Library by  doxygen 1.6.1