axlList* axl_list_copy ( axlList list,
axlDuplicateFunc  func 
)

Allows to copy the provided list, returning a newly allocated structure.

The copy process can also perform a deep copy for all data stored inside the axlList. However, for this purpose it is required to provide a duplication function that is able to implement the duplication operation over the data received.

This handler is optional, and in the case it is not provided, the list returned will be a copy having reference to the content stored.

Parameters:
list The list to copy.
func The duplication function used to perform a deep copy (optional handler).
Returns:
A newly allocated axlList with the same configuration as the one provided.