Open SCAP Library: reference.c File Reference

Open SCAP Library

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

- File List
- Globals

Macros | Functions
reference.c File Reference

Dublin Core references handling. More...

`#include "reference_priv.h"`
`#include "list.h"`
`#include "debug_priv.h"`

## Macros
#define | NS_DUBLINCORE BAD_CAST "http://purl.org/dc/elements/1.1/"
#define | DC_ITEM_TO_DOM(ITEM)
#define | DC_DOM_SCAN(ITEM)
#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)

## Detailed Description

Dublin Core references handling.

## Macro Definition Documentation

#define DC_DOM_SCAN | ( |  | ITEM | ) |

Value:
do { \
if (oscap_streq((const char*)cur->name, #ITEM)) \
ref->ITEM = (char*) xmlNodeGetContent(cur); \
} while(0)

#define DC_ITEM_TO_DOM | ( |  | ITEM | ) |

Value:
do { \
if (ref->ITEM != NULL) \
xmlNewTextChild(ref_node, ns_dc, BAD_CAST #ITEM, BAD_CAST ref->ITEM); \
} while(0)