Getters
[Oval_object]

Oval_object get methods. More...

Functions

bool oval_object_is_locked (struct oval_object *object)
 return true if the object instance is locked.
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.
oval_subtype_t oval_object_get_subtype (struct oval_object *)
 Returns attribute Oval_object->subtype.
struct oval_string_iterator * oval_object_get_notes (struct oval_object *)
 Returns attribute Oval_object->notes.
void oval_object_add_note (struct oval_object *, char *note)
 Appends a copy of the note parameter to attribute Oval_object->notes.
char * oval_object_get_comment (struct oval_object *)
 Returns attribute Oval_object->comment.
char * oval_object_get_id (struct oval_object *)
 Returns attribute Oval_object->id.
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.
struct
oval_object_content_iterator * 
oval_object_get_object_contents (struct oval_object *)
 Returns attribute Oval_object->contents.
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.
struct oval_behavior_iterator * oval_object_get_behaviors (struct oval_object *)
 Returns attribute Oval_object->behaviors.

Detailed Description

Oval_object get methods.


Function Documentation

void oval_object_add_note ( struct oval_object ,
char *  note 
)

Appends a copy of the note parameter to attribute Oval_object->notes.

See also:
oval_object_get_notes
Parameters:
note - (Not NULL) the text of the appended note.
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.

Oval_object_contents appended to a given Oval_object shall be freed by the API when the Oval_object is freed.

Note:
A specific instance of Oval_object_content should not be appended to more than one Oval_object, and an instance of Oval_object_content should not be appended more than once to a single Oval_object.
An instance of Oval_object_content that is appended to an Oval_object should not be freed independently by the application using oval_object_content_free.
See also:
oval_object_get_object_contents
Parameters:
content - (Not NULL) the Oval_object_content to be appended.
struct oval_behavior_iterator* oval_object_get_behaviors ( struct oval_object  )  [read]

Returns attribute Oval_object->behaviors.

See also:
oval_object_add_behavior
char* oval_object_get_comment ( struct oval_object  ) 

Returns attribute Oval_object->comment.

See also:
oval_object_set_comment
bool oval_object_get_deprecated ( struct oval_object  ) 

Returns attribute Oval_object->deprecated.

See also:
oval_object_new
oval_object_set_deprecated
oval_family_t oval_object_get_family ( struct oval_object  ) 

Returns attribute Oval_object->family.

See also:
oval_object_set_subtype
char* oval_object_get_id ( struct oval_object  ) 

Returns attribute Oval_object->id.

See also:
oval_object_new
const char* oval_object_get_name ( struct oval_object  ) 

Returns the name of an Oval_object.

This is a convenience method that is equivalent to oval_subtype_get_text (oval_object_get_subtype)+"_object".

See also:
oval_object_set_name
struct oval_string_iterator* oval_object_get_notes ( struct oval_object  )  [read]

Returns attribute Oval_object->notes.

Note:
The iterator returned by this method should be freed by the calling application.
See also:
oval_object_add_note
struct oval_object_content_iterator* oval_object_get_object_contents ( struct oval_object  )  [read]

Returns attribute Oval_object->contents.

See also:
oval_object_add_object_content
oval_subtype_t oval_object_get_subtype ( struct oval_object  ) 

Returns attribute Oval_object->subtype.

See also:
oval_object_set_subtype
int oval_object_get_version ( struct oval_object  ) 

Returns attribute Oval_object->version.

See also:
oval_object_set_version
bool oval_object_is_locked ( struct oval_object object  ) 

return true if the object instance is locked.

The state of a locked instance cannot be changed.


Generated on 4 Jan 2010 for Open SCAP Library by  doxygen 1.6.1