Data Structures |
struct | xml_metadata |
| XML Metadata. More...
|
struct | xml_metadata_iterator |
| Iterator over XML metadata. More...
|
struct | oscap_nsinfo |
| Information on namespaces for given document. More...
|
struct | oscap_nsinfo_entry |
| Namespace information entry. More...
|
struct | oscap_nsinfo_entry_iterator |
| Namespace info iterator. More...
|
Functions |
struct xml_metadata * | xml_metadata::xml_metadata_new (void) |
| Constructor of XML metadata.
|
void | xml_metadata::xml_metadata_free (struct xml_metadata *xml) |
| Destructor of XML metadata structure.
|
struct oscap_nsinfo * | oscap_nsinfo::oscap_nsinfo_new (void) |
struct oscap_nsinfo * | oscap_nsinfo::oscap_nsinfo_new_file (const char *fname) |
void | oscap_nsinfo::oscap_nsinfo_free (struct oscap_nsinfo *info) |
struct oscap_nsinfo_entry * | oscap_nsinfo_entry::oscap_nsinfo_entry_new (void) |
struct oscap_nsinfo_entry * | oscap_nsinfo_entry::oscap_nsinfo_entry_new_fill (const char *nsprefix, const char *nsname) |
void | oscap_nsinfo_entry::oscap_nsinfo_entry_free (struct oscap_nsinfo_entry *entry) |
Getters |
If return value is a pointer to structure's member, do not free it unless you null the pointer in the structure.
|
const char * | xml_metadata::xml_metadata_get_nspace (const struct xml_metadata *xml) |
| Get namespace attribute from XML metadata.
|
const char * | xml_metadata::xml_metadata_get_lang (const struct xml_metadata *xml) |
| Get xml:lang attribute from XML metadata.
|
const char * | xml_metadata::xml_metadata_get_URI (const struct xml_metadata *xml) |
| Get URI attribute from XML metadata.
|
struct
oscap_nsinfo_entry_iterator * | oscap_nsinfo::oscap_nsinfo_get_entries (const struct oscap_nsinfo *item) |
struct oscap_nsinfo_entry * | oscap_nsinfo::oscap_nsinfo_get_root_entry (const struct oscap_nsinfo *item) |
struct oscap_nsinfo_entry * | oscap_nsinfo::oscap_nsinfo_get_entry_by_ns (struct oscap_nsinfo *info, const char *ns) |
const char * | oscap_nsinfo_entry::oscap_nsinfo_entry_get_nsname (const struct oscap_nsinfo_entry *item) |
const char * | oscap_nsinfo_entry::oscap_nsinfo_entry_get_nsprefix (const struct oscap_nsinfo_entry *item) |
const char * | oscap_nsinfo_entry::oscap_nsinfo_entry_get_schema_location (const struct oscap_nsinfo_entry *item) |
Setters |
For lists use add functions.
Parameters of set functions are duplicated in memory and need to be freed by caller.
|
bool | xml_metadata::xml_metadata_set_nspace (struct xml_metadata *xml, const char *new_namespace) |
| Set namespace attribute of XML metadata.
|
bool | xml_metadata::xml_metadata_set_lang (struct xml_metadata *xml, const char *new_lang) |
| Set xml:lang attribute of XML metadata.
|
bool | xml_metadata::xml_metadata_set_URI (struct xml_metadata *xml, const char *new_uri) |
| Set URI attribute of XML metadata.
|
bool | oscap_nsinfo::oscap_nsinfo_add_entry (struct oscap_nsinfo *obj, struct oscap_nsinfo_entry *item) |
bool | oscap_nsinfo::oscap_nsinfo_set_root_entry (struct oscap_nsinfo *obj, struct oscap_nsinfo_entry *newval) |
bool | oscap_nsinfo_entry::oscap_nsinfo_entry_set_nsname (struct oscap_nsinfo_entry *obj, const char *newval) |
bool | oscap_nsinfo_entry::oscap_nsinfo_entry_set_nsprefix (struct oscap_nsinfo_entry *obj, const char *newval) |
bool | oscap_nsinfo_entry::oscap_nsinfo_entry_set_schema_location (struct oscap_nsinfo_entry *obj, const char *newval) |
Iterators |
|
struct xml_metadata * | xml_metadata_iterator::xml_metadata_iterator_next (struct xml_metadata_iterator *it) |
bool | xml_metadata_iterator::xml_metadata_iterator_has_more (struct xml_metadata_iterator *it) |
void | xml_metadata_iterator::xml_metadata_iterator_free (struct xml_metadata_iterator *it) |
void | xml_metadata_iterator::xml_metadata_iterator_remove (struct xml_metadata_iterator *it) |
bool | oscap_nsinfo_entry_iterator::oscap_nsinfo_entry_iterator_has_more (struct oscap_nsinfo_entry_iterator *it) |
struct oscap_nsinfo_entry * | oscap_nsinfo_entry_iterator::oscap_nsinfo_entry_iterator_next (struct oscap_nsinfo_entry_iterator *it) |
void | oscap_nsinfo_entry_iterator::oscap_nsinfo_entry_iterator_free (struct oscap_nsinfo_entry_iterator *it) |
Describes XML elemenent metadata such as namespace or language.