axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
axlItem* axl_item_new_ref ( AxlItemType  type,
axlPointer  data 

Allows to create an axlItem, with the provided type and holding the provided data.

The function won't configure the parent node holding the item.

typeThe type that will represent the axlItem created.
dataData associated to the axlItem. This function won't perform any copy for the data received. The user calling to this API must check that the data is only owned by the axlItem created (that is, used by this function).
A newly allocated axlItem with no parent and holding the data provided.

References axl_item_get_type(), axl_new, ITEM_CDATA, ITEM_COMMENT, ITEM_CONTENT, ITEM_NODE, ITEM_PI, and ITEM_REF.