From: Johan Dahlin Date: Wed, 23 Apr 2008 01:13:57 +0000 (+0000) Subject: Add a callback test X-Git-Tag: GOBJECT_INTROSPECTION_0_5_0~320 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebe949e0e1d807bd466bd5f2688562b474cfb478;p=platform%2Fupstream%2Fgobject-introspection.git Add a callback test 2008-04-22 Johan Dahlin * tests/parser/Foo-expected.gidl: * tests/parser/foo-object.h: Add a callback test svn path=/trunk/; revision=219 --- diff --git a/ChangeLog b/ChangeLog index 2541c9e..4ad0afe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-04-22 Johan Dahlin + + * tests/parser/Foo-expected.gidl: + * tests/parser/foo-object.h: + Add a callback test + 2008-04-22 Havoc Pennington * girepository/ginfo.c (g_interface_info_find_method): diff --git a/tests/parser/Foo-expected.gidl b/tests/parser/Foo-expected.gidl index bdfde75..78a20a4 100644 --- a/tests/parser/Foo-expected.gidl +++ b/tests/parser/Foo-expected.gidl @@ -10,6 +10,14 @@ + + + + + + + + diff --git a/tests/parser/foo-object.h b/tests/parser/foo-object.h index df6d615..b01034d 100644 --- a/tests/parser/foo-object.h +++ b/tests/parser/foo-object.h @@ -109,6 +109,9 @@ const int FOO_CONSTANT_INT = 10; const float FOO_CONSTANT_FLOAT = 10; */ +/* Callback */ +typedef gboolean (* FooCallback) (FooObject *foo, gboolean b, gpointer data); + /* Invalid comments, should be ignored */ /* @ */