libdom
Loading...
Searching...
No Matches
cdatasection.h File Reference

Go to the source code of this file.

Macros

#define _dom_cdata_section_initialise   _dom_text_initialise
 
#define _dom_cdata_section_finalise   _dom_text_finalise
 
#define DOM_CDATA_SECTION_PROTECT_VTABLE
 

Functions

dom_exception _dom_cdata_section_create (struct dom_document *doc, dom_string *name, dom_string *value, dom_cdata_section **result)
 
void _dom_cdata_section_destroy (dom_cdata_section *cdata)
 
void __dom_cdata_section_destroy (struct dom_node_internal *node)
 
dom_exception _dom_cdata_section_copy (struct dom_node_internal *old, struct dom_node_internal **copy)
 

Macro Definition Documentation

◆ _dom_cdata_section_finalise

#define _dom_cdata_section_finalise   _dom_text_finalise

◆ _dom_cdata_section_initialise

#define _dom_cdata_section_initialise   _dom_text_initialise

◆ DOM_CDATA_SECTION_PROTECT_VTABLE

#define DOM_CDATA_SECTION_PROTECT_VTABLE
Value:
void __dom_cdata_section_destroy(struct dom_node_internal *node)
Definition cdatasection.c:90
dom_exception _dom_cdata_section_copy(struct dom_node_internal *old, struct dom_node_internal **copy)
Definition cdatasection.c:96

Function Documentation

◆ __dom_cdata_section_destroy()

void __dom_cdata_section_destroy ( struct dom_node_internal * node)

◆ _dom_cdata_section_copy()

dom_exception _dom_cdata_section_copy ( struct dom_node_internal * old,
struct dom_node_internal ** copy )

◆ _dom_cdata_section_create()

dom_exception _dom_cdata_section_create ( dom_document * doc,
dom_string * name,
dom_string * value,
dom_cdata_section ** result )

Create a CDATA section

Parameters
docThe owning document
nameThe name of the node to create
valueThe text content of the node
resultPointer to location to receive created node
Returns
DOM_NO_ERR on success or DOM_NO_MEM_ERR on memory exhaustion.

doc, name and value will have their reference counts increased.

The returned node will already be referenced.

◆ _dom_cdata_section_destroy()

void _dom_cdata_section_destroy ( dom_cdata_section * cdata)

Destroy a CDATA section

Parameters
cdataThe cdata section to destroy

The contents of cdata will be destroyed and cdata will be freed.