Dublin Core references handling. More...
#include "reference_priv.h"
#include "list.h"
#include "debug_priv.h"
Defines | |
#define | NS_DUBLINCORE BAD_CAST "http://purl.org/dc/elements/1.1/" |
#define | DC_ITEM_TO_DOM(ITEM) do { xmlNewTextChild(ref_node, ns_dc, BAD_CAST #ITEM, BAD_CAST ref->ITEM); } while(0) |
#define | DC_DOM_SCAN(ITEM) do { if (oscap_streq((const char*)cur->name, #ITEM)) ref->ITEM = (char*) xmlNodeGetContent(ref_node); } while(0) |
#define | DC_ITEM_CLONE(ITEM) do { new_ref->ITEM = oscap_strdup(ref->ITEM); } while(0) |
Functions | |
struct oscap_reference * | oscap_reference_new (void) |
void | oscap_reference_free (struct oscap_reference *ref) |
xmlNode * | oscap_reference_to_dom (struct oscap_reference *ref, xmlNode *parent, xmlDoc *doc, const char *elname) |
struct oscap_reference * | oscap_reference_new_parse (xmlTextReaderPtr reader) |
struct oscap_reference * | oscap_reference_clone (const struct oscap_reference *ref) |
Dublin Core references handling.