summaryrefslogtreecommitdiff
path: root/tests/scanner/annotation.h
diff options
context:
space:
mode:
authorTommi Komulainen <tommi.komulainen@iki.fi>2008-10-22 10:46:22 +0000
committerTommi Komulainen <tko@src.gnome.org>2008-10-22 10:46:22 +0000
commit7b171be482d33af3f4a6afa6bf34b433ce70fdb1 (patch)
tree376502991554e7b22f051624c2f16b658ac40c64 /tests/scanner/annotation.h
parentf66b137d74b4a5337e71f69dbabc86b1e5012d99 (diff)
downloadgobject-introspection-7b171be482d33af3f4a6afa6bf34b433ce70fdb1.tar.gz
Bug 557092 – Callback annotations not used
2008-10-22 Tommi Komulainen <tommi.komulainen@iki.fi> * 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
Diffstat (limited to 'tests/scanner/annotation.h')
-rw-r--r--tests/scanner/annotation.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/scanner/annotation.h b/tests/scanner/annotation.h
index c15d578d..ea78786a 100644
--- a/tests/scanner/annotation.h
+++ b/tests/scanner/annotation.h
@@ -3,6 +3,22 @@
#include <glib-object.h>
+/**
+ * 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;