Open SCAP Library: oval_variable.c File Reference

Open SCAP Library

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Macros | Typedefs | Functions
oval_variable.c File Reference

Open Vulnerability and Assessment Language. More...

`#include <stdlib.h>`
`#include <stdio.h>`
`#include <string.h>`
`#include "oval_definitions_impl.h"`
`#include "adt/oval_collection_impl.h"`
`#include "adt/oval_string_map_impl.h"`
`#include "oval_agent_api_impl.h"`
`#include "common/util.h"`
`#include "common/debug_priv.h"`
`#include "common/_error.h"`

## Data Structures
struct | oval_variable
| An oval variable resolves an oval_value stream which specifies constraints for oval_object s and oval_state s. More...
struct | oval_variable_CONSTANT_t
struct | oval_variable_EXTERNAL_t
struct | oval_variable_LOCAL_t
struct | oval_variable_UNKNOWN_t

## Macros
#define | VAR_BASE
#define | DEFINITION_NAMESPACE "http://oval.mitre.org/XMLSchema/oval-definitions-5"

## Typedefs
typedef struct oval_variable | oval_variable_t

## Functions
bool | oval_variable_iterator_has_more (struct oval_variable_iterator *oc_variable)
struct oval_variable * | oval_variable_iterator_next (struct oval_variable_iterator *oc_variable)
void | oval_variable_iterator_free (struct oval_variable_iterator *oc_variable)
char * | oval_variable_get_id (struct oval_variable *variable)
char * | oval_variable_get_comment (struct oval_variable *variable)
int | oval_variable_get_version (struct oval_variable *variable)
bool | oval_variable_get_deprecated (struct oval_variable *variable)
oval_variable_type_t | oval_variable_get_type (struct oval_variable *variable)
oval_datatype_t | oval_variable_get_datatype (struct oval_variable *variable)
struct oval_value_iterator * | oval_variable_get_values (struct oval_variable *variable)
bool | oval_variable_contains_value (struct oval_variable *variable, const char *o_value_text)
oval_syschar_collection_flag_t | oval_variable_get_collection_flag (struct oval_variable *variable)
int | oval_syschar_model_compute_variable (struct oval_syschar_model *sysmod, struct oval_variable *variable)
int | oval_probe_query_variable (oval_probe_session_t *sess, struct oval_variable *variable)
| Query the specified variable and all its dependencies in order to compute the vector of its values. More...
struct oval_component * | oval_variable_get_component (struct oval_variable *variable)
struct oval_variable * | oval_variable_new (struct oval_definition_model *model, const char *id, oval_variable_type_t type)
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)
void | oval_variable_set_datatype (struct oval_variable *variable, oval_datatype_t datatype)
void | oval_variable_set_type (struct oval_variable *variable, oval_variable_type_t new_type)
void | oval_variable_set_comment (struct oval_variable *variable, char *comm)
void | oval_variable_set_deprecated (struct oval_variable *variable, bool deprecated)
void | oval_variable_set_version (struct oval_variable *variable, int version)
void | oval_variable_add_value (struct oval_variable *variable, struct oval_value *value)
void | oval_variable_clear_values (struct oval_variable *variable)
int | oval_variable_bind_ext_var (struct oval_variable *var, struct oval_variable_model *varmod, char *extvar_id)
void | oval_variable_set_component (struct oval_variable *variable, struct oval_component *component)
int | oval_variable_parse_tag (xmlTextReaderPtr reader, struct oval_parser_context *context, void *usr)
xmlNode * | oval_variable_to_dom (struct oval_variable *variable, xmlDoc *doc, xmlNode *parent)

## Detailed Description

Open Vulnerability and Assessment Language.

See more details at http://oval.mitre.org/

## Macro Definition Documentation

#define VAR_BASE

Value:
struct oval_definition_model *model; \
oval_variable_type_t type; \
oval_syschar_collection_flag_t flag; \
char *id; \
int version; \
oval_datatype_t datatype; \
char *comment; \
int deprecated