From 7b171be482d33af3f4a6afa6bf34b433ce70fdb1 Mon Sep 17 00:00:00 2001 From: Tommi Komulainen Date: Wed, 22 Oct 2008 10:46:22 +0000 Subject: =?UTF-8?q?Bug=20557092=20=E2=80=93=20Callback=20annotations=20not?= =?UTF-8?q?=20used?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-10-22 Tommi Komulainen * giscanner/transformer.py (_create_callback): use annotations for callbacks * tests/scanner/annotation.h * tests/scanner/annotation-1.0-expected.gir: add tests svn path=/trunk/; revision=781 --- tests/scanner/annotation-1.0-expected.gir | 24 ++++++++++++++++++++++++ tests/scanner/annotation.h | 16 ++++++++++++++++ 2 files changed, 40 insertions(+) (limited to 'tests') diff --git a/tests/scanner/annotation-1.0-expected.gir b/tests/scanner/annotation-1.0-expected.gir index 69325745..0bd230f0 100644 --- a/tests/scanner/annotation-1.0-expected.gir +++ b/tests/scanner/annotation-1.0-expected.gir @@ -7,6 +7,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + +/** + * AnnotationCallback: + * @in: (in) (transfer none): array of ints + * + * Return value: (transfer none): array of ints + */ +typedef const gint* (*AnnotationCallback) (const gint *in); + +/** + * AnnotationListCallback: + * @in: (in) (transfer none) (element-type utf8): list of strings + * + * Return value: (transfer container) (element-type utf8): list of strings + */ +typedef GList* (*AnnotationListCallback) (GList *in); + typedef struct _AnnotationObject AnnotationObject; typedef struct _AnnotationObjectClass AnnotationObjectClass; -- cgit v1.2.1