diff options
Diffstat (limited to 'tests/scanner/Regress-1.0-Gjs-expected')
7 files changed, 207 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-write-only.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-write-only.page index 9fd19255..01e966ca 100644 --- a/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-write-only.page +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.TestObj-write-only.page @@ -13,4 +13,6 @@ <synopsis><code mime="text/x-gjs"> TestObj.write_only: Boolean (Write) </code></synopsis> + + </page> diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_in_full.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_in_full.page new file mode 100644 index 00000000..4d259654 --- /dev/null +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_in_full.page @@ -0,0 +1,38 @@ +<?xml version="1.0"?> +<page id="Regress.test_array_struct_in_full" + 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_in_full</api:name> + <api:arg> + <api:type>Array(Regress.TestStructA)</api:type> + <api:name>arr</api:name> + </api:arg> + </api:function> + </info> + <title>Regress.test_array_struct_in_full</title> + <synopsis><code mime="text/x-gjs"> +function test_array_struct_in_full(arr: Array(<link xref="Regress.TestStructA">Regress.TestStructA</link>)): void { + // Gjs wrapper for regress_test_array_struct_in_full() +} + </code></synopsis> + <p>Test flat array input with transfer full.</p> <p>Similar to: +- gsf_property_settings_free() with structs but they contain pointers +- <link href="../GLib-2.0/GLib.byte_array_new_take.html">GLib.byte_array_new_take</link> with guint8s</p> + +<terms> +<item> +<title><code>arr</code></title> + <p>An array</p> +</item> +</terms> + +</page> diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_in_none.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_in_none.page new file mode 100644 index 00000000..a86c000f --- /dev/null +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_in_none.page @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<page id="Regress.test_array_struct_in_none" + 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_in_none</api:name> + <api:arg> + <api:type>Array(Regress.TestStructA)</api:type> + <api:name>arr</api:name> + </api:arg> + </api:function> + </info> + <title>Regress.test_array_struct_in_none</title> + <synopsis><code mime="text/x-gjs"> +function test_array_struct_in_none(arr: Array(<link xref="Regress.TestStructA">Regress.TestStructA</link>)): void { + // Gjs wrapper for regress_test_array_struct_in_none() +} + </code></synopsis> + <p>Test flat array input with transfer none.</p> <p>Similar to <link href="../GLib-2.0/GLib.MainContext.check.html">GLib.MainContext.prototype.check</link> or gtk_target_list_new().</p> + +<terms> +<item> +<title><code>arr</code></title> + <p>An array.</p> +</item> +</terms> + +</page> diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_caller_alloc.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_caller_alloc.page new file mode 100644 index 00000000..e1b14ce7 --- /dev/null +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_caller_alloc.page @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<page id="Regress.test_array_struct_out_caller_alloc" + 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_caller_alloc</api:name> + </api:function> + </info> + <title>Regress.test_array_struct_out_caller_alloc</title> + <synopsis><code mime="text/x-gjs"> +function test_array_struct_out_caller_alloc(): Array(<link xref="Regress.TestStructA">Regress.TestStructA</link>) { + // Gjs wrapper for regress_test_array_struct_out_caller_alloc() +} + </code></synopsis> + <p>Test flat caller-allocated array output.</p> <p>Similar to <link href="../GLib-2.0/GLib.MainContext.query.html">GLib.MainContext.prototype.query</link>.</p> + +<terms> +<item> +<title><code>Returns</code></title> + <p>An array</p> +</item> +</terms> + +</page> diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_container.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_container.page new file mode 100644 index 00000000..659bedea --- /dev/null +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_container.page @@ -0,0 +1,32 @@ +<?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:function> + </info> + <title>Regress.test_array_struct_out_container</title> + <synopsis><code mime="text/x-gjs"> +function test_array_struct_out_container(): Array(<link xref="Regress.TestStructA">Regress.TestStructA</link>) { + // Gjs wrapper for regress_test_array_struct_out_container() +} + </code></synopsis> + <p>Test flat array output with transfer container.</p> <p>Similar to pango_layout_get_log_attrs().</p> + +<terms> +<item> +<title><code>Returns</code></title> + <p>An array</p> +</item> +</terms> + +</page> diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_full_fixed.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_full_fixed.page new file mode 100644 index 00000000..9bb5a1d0 --- /dev/null +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_full_fixed.page @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<page id="Regress.test_array_struct_out_full_fixed" + 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_full_fixed</api:name> + </api:function> + </info> + <title>Regress.test_array_struct_out_full_fixed</title> + <synopsis><code mime="text/x-gjs"> +function test_array_struct_out_full_fixed(): Array(<link xref="Regress.TestStructA">Regress.TestStructA</link>) { + // Gjs wrapper for regress_test_array_struct_out_full_fixed() +} + </code></synopsis> + <p>Test flat fixed-size array output with transfer full.</p> + +<terms> +<item> +<title><code>Returns</code></title> + <p>An array</p> +</item> +</terms> + +</page> diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_none.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_none.page new file mode 100644 index 00000000..73e0fc3c --- /dev/null +++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.test_array_struct_out_none.page @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<page id="Regress.test_array_struct_out_none" + 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_none</api:name> + </api:function> + </info> + <title>Regress.test_array_struct_out_none</title> + <synopsis><code mime="text/x-gjs"> +function test_array_struct_out_none(): Array(<link xref="Regress.TestStructA">Regress.TestStructA</link>) { + // Gjs wrapper for regress_test_array_struct_out_none() +} + </code></synopsis> + <p>Test flat array output with transfer none.</p> <p>Similar to: +- mm_modem_peek_ports() with structs +- gdk_query_visual_types() with enums +- gdk_event_get_axes() with doubles</p> + +<terms> +<item> +<title><code>Returns</code></title> + <p>An array</p> +</item> +</terms> + +</page> |