axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
void axl_node_replace ( axlNode node,
axlNode new_node,
axl_bool  dealloc 

Allows to replace a selected node with a new reference inside its context (updating all references: next, previous and parent).

The axlNode replaced will be unreference according to dealloc value.

nodeThe node to be replaced by new_node reference.
new_nodeThe node that will replace node reference.
deallocSignal if node must be deallocated after the replace operation.

References axl_doc_set_root(), axl_item_get_doc(), axl_item_get_parent(), AXL_LEVEL_DEBUG, axl_node_free(), axl_node_get_name(), and axl_return_if_fail.