axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
void axl_item_replace ( axlItem item,
axlItem new_item,
axl_bool  dealloc 
)

Allows to replace the content held by the axlItem reference with a new axlItem, updating all references, and optionally, deallocating the memory used by the previous item reference.

Parameters
itemThe item to be replaced.
new_itemThe new item to be placed where the previous one is located.
deallocSignal to function to dealloc the memory hold the the item replaced.

References axl_item_free(), axl_item_get_type(), axl_return_if_fail, and axl_true.