Method
AravisDomNodereplace_child
Declaration [src]
ArvDomNode*
arv_dom_node_replace_child (
ArvDomNode* self,
ArvDomNode* new_child,
ArvDomNode* old_child
)
Description [src]
Replaces the child node old_child
with new_child
in the list of children,
and returns the old_child
node.
If the new_child
is already in the tree, it is first removed.
Parameters
new_child |
ArvDomNode |
A replacement node. |
|
The instance takes ownership of the data, and is responsible for freeing it. | |
old_child |
ArvDomNode |
Node to replace. |
|
The data is owned by the caller of the function. |
Return value
Returns: | ArvDomNode |
The replaced node. |
|
The caller of the method takes ownership of the data, and is responsible for freeing it. |