OVAL Results API. More...
Data Structures | |
| struct | oval_results_model |
| OVAL Results Model. More... | |
Enumerations | |
| enum | oval_result_t { OVAL_RESULT_INVALID = 0, OVAL_RESULT_TRUE = 1, OVAL_RESULT_FALSE = 2, OVAL_RESULT_UNKNOWN = 3, OVAL_RESULT_ERROR = 4, OVAL_RESULT_NOT_EVALUATED = 5, OVAL_RESULT_NOT_APPLICABLE = 6 } |
| enum | oval_result_directive_content_t { OVAL_DIRECTIVE_CONTENT_UNKNOWN = 0, OVAL_DIRECTIVE_CONTENT_THIN = 1, OVAL_DIRECTIVE_CONTENT_FULL = 2 } |
Functions | |
| struct oval_results_model * | oval_results_model_new (struct oval_definition_model *definition_model, struct oval_syschar_model **) |
| Create new oval_results_model. | |
| struct oval_results_model * | oval_results_model_clone (struct oval_results_model *) |
| Copy an oval_results_model. | |
| void | oval_results_model_free (struct oval_results_model *model) |
| free memory allocated to a specified oval results model. | |
| struct oval_definition_model * | oval_results_model_get_definition_model (struct oval_results_model *model) |
| oval_results_model_definition_model Return bound object model from an oval_results_model. | |
| struct oval_result_system_iterator * | oval_results_model_get_systems (struct oval_results_model *) |
| Return iterator over reporting systems. | |
| void | oval_results_model_add_system (struct oval_results_model *, struct oval_result_system *) |
| struct oval_result_directives * | oval_results_model_import (struct oval_results_model *, struct oval_import_source *, oval_xml_error_handler, void *) |
| load oval results from XML file. | |
| struct oval_result_directives * | oval_result_directives_new (void) |
| Create new OVAL results directives. | |
| void | oval_result_directives_free (struct oval_result_directives *) |
| Destroy OVAL results directives. | |
| int | oval_results_model_export (struct oval_results_model *, struct oval_result_directives *, struct oval_export_target *) |
| export oval results to XML file. | |
| struct oval_sysinfo * | oval_sysinfo_probe (void) |
| struct oval_syschar * | oval_object_probe (struct oval_object *, struct oval_definition_model *model) |
| Probe single OVAL object. | |
| int | oval_result_system_iterator_has_more (struct oval_result_system_iterator *) |
| struct oval_result_system * | oval_result_system_iterator_next (struct oval_result_system_iterator *) |
| void | oval_result_system_iterator_free (struct oval_result_system_iterator *) |
|
struct oval_result_definition_iterator * | oval_result_system_get_definitions (struct oval_result_system *) |
| struct oval_result_test_iterator * | oval_result_system_get_tests (struct oval_result_system *) |
| struct oval_syschar_model * | oval_result_system_get_syschar_model (struct oval_result_system *) |
| struct oval_sysinfo * | oval_result_system_get_sysinfo (struct oval_result_system *) |
| void | oval_result_system_add_definition (struct oval_result_system *, struct oval_result_definition *) |
| void | oval_result_system_add_test (struct oval_result_system *, struct oval_result_test *) |
| int | oval_result_definition_iterator_has_more (struct oval_result_definition_iterator *) |
| struct oval_result_definition * | oval_result_definition_iterator_next (struct oval_result_definition_iterator *) |
| void | oval_result_definition_iterator_free (struct oval_result_definition_iterator *) |
| struct oval_definition * | oval_result_definition_get_definition (struct oval_result_definition *) |
| struct oval_result_system * | oval_result_definition_get_system (struct oval_result_definition *) |
| int | oval_result_definition_get_instance (struct oval_result_definition *) |
| oval_result_t | oval_result_definition_get_result (struct oval_result_definition *) |
| struct oval_message_iterator * | oval_result_definition_get_messages (struct oval_result_definition *) |
| struct oval_result_criteria_node * | oval_result_definition_get_criteria (struct oval_result_definition *) |
| void | oval_result_definition_set_result (struct oval_result_definition *, oval_result_t) |
| void | oval_result_definition_set_instance (struct oval_result_definition *, int) |
| void | oval_result_definition_set_criteria (struct oval_result_definition *, struct oval_result_criteria_node *) |
| void | oval_result_definition_add_message (struct oval_result_definition *, struct oval_message *) |
| int | oval_result_item_iterator_has_more (struct oval_result_item_iterator *) |
| struct oval_result_item * | oval_result_item_iterator_next (struct oval_result_item_iterator *) |
| void | oval_result_item_iterator_free (struct oval_result_item_iterator *) |
| struct oval_sysdata * | oval_result_item_get_sysdata (struct oval_result_item *) |
| oval_result_t | oval_result_item_get_result (struct oval_result_item *) |
| struct oval_message_iterator * | oval_result_item_get_messages (struct oval_result_item *) |
| int | oval_result_test_iterator_has_more (struct oval_result_test_iterator *) |
| struct oval_result_test * | oval_result_test_iterator_next (struct oval_result_test_iterator *) |
| void | oval_result_test_iterator_free (struct oval_result_test_iterator *) |
| struct oval_test * | oval_result_test_get_test (struct oval_result_test *) |
| struct oval_result_system * | oval_result_test_get_system (struct oval_result_test *) |
| oval_result_t | oval_result_test_get_result (struct oval_result_test *) |
| int | oval_result_test_get_instance (struct oval_result_test *) |
| struct oval_message * | oval_result_test_get_message (struct oval_result_test *) |
| struct oval_result_item_iterator * | oval_result_test_get_items (struct oval_result_test *) |
|
struct oval_variable_binding_iterator * | oval_result_test_get_bindings (struct oval_result_test *) |
| int | oval_result_criteria_node_iterator_has_more (struct oval_result_criteria_node_iterator *) |
| struct oval_result_criteria_node * | oval_result_criteria_node_iterator_next (struct oval_result_criteria_node_iterator *) |
| void | oval_result_criteria_node_iterator_free (struct oval_result_criteria_node_iterator *) |
| oval_criteria_node_type_t | oval_result_criteria_node_get_type (struct oval_result_criteria_node *) |
| oval_result_t | oval_result_criteria_node_get_result (struct oval_result_criteria_node *) |
| bool | oval_result_criteria_node_get_negate (struct oval_result_criteria_node *) |
| oval_operator_t | oval_result_criteria_node_get_operator (struct oval_result_criteria_node *) |
|
struct oval_result_criteria_node_iterator * | oval_result_criteria_node_get_subnodes (struct oval_result_criteria_node *) |
| struct oval_result_test * | oval_result_criteria_node_get_test (struct oval_result_criteria_node *) |
| struct oval_result_definition * | oval_result_criteria_node_get_extends (struct oval_result_criteria_node *) |
| bool | oval_result_directives_get_reported (struct oval_result_directives *, oval_result_t) |
| oval_result_directive_content_t | oval_result_directives_get_content (struct oval_result_directives *, oval_result_t) |
| void | oval_result_directives_set_reported (struct oval_result_directives *, oval_result_t, bool) |
| void | oval_result_directives_set_content (struct oval_result_directives *, oval_result_t, oval_result_directive_content_t) |
| const char * | oval_result_get_text (oval_result_t) |
OVAL Results API.
| int oval_results_model_export | ( | struct oval_results_model * | , | |
| struct oval_result_directives * | , | |||
| struct oval_export_target * | ||||
| ) |
export oval results to XML file.
| model | the oval_results_model | |
| target | the export target stream (XML) |
| void oval_results_model_free | ( | struct oval_results_model * | model | ) |
free memory allocated to a specified oval results model.
| the | specified oval_results model |
| struct oval_definition_model* oval_results_model_get_definition_model | ( | struct oval_results_model * | model | ) | [read] |
oval_results_model_definition_model Return bound object model from an oval_results_model.
| model | the specified oval_results_model. |
| struct oval_result_system_iterator* oval_results_model_get_systems | ( | struct oval_results_model * | ) | [read] |
Return iterator over reporting systems.
| model | the specified results model |
| struct oval_result_directives* oval_results_model_import | ( | struct oval_results_model * | , | |
| struct oval_import_source * | , | |||
| oval_xml_error_handler | , | |||
| void * | ||||
| ) | [read] |
load oval results from XML file.
| model | the oval_results_model | |
| source | the input source (XML) | |
| error_handler | the error handler | |
| client_data | client data; |
| struct oval_results_model* oval_results_model_new | ( | struct oval_definition_model * | definition_model, | |
| struct oval_syschar_model ** | ||||
| ) | [read] |
Create new oval_results_model.
The new model is bound to a specified oval_definition_model and variable bindings.
| definition_model | the specified oval_definition_model. | |
| syschar_model | the array of specified oval_syschar_model(s) terminated by NULL. |
1.6.1