1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<?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>none</api:type>
</api:returns>
<api:name>regress_test_array_struct_out_none</api:name>
<api:arg>
<api:type>[Regress.TestStructA]</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_none</title>
<synopsis><code mime="text/x-python">
@accepts([Regress.TestStructA], gsize)
@returns(none)
def test_array_struct_out_none(arr, len):
# Python 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>arr</code></title>
<p>An array</p>
</item>
<item>
<title><code>len</code></title>
<p>Length of <code>arr</code></p>
</item>
</terms>
</page>
|