Public interface for OVAL Results. More...
Data Structures | |
struct | oval_results_model |
OVAL Results Model holds OVAL results structure instances. More... | |
struct | oval_result_system |
struct | oval_result_system_iterator |
struct | oval_result_definition |
struct | oval_result_definition_iterator |
struct | oval_result_test |
struct | oval_result_test_iterator |
struct | oval_result_item |
struct | oval_result_item_iterator |
struct | oval_result_criteria_node |
struct | oval_result_criteria_node_iterator |
struct | oval_result_directives |
Files | |
file | oval_results.h |
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 | |
const char * | oval_result_get_text (oval_result_t) |
struct oval_result_directives * | oval_results_model::oval_results_model_import (struct oval_results_model *, struct oscap_import_source *, void *) |
Load oval results from XML file. | |
struct oval_results_model * | 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::oval_results_model_clone (struct oval_results_model *) |
Copy an oval_results_model. | |
void | oval_results_model::oval_results_model_free (struct oval_results_model *model) |
free memory allocated to a specified oval results model. | |
void | oval_results_model::oval_results_model_eval (struct oval_results_model *) |
Evaluate the specified oval results model and gather results for individual definitions and tests. | |
int | oval_results_model::oval_results_model_export (struct oval_results_model *, struct oval_result_directives *, struct oscap_export_target *) |
export oval results to XML file. | |
struct oval_result_system * | oval_result_system::oval_result_system_new (struct oval_results_model *, struct oval_syschar_model *) |
struct oval_result_system * | oval_result_system::oval_result_system_clone (struct oval_results_model *new_model, struct oval_result_system *old_system) |
void | oval_result_system::oval_result_system_free (struct oval_result_system *) |
void | oval_result_system::oval_result_system_eval (struct oval_result_system *) |
struct oval_result_definition * | oval_result_definition::oval_result_definition_new (struct oval_result_system *, char *) |
struct oval_result_definition * | oval_result_definition::oval_result_definition_clone (struct oval_result_system *new_system, struct oval_result_definition *old_definition) |
void | oval_result_definition::oval_result_definition_free (struct oval_result_definition *) |
struct oval_result_test * | oval_result_test::oval_result_test_new (struct oval_result_system *, char *) |
struct oval_result_test * | oval_result_test::oval_result_test_clone (struct oval_result_system *new_system, struct oval_result_test *old_test) |
void | oval_result_test::oval_result_test_free (struct oval_result_test *) |
struct oval_result_item * | oval_result_item::oval_result_item_new (struct oval_result_system *, char *) |
struct oval_result_item * | oval_result_item::oval_result_item_clone (struct oval_result_system *new_system, struct oval_result_item *old_item) |
void | oval_result_item::oval_result_item_free (struct oval_result_item *) |
struct oval_result_criteria_node * | oval_result_criteria_node::oval_result_criteria_node_new (struct oval_result_system *, oval_criteria_node_type_t, int,...) |
struct oval_result_criteria_node * | oval_result_criteria_node::oval_result_criteria_node_clone (struct oval_result_system *new_system, struct oval_result_criteria_node *old_node) |
void | oval_result_criteria_node::oval_result_criteria_node_free (struct oval_result_criteria_node *) |
struct oval_result_directives * | oval_result_directives::oval_result_directives_new (struct oval_results_model *) |
Create new OVAL results directives. | |
void | oval_result_directives::oval_result_directives_free (struct oval_result_directives *) |
Destroy OVAL results directives. | |
Getters | |
| |
bool | oval_result_test_is_locked (struct oval_result_test *result_test) |
Return true if the result_test instance is locked. | |
oval_criteria_node_type_t | oval_result_criteria_node_get_type (struct oval_result_criteria_node *) |
struct oval_definition_model * | oval_results_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::oval_results_model_get_systems (struct oval_results_model *) |
Return iterator over reporting systems. | |
bool | oval_results_model::oval_results_model_is_locked (struct oval_results_model *result_model) |
Return true if the result_model instance is locked. | |
struct oval_results_model * | oval_result_system::oval_result_system_get_results_model (struct oval_result_system *) |
struct oval_result_definition * | oval_result_system::oval_result_system_get_definition (struct oval_result_system *, char *) |
struct oval_result_definition_iterator * | oval_result_system::oval_result_system_get_definitions (struct oval_result_system *) |
struct oval_result_test_iterator * | oval_result_system::oval_result_system_get_tests (struct oval_result_system *) |
struct oval_syschar_model * | oval_result_system::oval_result_system_get_syschar_model (struct oval_result_system *) |
struct oval_sysinfo * | oval_result_system::oval_result_system_get_sysinfo (struct oval_result_system *) |
bool | oval_result_system::oval_result_system_is_locked (struct oval_result_system *result_system) |
Return true if the result_system instance is locked. | |
struct oval_definition * | oval_result_definition::oval_result_definition_get_definition (struct oval_result_definition *) |
struct oval_result_system * | oval_result_definition::oval_result_definition_get_system (struct oval_result_definition *) |
int | oval_result_definition::oval_result_definition_get_instance (struct oval_result_definition *) |
oval_result_t | oval_result_definition::oval_result_definition_eval (struct oval_result_definition *) |
oval_result_t | oval_result_definition::oval_result_definition_get_result (struct oval_result_definition *) |
struct oval_message_iterator * | oval_result_definition::oval_result_definition_get_messages (struct oval_result_definition *) |
struct oval_result_criteria_node * | oval_result_definition::oval_result_definition_get_criteria (struct oval_result_definition *) |
bool | oval_result_definition::oval_result_definition_is_locked (struct oval_result_definition *result_definition) |
return true if the result_definition instance is locked. | |
struct oval_test * | oval_result_test::oval_result_test_get_test (struct oval_result_test *) |
struct oval_result_system * | oval_result_test::oval_result_test_get_system (struct oval_result_test *) |
oval_result_t | oval_result_test::oval_result_test_eval (struct oval_result_test *) |
oval_result_t | oval_result_test::oval_result_test_get_result (struct oval_result_test *) |
int | oval_result_test::oval_result_test_get_instance (struct oval_result_test *) |
struct oval_message * | oval_result_test::oval_result_test_get_message (struct oval_result_test *) |
struct oval_result_item_iterator * | oval_result_test::oval_result_test_get_items (struct oval_result_test *) |
struct oval_variable_binding_iterator * | oval_result_test::oval_result_test_get_bindings (struct oval_result_test *) |
struct oval_sysdata * | oval_result_item::oval_result_item_get_sysdata (struct oval_result_item *) |
oval_result_t | oval_result_item::oval_result_item_get_result (struct oval_result_item *) |
struct oval_message_iterator * | oval_result_item::oval_result_item_get_messages (struct oval_result_item *) |
bool | oval_result_item::oval_result_item_is_locked (struct oval_result_item *result_item) |
Return true if the result_item instance is locked. | |
oval_result_t | oval_result_criteria_node::oval_result_criteria_node_eval (struct oval_result_criteria_node *) |
oval_result_t | oval_result_criteria_node::oval_result_criteria_node_get_result (struct oval_result_criteria_node *) |
bool | oval_result_criteria_node::oval_result_criteria_node_get_negate (struct oval_result_criteria_node *) |
oval_operator_t | oval_result_criteria_node::oval_result_criteria_node_get_operator (struct oval_result_criteria_node *) |
struct oval_result_criteria_node_iterator * | oval_result_criteria_node::oval_result_criteria_node_get_subnodes (struct oval_result_criteria_node *) |
struct oval_result_test * | oval_result_criteria_node::oval_result_criteria_node_get_test (struct oval_result_criteria_node *) |
struct oval_result_definition * | oval_result_criteria_node::oval_result_criteria_node_get_extends (struct oval_result_criteria_node *) |
bool | oval_result_criteria_node::oval_result_criteria_node_is_locked (struct oval_result_criteria_node *result_criteria_node) |
return true if the result_criteria_node instance is locked. | |
bool | oval_result_directives::oval_result_directives_get_reported (struct oval_result_directives *, oval_result_t) |
oval_result_directive_content_t | oval_result_directives::oval_result_directives_get_content (struct oval_result_directives *, oval_result_t) |
bool | oval_result_directives::oval_result_directives_is_locked (struct oval_result_directives *result_directives) |
Return true if the result_directives instance is locked. | |
Setters | |
| |
void | oval_results_model::oval_results_model_add_system (struct oval_results_model *, struct oval_result_system *) |
void | oval_results_model::oval_results_model_lock (struct oval_results_model *result_model) |
Lock the result_model instance. | |
void | oval_result_system::oval_result_system_add_definition (struct oval_result_system *, struct oval_result_definition *) |
void | oval_result_system::oval_result_system_add_test (struct oval_result_system *, struct oval_result_test *) |
void | oval_result_definition::oval_result_definition_set_result (struct oval_result_definition *, oval_result_t) |
void | oval_result_definition::oval_result_definition_set_instance (struct oval_result_definition *, int) |
void | oval_result_definition::oval_result_definition_set_criteria (struct oval_result_definition *, struct oval_result_criteria_node *) |
void | oval_result_definition::oval_result_definition_add_message (struct oval_result_definition *, struct oval_message *) |
void | oval_result_test::oval_result_test_set_result (struct oval_result_test *, oval_result_t) |
void | oval_result_test::oval_result_test_set_instance (struct oval_result_test *test, int instance) |
void | oval_result_test::oval_result_test_set_message (struct oval_result_test *, struct oval_message *) |
void | oval_result_test::oval_result_test_add_item (struct oval_result_test *, struct oval_result_item *) |
void | oval_result_test::oval_result_test_add_binding (struct oval_result_test *, struct oval_variable_binding *) |
void | oval_result_item::oval_result_item_set_result (struct oval_result_item *, oval_result_t) |
void | oval_result_item::oval_result_item_add_message (struct oval_result_item *, struct oval_message *) |
void | oval_result_criteria_node::oval_result_criteria_node_set_result (struct oval_result_criteria_node *, oval_result_t) |
void | oval_result_criteria_node::oval_result_criteria_node_set_negate (struct oval_result_criteria_node *, bool) |
void | oval_result_criteria_node::oval_result_criteria_node_set_operator (struct oval_result_criteria_node *, oval_operator_t) |
void | oval_result_criteria_node::oval_result_criteria_node_add_subnode (struct oval_result_criteria_node *, struct oval_result_criteria_node *) |
void | oval_result_criteria_node::oval_result_criteria_node_set_test (struct oval_result_criteria_node *, struct oval_result_test *) |
void | oval_result_criteria_node::oval_result_criteria_node_set_extends (struct oval_result_criteria_node *, struct oval_result_definition *) |
void | oval_result_directives::oval_result_directives_set_reported (struct oval_result_directives *, oval_result_t, bool) |
void | oval_result_directives::oval_result_directives_set_content (struct oval_result_directives *, oval_result_t, oval_result_directive_content_t) |
Evaluators | |
| |
bool | oval_results_model::oval_results_model_is_valid (struct oval_results_model *results_model) |
Return true if the results_model instance is valid. | |
bool | oval_result_system::oval_result_system_is_valid (struct oval_result_system *result_system) |
Return true if the result_system instance is valid. | |
bool | oval_result_definition::oval_result_definition_is_valid (struct oval_result_definition *result_definition) |
Return true if the result_definition instance is valid. | |
bool | oval_result_test::oval_result_test_is_valid (struct oval_result_test *result_test) |
Return true if the result_test instance is valid. | |
bool | oval_result_item::oval_result_item_is_valid (struct oval_result_item *result_item) |
Return true if the result_item instance is valid. | |
bool | oval_result_criteria_node::oval_result_criteria_node_is_valid (struct oval_result_criteria_node *result_criteria_node) |
Return true if the result_criteria_node instance is valid. | |
bool | oval_result_directives::oval_result_directives_is_valid (struct oval_result_directives *result_directives) |
Return true if the result_directives instance is valid. | |
Iterators | |
| |
bool | oval_result_system_iterator::oval_result_system_iterator_has_more (struct oval_result_system_iterator *) |
struct oval_result_system * | oval_result_system_iterator::oval_result_system_iterator_next (struct oval_result_system_iterator *) |
void | oval_result_system_iterator::oval_result_system_iterator_free (struct oval_result_system_iterator *) |
bool | oval_result_definition_iterator::oval_result_definition_iterator_has_more (struct oval_result_definition_iterator *) |
struct oval_result_definition * | oval_result_definition_iterator::oval_result_definition_iterator_next (struct oval_result_definition_iterator *) |
void | oval_result_definition_iterator::oval_result_definition_iterator_free (struct oval_result_definition_iterator *) |
bool | oval_result_test_iterator::oval_result_test_iterator_has_more (struct oval_result_test_iterator *) |
struct oval_result_test * | oval_result_test_iterator::oval_result_test_iterator_next (struct oval_result_test_iterator *) |
void | oval_result_test_iterator::oval_result_test_iterator_free (struct oval_result_test_iterator *) |
bool | oval_result_item_iterator::oval_result_item_iterator_has_more (struct oval_result_item_iterator *) |
struct oval_result_item * | oval_result_item_iterator::oval_result_item_iterator_next (struct oval_result_item_iterator *) |
void | oval_result_item_iterator::oval_result_item_iterator_free (struct oval_result_item_iterator *) |
bool | oval_result_criteria_node_iterator::oval_result_criteria_node_iterator_has_more (struct oval_result_criteria_node_iterator *) |
struct oval_result_criteria_node * | oval_result_criteria_node_iterator::oval_result_criteria_node_iterator_next (struct oval_result_criteria_node_iterator *) |
void | oval_result_criteria_node_iterator::oval_result_criteria_node_iterator_free (struct oval_result_criteria_node_iterator *) |
Public interface for OVAL Results.
Class diagram
struct oval_result_criteria_node * oval_result_criteria_node_clone | ( | struct oval_result_system * | new_system, | |
struct oval_result_criteria_node * | old_node | |||
) | [read, inherited] |
bool oval_result_criteria_node_is_locked | ( | struct oval_result_criteria_node * | result_criteria_node | ) | [inherited] |
return true if the result_criteria_node instance is locked.
The state of a locked instance cannot be changed.
struct oval_result_definition * oval_result_definition_clone | ( | struct oval_result_system * | new_system, | |
struct oval_result_definition * | old_definition | |||
) | [read, inherited] |
bool oval_result_definition_is_locked | ( | struct oval_result_definition * | result_definition | ) | [inherited] |
return true if the result_definition instance is locked.
The state of a locked instance cannot be changed.
bool oval_result_directives_is_locked | ( | struct oval_result_directives * | result_directives | ) | [inherited] |
Return true if the result_directives instance is locked.
The state of a locked instance cannot be changed.
struct oval_result_item * oval_result_item_clone | ( | struct oval_result_system * | new_system, | |
struct oval_result_item * | old_item | |||
) | [read, inherited] |
bool oval_result_item_is_locked | ( | struct oval_result_item * | result_item | ) | [inherited] |
Return true if the result_item instance is locked.
The state of a locked instance cannot be changed.
struct oval_result_system * oval_result_system_clone | ( | struct oval_results_model * | new_model, | |
struct oval_result_system * | old_system | |||
) | [read, inherited] |
bool oval_result_system_is_locked | ( | struct oval_result_system * | result_system | ) | [inherited] |
Return true if the result_system instance is locked.
The state of a locked instance cannot be changed.
struct oval_result_test * oval_result_test_clone | ( | struct oval_result_system * | new_system, | |
struct oval_result_test * | old_test | |||
) | [read, inherited] |
bool oval_result_test_is_locked | ( | struct oval_result_test * | result_test | ) |
Return true if the result_test instance is locked.
The state of a locked instance cannot be changed.
struct oval_results_model * oval_results_model_clone | ( | struct oval_results_model * | ) | [read, inherited] |
Copy an oval_results_model.
void oval_results_model_eval | ( | struct oval_results_model * | ) | [inherited] |
Evaluate the specified oval results model and gather results for individual definitions and tests.
the | specified oval_results model |
int oval_results_model_export | ( | struct oval_results_model * | , | |
struct oval_result_directives * | , | |||
struct oscap_export_target * | ||||
) | [inherited] |
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 | ) | [inherited] |
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, inherited] |
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, inherited] |
Return iterator over reporting systems.
model | the specified results model |
struct oval_result_directives * oval_results_model_import | ( | struct oval_results_model * | , | |
struct oscap_import_source * | , | |||
void * | ||||
) | [read, inherited] |
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; |
bool oval_results_model_is_locked | ( | struct oval_results_model * | result_model | ) | [inherited] |
Return true if the result_model instance is locked.
The state of a locked instance cannot be changed.
void oval_results_model_lock | ( | struct oval_results_model * | result_model | ) | [inherited] |
Lock the result_model instance.
The state of a locked instance cannot be changed. This operation has no effect if the model is already locked.
struct oval_results_model * oval_results_model_new | ( | struct oval_definition_model * | definition_model, | |
struct oval_syschar_model ** | ||||
) | [read, inherited] |
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. |