gboolean g_base_info_iterate_attributes GIRepository.AttributeIter iterator utf8 name utf8 value iterate_attributes @accepts(GIRepository.AttributeIter, utf8, utf8) @returns(gboolean) def GIRepository.BaseInfo.iterate_attributes(iterator, name, value)

Iterate over all attributes associated with this node. The iterator structure is typically stack allocated, and must have its first member initialized to %NULL.

Both the @name and @value should be treated as constants and must not be freed.

<example> <title>Iterating over attributes</title> <programlisting> void print_attributes (GIBaseInfo *info) { GIAttributeIter iter = { 0, }; char *name; char *value; while (g_base_info_iterate_attributes (info, &iter, &name, &value)) { g_print ("attribute name: %s value: %s", name, value); } } </programlisting> </example>