summaryrefslogtreecommitdiff
path: root/tests/doctool/GIRepository-2.0-C-expected/GIRepository.BaseInfo.iterate_attributes.page
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-21 16:17:59 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-21 17:09:28 +0100
commit52c07daf1fa3a5d17957cc3e3d0d75c65b268b57 (patch)
treec403eaccd92fe0a9ee6df26338c01c77837e1b4d /tests/doctool/GIRepository-2.0-C-expected/GIRepository.BaseInfo.iterate_attributes.page
parentbd983994b9a63639fda836a06f4102776b9e1480 (diff)
downloadgobject-introspection-52c07daf1fa3a5d17957cc3e3d0d75c65b268b57.tar.gz
g-ir-doc-tool: Create a GIR file specific for testing doc generation
This will also serve as a reference of the syntax that is currently supported by g-ir-doc-tool.
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.page74
1 files changed, 0 insertions, 74 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
deleted file mode 100644
index 76c6766b..00000000
--- a/tests/doctool/GIRepository-2.0-C-expected/GIRepository.BaseInfo.iterate_attributes.page
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0"?>
-
-<page id="GIRepository.BaseInfo.iterate_attributes"
- type="topic"
- style="function"
- xmlns="http://projectmallard.org/1.0/"
- xmlns:api="http://projectmallard.org/experimental/api/"
- xmlns:ui="http://projectmallard.org/experimental/ui/">
- <info>
- <link type="guide" xref="GIRepository.BaseInfo" group="function"/>
- <api:function>
- <api:returns>
- <api:type>gboolean</api:type>
- </api:returns>
- <api:name>g_base_info_iterate_attributes</api:name>
- <api:arg>
- <api:type>GIAttributeIter*</api:type>
- <api:name>iterator</api:name>
- </api:arg>
- <api:arg>
- <api:type>char**</api:type>
- <api:name>name</api:name>
- </api:arg>
- <api:arg>
- <api:type>char**</api:type>
- <api:name>value</api:name>
- </api:arg>
- </api:function>
- </info>
- <title>g_base_info_iterate_attributes</title>
-<synopsis><code mime="text/x-csrc">
-gboolean g_base_info_iterate_attributes (GIAttributeIter* iterator,
- char** name,
- char** value);
-</code></synopsis>
-<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>
-
-<table>
-<tr>
-<td><p>iterator :</p></td>
-<td><p>a <link xref="GIRepository.AttributeIter">GIRepository.AttributeIter</link> structure, must be initialized; see below</p></td>
-</tr>
-<tr>
-<td><p>name :</p></td>
-<td><p>Returned name, must not be freed</p></td>
-</tr>
-<tr>
-<td><p>value :</p></td>
-<td><p>Returned name, must not be freed</p></td>
-</tr>
-<tr>
-<td><p>Returns :</p></td>
-<td><p>%TRUE if there are more attributes</p></td>
-</tr>
-</table>
-</page>