axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
void axl_node_annotate_data_full ( axlNode node,
const char *  key,
axlDestroyFunc  key_destroy,
axlPointer  data,
axlDestroyFunc  data_destroy 
)

Allows to store user defined data associated to the node that is not visible from an XML perspective.

See axl_node_annotate_data for a long explanation. This function performs the same task as axl_node_annotate_data but allowing to set a key destroy and data destroy functions. They are later used to deallocate key and data references.

Parameters
nodeThe node where the annotated data will be stored.
keyThe key under which the annotated data will be stored.
key_destroyThe destroy function to be called to deallocate the key stored.
dataThe data to be stored associated to the key provided.
data_destroyThe destroy function to be called to deallocate the data provided.

References axl_hash_insert_full(), and axl_return_if_fail.

Referenced by axl_node_annotate_double(), axl_node_annotate_int(), axl_node_annotate_string(), axl_node_parse(), and axl_node_parse_strings().