Transfer modes for ref-counted return values that may have a floating reference
- From: Phil Clayton <phil clayton veonix com>
- To: gir-devel-list gnome org
- Subject: Transfer modes for ref-counted return values that may have a floating reference
- Date: Sat, 31 Mar 2018 00:27:37 +0100
Based on the description of transfer modes at
https://wiki.gnome.org/Projects/GObjectIntrospection/Annotations/
I was assuming that bindings are expected to do the following for a
ref-counted return value that may have a floating reference:
if transfer-ownership=full: take over ref
if transfer-ownership=none: ref-sink and take over ref
(quoting from https://bugzilla.gnome.org/show_bug.cgi?id=657202#c1)
Is this still the case? Or has it changed to:
if transfer-ownership=full, floating=true: ref-sink and take over ref
if transfer-ownership=full, floating=false: take over ref
if transfer-ownership=none: ref-sink and take over ref
Thanks,
Phil
[Date Prev][Date Next] [Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]