axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
axlNode * axl_node_copy ( axlNode node,
axl_bool  copy_attributes,
axl_bool  copy_childs 

Allows to perform a copy operation for the provided node.

nodeThe source node to copy.
copy_attributesSignals the function to also copy node attributes into the newly created node.
copy_childsSignals the function to also copy childs for the source node.
A newly created node copy or null if it fails. The function will fail if the node reference provided is null.

References axl_free(), axl_hash_copy_full(), axl_item_copy(), axl_item_get_type(), AXL_LEVEL_DEBUG, axl_node_create(), axl_node_get_name(), and axl_return_val_if_fail.

Referenced by axl_item_copy(), and axl_item_new().