Axl Node Attribute iteration: An interface provided to iterate attribute nodes without knowing them.


Functions

void axl_node_attr_cursor_first (axlAttrCursor *cursor)
 Allows to configure the provided cursor to point to the first attribute found inside the node.
void axl_node_attr_cursor_free (axlAttrCursor *cursor)
 Allows to release axlAttrCursor.
const char * axl_node_attr_cursor_get_key (axlAttrCursor *cursor)
 Allows to get the attribute key associated to the attribute selected by the cursor.
const char * axl_node_attr_cursor_get_value (axlAttrCursor *cursor)
 Allows to get the attribute value associated to the attribute selected by the cursor.
bool axl_node_attr_cursor_has_item (axlAttrCursor *cursor)
 Allows to check if the current position selected has an attribute reference.
bool axl_node_attr_cursor_has_next (axlAttrCursor *cursor)
 Allows to check if the is a next attribute, following current attribute selected.
axlAttrCursoraxl_node_attr_cursor_new (axlNode *node)
 Allows to get a cursor to iterate attributes found in the provided node in a linear and efficient way.
void axl_node_attr_cursor_next (axlAttrCursor *cursor)
 Configures the provided attribute cursor to point to the next attribute.
void axl_node_attr_foreach (axlNode *node, axlNodeAttrForeachFunc func, axlPointer data, axlPointer data2)
 Allows to provide a function which is called foreach attribute installed on the provided node.