summaryrefslogtreecommitdiff
path: root/tests/doctool/GIRepository-2.0-C-expected/GIRepository.BaseInfo.iterate_attributes.page
diff options
context:
space:
mode:
Diffstat (limited to 'tests/doctool/GIRepository-2.0-C-expected/GIRepository.BaseInfo.iterate_attributes.page')
-rw-r--r--tests/doctool/GIRepository-2.0-C-expected/GIRepository.BaseInfo.iterate_attributes.page29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/doctool/GIRepository-2.0-C-expected/GIRepository.BaseInfo.iterate_attributes.page b/tests/doctool/GIRepository-2.0-C-expected/GIRepository.BaseInfo.iterate_attributes.page
new file mode 100644
index 00000000..82ef15f0
--- /dev/null
+++ b/tests/doctool/GIRepository-2.0-C-expected/GIRepository.BaseInfo.iterate_attributes.page
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<page id="GIRepository.BaseInfo.iterate_attributes"
+ type="topic"
+ style="function"
+ xmlns="http://projectmallard.org/1.0/"
+ xmlns:ui="http://projectmallard.org/experimental/ui/">
+ <info>
+ <link type="guide" xref="GIRepository.BaseInfo" group="function"/>
+ </info>
+ <title>g_base_info_iterate_attributes</title>
+<p>Iterate over all attributes associated with this node. The iterator
+structure is typically stack allocated, and must have its first
+member initialized to %NULL.</p><p>Both the @name and @value should be treated as constants
+and must not be freed.</p><p>&lt;example&gt;
+&lt;title&gt;Iterating over attributes&lt;/title&gt;
+&lt;programlisting&gt;
+void
+print_attributes (GIBaseInfo *info)
+{
+GIAttributeIter iter = { 0, };
+char *name;
+char *value;
+while (g_base_info_iterate_attributes (info, &amp;iter, &amp;name, &amp;value))
+{
+g_print ("attribute name: %s value: %s", name, value);
+}
+}
+&lt;/programlisting&gt;
+&lt;/example&gt;</p></page>