summaryrefslogtreecommitdiff
path: root/tests/scanner/annotation.c
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2008-11-21 02:53:28 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-11-21 02:53:28 +0000
commitdf5c5f82fc1f37624b766ed31ac9830aad3c6b47 (patch)
treec1f5d99b422887092adbf503851f9cb81eacb71a /tests/scanner/annotation.c
parent9811af9447b21bfb96ea3acc008e10f0dbb05db1 (diff)
downloadgobject-introspection-df5c5f82fc1f37624b766ed31ac9830aad3c6b47.tar.gz
Bug 561617 – Return value array annotations
2008-11-21 Johan Dahlin <jdahlin@async.com.br> Bug 561617 – Return value array annotations * giscanner/transformer.py: * tests/scanner/annotation.c (annotation_return_array): * tests/scanner/annotation.h: Add support for (array) for return value annotations as well. svn path=/trunk/; revision=957
Diffstat (limited to 'tests/scanner/annotation.c')
-rw-r--r--tests/scanner/annotation.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/scanner/annotation.c b/tests/scanner/annotation.c
index fafb2a43..b19b5407 100644
--- a/tests/scanner/annotation.c
+++ b/tests/scanner/annotation.c
@@ -338,5 +338,17 @@ annotation_init (int *argc, char ***argv)
}
+/**
+ * annotation_return_array:
+ * @length: (out): Number of return values
+ *
+ * Return value: (array length=length zero-terminated=1): The return value
+ **/
+char **
+annotation_return_array (int *length)
+{
+ return NULL;
+}
+
static char backslash_parsing_tester_2 = '\\';