summaryrefslogtreecommitdiff
path: root/tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out_container.page
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2019-01-08 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2019-01-08 22:29:30 +0100
commitefb9b272f7910836ee8ea7a70562d34a1b481d54 (patch)
treecfd2c3396ea8eeafec5e64edcba150a9f76439b1 /tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out_container.page
parent44a5ab2d2912c486ed9bf85e25b33d173a45f06d (diff)
downloadgobject-introspection-efb9b272f7910836ee8ea7a70562d34a1b481d54.tar.gz
tests: Add functions using flat struct arrays
Relatively common in practice are: * output with transfer full, which is already covered by `regress_test_array_struct_out`, * input with transfer none, covered by a new `regress_test_array_struct_in_none` Other variants are quite esoteric, but it still might be useful to include them so that bindings can verify that they are handled gracefully, e.g., by reporting an error instead of crashing. Issue #90
Diffstat (limited to 'tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out_container.page')
-rw-r--r--tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out_container.page47
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out_container.page b/tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out_container.page
new file mode 100644
index 00000000..42eb5751
--- /dev/null
+++ b/tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out_container.page
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<page id="Regress.test_array_struct_out_container"
+ type="topic"
+ style="function"
+ xmlns="http://projectmallard.org/1.0/"
+ xmlns:api="http://projectmallard.org/experimental/api/"
+ xmlns:ui="http://projectmallard.org/1.0/ui/">
+ <info>
+ <link xref="index" group="function" type="guide"/>
+ <api:function>
+ <api:returns>
+ <api:type>void</api:type>
+ </api:returns>
+ <api:name>regress_test_array_struct_out_container</api:name>
+ <api:arg>
+ <api:type>RegressTestStructA**</api:type>
+ <api:name>arr</api:name>
+ </api:arg>
+ <api:arg>
+ <api:type>gsize*</api:type>
+ <api:name>len</api:name>
+ </api:arg>
+ </api:function>
+ </info>
+ <title>regress_test_array_struct_out_container</title>
+ <synopsis><code mime="text/x-csrc">
+void regress_test_array_struct_out_container (RegressTestStructA** arr,
+ gsize* len);
+ </code></synopsis>
+ <p>Test flat array output with transfer container.</p> <p>Similar to pango_layout_get_log_attrs().</p>
+
+<terms>
+<item>
+<title><code>arr</code></title>
+ <p>An array</p>
+</item>
+<item>
+<title><code>len</code></title>
+ <p>Length of <code>arr</code></p>
+</item>
+<item>
+<title><code>Returns</code></title>
+
+</item>
+</terms>
+
+</page>