summaryrefslogtreecommitdiff
path: root/tests/scanner/Regress-1.0-C-expected/Regress.annotation_transfer_floating.page
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2015-01-08 21:31:20 +0100
committerChristoph Reiter <creiter@src.gnome.org>2017-05-17 23:03:00 +0200
commit12c304562add775dd80f698ad23aa59e8e87d879 (patch)
treeceed552d1a130b0335d498ffd55ba79c712fb24e /tests/scanner/Regress-1.0-C-expected/Regress.annotation_transfer_floating.page
parent3a140df2d29410d91f9bc86e9dd8bfbf82b3fad3 (diff)
downloadgobject-introspection-12c304562add775dd80f698ad23aa59e8e87d879.tar.gz
Add a test for "(in) (transfer floating)" parameters beeing an alias for "(in) (transfer none)".
The "(in)" alias was (unintenionally?) introduced in https://git.gnome.org/browse/gobject-introspection/commit/?id=699ad0fec427c79bec1 which added an alias for return annotations. This change makes sure that this continues to work. Functions which ref_sink in params are currently marked as transfer-none since in the case of non-floating objects (which all bindings use) no ownership gets transfered. But in case of floating objects, which is the common case when using the C API directly, the ownership _is_ transfered. Using transfer-floating should make this clearer while giving the same result for bindings. Functions where this could be used: gst_bin_add, gtk_container_add, gst_element_add_pad See https://bugzilla.gnome.org/show_bug.cgi?id=657202 and https://bugzilla.gnome.org/show_bug.cgi?id=702960 https://bugzilla.gnome.org/show_bug.cgi?id=742618
Diffstat (limited to 'tests/scanner/Regress-1.0-C-expected/Regress.annotation_transfer_floating.page')
-rw-r--r--tests/scanner/Regress-1.0-C-expected/Regress.annotation_transfer_floating.page10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.annotation_transfer_floating.page b/tests/scanner/Regress-1.0-C-expected/Regress.annotation_transfer_floating.page
index 78684c87..440535f1 100644
--- a/tests/scanner/Regress-1.0-C-expected/Regress.annotation_transfer_floating.page
+++ b/tests/scanner/Regress-1.0-C-expected/Regress.annotation_transfer_floating.page
@@ -12,16 +12,24 @@
<api:type>GObject*</api:type>
</api:returns>
<api:name>regress_annotation_transfer_floating</api:name>
+ <api:arg>
+ <api:type>GObject*</api:type>
+ <api:name>object</api:name>
+ </api:arg>
</api:function>
</info>
<title>regress_annotation_transfer_floating</title>
<synopsis><code mime="text/x-csrc">
-GObject* regress_annotation_transfer_floating (void);
+GObject* regress_annotation_transfer_floating (GObject* object);
</code></synopsis>
<terms>
<item>
+<title><code>object</code></title>
+ <p>an object</p>
+</item>
+<item>
<title><code>Returns</code></title>
<p>A floating object</p>
</item>