Open Vulnerability and Assessment Language. More...
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "oval_definitions_impl.h"
#include "oval_collection_impl.h"
#include "oval_agent_api_impl.h"
#include "../common/util.h"
#include "../common/public/debug.h"
Data Structures | |
struct | oval_state |
Handle: Oval_state. More... | |
Typedefs | |
typedef struct oval_state | oval_state_t |
Functions | |
bool | oval_state_iterator_has_more (struct oval_state_iterator *oc_state) |
Returns true if the iterator is not exhausted. | |
struct oval_state * | oval_state_iterator_next (struct oval_state_iterator *oc_state) |
Returns the next instance of Oval_state. | |
void | oval_state_iterator_free (struct oval_state_iterator *oc_state) |
Frees the iterator. | |
oval_family_t | oval_state_get_family (struct oval_state *state) |
Returns attribute Oval_state->family. | |
oval_subtype_t | oval_state_get_subtype (struct oval_state *state) |
Returns attribute Oval_state->subtype. | |
const char * | oval_state_get_name (struct oval_state *state) |
Returns the name of an Oval_state. | |
struct oval_string_iterator * | oval_state_get_notes (struct oval_state *state) |
Returns attribute Oval_state->notes. | |
struct oval_state_content_iterator * | oval_state_get_contents (struct oval_state *state) |
Returns attribute Oval_state->contents. | |
char * | oval_state_get_comment (struct oval_state *state) |
Returns attribute Oval_state->comment. | |
char * | oval_state_get_id (struct oval_state *state) |
Returns attribute Oval_state->id. | |
bool | oval_state_get_deprecated (struct oval_state *state) |
Returns attribute Oval_state->deprecated. | |
int | oval_state_get_version (struct oval_state *state) |
Returns attribute Oval_state->version. | |
struct oval_state * | oval_state_new (struct oval_definition_model *model, char *id) |
Construct new intance of Oval_state. | |
bool | oval_state_is_valid (struct oval_state *state) |
return true if the state instance is valid | |
bool | oval_state_is_locked (struct oval_state *state) |
return true if the state instance is locked. | |
struct oval_state * | oval_state_clone (struct oval_definition_model *new_model, struct oval_state *old_state) |
void | oval_state_free (struct oval_state *state) |
Free instance of Oval_state. | |
void | oval_state_set_subtype (struct oval_state *state, oval_subtype_t subtype) |
Sets attributes Oval_state->subtype and Oval_state->family. | |
void | oval_state_add_note (struct oval_state *state, char *notes) |
Appends a copy of the note parameter to attribute Oval_state->notes. | |
void | oval_state_set_comment (struct oval_state *state, char *comm) |
Sets a copy of the comment parameter to attribute Oval_state->comment. | |
void | oval_state_set_deprecated (struct oval_state *state, bool deprecated) |
Sets attribute Oval_state->deprecated. | |
void | oval_state_set_version (struct oval_state *state, int version) |
Sets attribute Oval_state->version. | |
void | oval_state_add_content (struct oval_state *state, struct oval_state_content *content) |
Append instance of Oval_state_content to attribute Oval_state->state_contents. | |
int | oval_state_parse_tag (xmlTextReaderPtr reader, struct oval_parser_context *context) |
void | oval_state_to_print (struct oval_state *state, char *indent, int idx) |
xmlNode * | oval_state_to_dom (struct oval_state *state, xmlDoc *doc, xmlNode *parent) |
Open Vulnerability and Assessment Language.
See more details at http://oval.mitre.org/