Open SCAP Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Data Fields
oval_object Struct Reference

Detailed Description

An Oval_object instance describes a set of items to look for on an instrumented host platform.

A simple object will usually result in a single file, process, etc being identified. But through the use pattern matches, sets, and variables, multiple matching objects can be identified. Therefore an OVAL Object can identify a set of many individual items on a system. This set of items defined by the OVAL Object can then be used by an OVAL Test and compared against an OVAL State.

#include <oval_definitions.h>

Public Member Functions

struct oval_objectoval_object_new (struct oval_definition_model *, const char *id)
 Construct new intance of oval_object. More...
 
struct oval_objectoval_object_clone (struct oval_definition_model *new_model, struct oval_object *old_object)
 Clone instance of oval_object and add it to the specified oval_definition_model. More...
 
void oval_object_free (struct oval_object *)
 Free instance of oval_object.
 
Setters
void oval_object_set_subtype (struct oval_object *, oval_subtype_t subtype)
 Sets attributes oval_object->subtype and oval_object->family. More...
 
void oval_object_add_note (struct oval_object *, char *note)
 Appends a copy of the note parameter to attribute oval_object->notes. More...
 
void oval_object_set_comment (struct oval_object *, char *comment)
 Sets a copy of the comment parameter to attribute oval_object->comment. More...
 
void oval_object_set_deprecated (struct oval_object *, bool deprecated)
 Sets attribute oval_object->deprecated.
 
void oval_object_set_version (struct oval_object *, int version)
 Sets attribute oval_object->version. More...
 
void oval_object_add_object_content (struct oval_object *, struct oval_object_content *content)
 Append instance of oval_object_content to attribute oval_object->object_contents. More...
 
void oval_object_add_behavior (struct oval_object *, struct oval_behavior *behavior)
 Append instance of oval_behavior to attribute oval_object->behaviors. More...
 
Getters
oval_family_t oval_object_get_family (struct oval_object *)
 Returns attribute oval_object->family.
 
const char * oval_object_get_name (struct oval_object *)
 Returns the name of an oval_object. More...
 
oval_subtype_t oval_object_get_subtype (struct oval_object *)
 Returns attribute oval_object->subtype.
 
struct oval_string_iteratoroval_object_get_notes (struct oval_object *)
 Returns attribute oval_object->notes. More...
 
char * oval_object_get_comment (struct oval_object *)
 Returns attribute oval_object->comment. More...
 
char * oval_object_get_id (struct oval_object *)
 Returns attribute oval_object->id. More...
 
bool oval_object_get_deprecated (struct oval_object *)
 Returns attribute oval_object->deprecated.
 
int oval_object_get_version (struct oval_object *)
 Returns attribute oval_object->version.
 
oval_schema_version_t oval_object_get_platform_schema_version (struct oval_object *object)
 Returns schema version of the associated platform extension definition model.
 
struct
oval_object_content_iterator
oval_object_get_object_contents (struct oval_object *)
 Returns attribute oval_object->contents. More...
 
struct oval_behavior_iteratoroval_object_get_behaviors (struct oval_object *)
 Returns attribute oval_object->behaviors. More...
 

Data Fields

struct oval_definition_modelmodel
 
oval_subtype_t subtype
 
struct oval_objectbase_obj_ref
 
struct oval_collectionnotes
 
char * comment
 
char * id
 
int deprecated
 
int version
 
struct oval_collectionobject_content
 
struct oval_collectionbehaviors
 

The documentation for this struct was generated from the following files: