summaryrefslogtreecommitdiff
path: root/giscanner/mallard-C-function.tmpl
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-18 12:08:41 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-18 12:08:41 +0100
commitc0d5e8fbc6bd210adc8f2f83d48bfe2d5bee68b4 (patch)
tree13120e8863db752d512ca19464756a830b54d936 /giscanner/mallard-C-function.tmpl
parentc0957ef98c0d736cb524e6f5c53cf2d16834d313 (diff)
downloadgobject-introspection-c0d5e8fbc6bd210adc8f2f83d48bfe2d5bee68b4.tar.gz
g-ir-doctool: Add function argument docs to the C template
Diffstat (limited to 'giscanner/mallard-C-function.tmpl')
-rw-r--r--giscanner/mallard-C-function.tmpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/giscanner/mallard-C-function.tmpl b/giscanner/mallard-C-function.tmpl
index d86328d8..4f20b23e 100644
--- a/giscanner/mallard-C-function.tmpl
+++ b/giscanner/mallard-C-function.tmpl
@@ -72,4 +72,21 @@ ${formatter.format_type(arg.type) | x} ${arg.argname}\
% endfor
</code></synopsis>
${formatter.format(node.doc)}
+
+% if node.parameters:
+<table>
+% for arg, ix in zip(node.parameters, range(len(node.parameters))):
+<tr>
+<td><p>${arg.argname} :</p></td>
+<td>${formatter.format(arg.doc)}</td>
+</tr>
+% endfor
+% if node.retval:
+<tr>
+<td><p>Returns :</p></td>
+<td>${formatter.format(node.retval.doc)}</td>
+</tr>
+% endif
+</table>
+% endif
</page>