summaryrefslogtreecommitdiff
path: root/tests/scanner/foo.h
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.h
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.h')
-rw-r--r--tests/scanner/foo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h
index 6b65e1e9..2d11ba6a 100644
--- a/tests/scanner/foo.h
+++ b/tests/scanner/foo.h
@@ -68,12 +68,16 @@ struct _FooSubInterfaceIface
void (*do_bar) (FooSubInterface *self);
- void (*do_baz) (FooSubInterface *, GCallback, gpointer);
+ /* explicitly test un-named parameters */
+ void (*do_moo) (FooSubInterface *self, int, gpointer);
+
+ void (*do_baz) (FooSubInterface *self, GCallback callback, gpointer data);
};
GType foo_sub_interface_get_type (void) G_GNUC_CONST;
void foo_sub_interface_do_bar (FooSubInterface *self);
+void foo_sub_interface_do_moo (FooSubInterface *self, int, gpointer);
void foo_sub_interface_do_baz (FooSubInterface *self,
GCallback callback,
gpointer data);