summaryrefslogtreecommitdiff
path: root/tests/scanner/foo.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-03 15:46:49 -0400
committerColin Walters <walters@verbum.org>2010-09-03 16:07:54 -0400
commit33ead62f2b18f9c5a0b6a40f0e843ee515fcd853 (patch)
tree6ba223d5bcfbde3a12ac92830e41796b6ebc4d18 /tests/scanner/foo.c
parent1aef56029eec68f4d1ac1e6fd533ac287d9047ef (diff)
downloadgobject-introspection-33ead62f2b18f9c5a0b6a40f0e843ee515fcd853.tar.gz
scanner: Readd --warn-error to tests, fix test case
Commit b6fb70f9 wrongly disabled fatal warnings - in fact there is a way to make this test case work, and it was a bug in the scanner not processing virtual function annotations correctly. Add a different test case for un-named parameters that doesn't have a callback.
Diffstat (limited to 'tests/scanner/foo.c')
-rw-r--r--tests/scanner/foo.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/scanner/foo.c b/tests/scanner/foo.c
index 3118be45..d84c58a5 100644
--- a/tests/scanner/foo.c
+++ b/tests/scanner/foo.c
@@ -116,15 +116,24 @@ foo_sub_interface_class_init (gpointer g_class, gpointer class_data)
G_TYPE_NONE);
}
-void foo_sub_interface_do_bar (FooSubInterface *self)
+void
+foo_sub_interface_do_bar (FooSubInterface *self)
{
FOO_SUBINTERFACE_GET_INTERFACE(self)->do_bar (self);
}
+void
+foo_sub_interface_do_moo (FooSubInterface *self, int x, gpointer y)
+{
+ FOO_SUBINTERFACE_GET_INTERFACE(self)->do_moo (self, x, y);
+}
+
/**
* foo_sub_interface_do_baz:
* @self:
* @callback: (scope call):
+ * @user_data:
+ *
*/
void
foo_sub_interface_do_baz (FooSubInterface *self, GCallback callback, gpointer user_data)