diff options
author | Johan Dahlin <johan@gnome.org> | 2011-11-25 12:09:51 -0200 |
---|---|---|
committer | Johan Dahlin <jdahlin@litl.com> | 2011-11-25 12:10:39 -0200 |
commit | 699ad0fec427c79bec1c41b2cf8e2441b9b959bc (patch) | |
tree | 457ff8073378be85ba8566afec81328fd12bbf2e /tests | |
parent | 9b27ce73aaeb4159daa873cdb314a50447a3143d (diff) | |
download | gobject-introspection-699ad0fec427c79bec1c41b2cf8e2441b9b959bc.tar.gz |
Add a floating alias for none
https://bugzilla.gnome.org/show_bug.cgi?id=657202
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/Annotation-1.0-expected.gir | 7 | ||||
-rw-r--r-- | tests/scanner/annotation.c | 13 | ||||
-rw-r--r-- | tests/scanner/annotation.h | 2 |
3 files changed, 21 insertions, 1 deletions
diff --git a/tests/scanner/Annotation-1.0-expected.gir b/tests/scanner/Annotation-1.0-expected.gir index 4449604c..88b9ea4e 100644 --- a/tests/scanner/Annotation-1.0-expected.gir +++ b/tests/scanner/Annotation-1.0-expected.gir @@ -835,6 +835,13 @@ detection, and fixing it via annotations.</doc> <type name="GObject.Object" c:type="GObject*"/> </return-value> </function> + <function name="transfer_floating" + c:identifier="annotation_transfer_floating"> + <return-value transfer-ownership="none"> + <doc xml:whitespace="preserve">A floating object</doc> + <type name="GObject.Object" c:type="GObject*"/> + </return-value> + </function> <function name="versioned" c:identifier="annotation_versioned" version="0.6"> diff --git a/tests/scanner/annotation.c b/tests/scanner/annotation.c index 07e5a349..f28befac 100644 --- a/tests/scanner/annotation.c +++ b/tests/scanner/annotation.c @@ -813,7 +813,7 @@ annotation_space_after_comment_bug631690 (void) } /** - * annotation_return_filename + * annotation_return_filename: * * Returns: (type filename): An annotated filename */ @@ -822,3 +822,14 @@ annotation_return_filename (void) { return "a utf-8 filename"; } + +/** + * annotation_transfer_floating: + * + * Returns: (transfer floating): A floating object + */ +GObject * +annotation_transfer_floating(void) +{ + return NULL; +} diff --git a/tests/scanner/annotation.h b/tests/scanner/annotation.h index 8bfbfd21..b3b4bd4c 100644 --- a/tests/scanner/annotation.h +++ b/tests/scanner/annotation.h @@ -169,6 +169,8 @@ void annotation_space_after_comment_bug631690 (void); gchar* annotation_return_filename (void); +GObject * annotation_transfer_floating(void); + /* This one we can handle properly */ #define ANNOTATION_CALCULATED_DEFINE (10 * 10) |