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_string_map_impl.h"
#include "oval_agent_api_impl.h"
#include "../common/util.h"
#include "../common/public/debug.h"
#include "../common/_error.h"
Data Structures | |
struct | oval_variable |
Handle: Oval_variable. More... | |
struct | oval_variable_LOCAL |
Defines | |
#define | DEFINITION_NAMESPACE "http://oval.mitre.org/XMLSchema/oval-definitions-5" |
Typedefs | |
typedef struct oval_variable | oval_variable_t |
typedef struct oval_variable | oval_variable_CONEXT_t |
typedef struct oval_variable_LOCAL | oval_variable_LOCAL_t |
typedef struct oval_variable_LOCAL | oval_variable_UNKNOWN_t |
Functions | |
bool | oval_variable_iterator_has_more (struct oval_variable_iterator *oc_variable) |
Returns true if iterator not exhausted. | |
struct oval_variable * | oval_variable_iterator_next (struct oval_variable_iterator *oc_variable) |
Returns next instance of Oval_variable. | |
void | oval_variable_iterator_free (struct oval_variable_iterator *oc_variable) |
Free iterator. | |
char * | oval_variable_get_id (struct oval_variable *variable) |
Returns attribute Oval_variable->id. | |
char * | oval_variable_get_comment (struct oval_variable *variable) |
Returns attribute Oval_variable->comment. | |
int | oval_variable_get_version (struct oval_variable *variable) |
Returns attribute Oval_variable->version. | |
bool | oval_variable_get_deprecated (struct oval_variable *variable) |
Returns attribute Oval_variable->deprecated. | |
oval_variable_type_t | oval_variable_get_type (struct oval_variable *variable) |
Returns attribute Oval_variable->type. | |
oval_datatype_t | oval_variable_get_datatype (struct oval_variable *variable) |
Returns attribute Oval_variable->datatype. | |
struct oval_value_iterator * | oval_variable_get_values (struct oval_variable *variable) |
Returns attribute Oval_external/Oval_constant->values. | |
oval_syschar_collection_flag_t | oval_syschar_model_get_variable_collection_flag (struct oval_syschar_model *sysmod, struct oval_variable *variable) |
Get the collection flag associated with a specified oval_variable. | |
struct oval_value_iterator * | oval_syschar_model_get_variable_values (struct oval_syschar_model *sysmod, struct oval_variable *variable) |
Get the oval_values bound to a specified variable. | |
struct oval_component * | oval_variable_get_component (struct oval_variable *variable) |
Returns attribute Oval_local->component. | |
struct oval_variable * | oval_variable_new (struct oval_definition_model *model, char *id, oval_variable_type_t type) |
Construct new instance of Oval_variable. | |
bool | oval_variable_is_valid (struct oval_variable *variable) |
Returns true if Oval_variable is valid. | |
bool | oval_variable_is_locked (struct oval_variable *variable) |
return true if the variable instance is locked. | |
struct oval_variable * | oval_variable_clone (struct oval_definition_model *new_model, struct oval_variable *old_variable) |
void | oval_variable_free (struct oval_variable *variable) |
Free instance of Oval_variable. | |
void | oval_variable_set_datatype (struct oval_variable *variable, oval_datatype_t datatype) |
set attribute Oval_variable->datatype. | |
void | oval_variable_set_type (struct oval_variable *variable, oval_variable_type_t type) |
void | oval_variable_set_comment (struct oval_variable *variable, char *comm) |
set attribute Oval_variable->comment. | |
void | oval_variable_set_deprecated (struct oval_variable *variable, bool deprecated) |
set attribute Oval_variable->deprecated. | |
void | oval_variable_set_version (struct oval_variable *variable, int version) |
set attribute Oval_variable->version. | |
void | oval_variable_add_value (struct oval_variable *variable, struct oval_value *value) |
Append an instance of Oval_value to the attribute Oval_constant->values. | |
void | oval_variable_set_component (struct oval_variable *variable, struct oval_component *component) |
Bind an instance of Oval_component to the attribute Oval_local->component. | |
int | oval_variable_parse_tag (xmlTextReaderPtr reader, struct oval_parser_context *context) |
void | oval_variable_to_print (struct oval_variable *variable, char *indent, int idx) |
xmlNode * | oval_variable_to_dom (struct oval_variable *variable, xmlDoc *doc, xmlNode *parent) |
Open Vulnerability and Assessment Language.
See more details at http://oval.mitre.org/