gobject-introspection r219 - in trunk: . tests/parser



Author: johan
Date: Wed Apr 23 01:13:57 2008
New Revision: 219
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=219&view=rev

Log:
2008-04-22  Johan Dahlin  <jdahlin async com br>

    * tests/parser/Foo-expected.gidl:
    * tests/parser/foo-object.h:
    Add a callback test



Modified:
   trunk/ChangeLog
   trunk/tests/parser/Foo-expected.gidl
   trunk/tests/parser/foo-object.h

Modified: trunk/tests/parser/Foo-expected.gidl
==============================================================================
--- trunk/tests/parser/Foo-expected.gidl	(original)
+++ trunk/tests/parser/Foo-expected.gidl	Wed Apr 23 01:13:57 2008
@@ -10,6 +10,14 @@
 		<function name="init" symbol="foo_init">
 			<return-type type="gint"/>
 		</function>
+		<callback name="FooCallback">
+			<return-type type="gboolean"/>
+			<parameters>
+				<parameter name="foo" type="FooObject*"/>
+				<parameter name="b" type="gboolean"/>
+				<parameter name="data" type="gpointer"/>
+			</parameters>
+		</callback>
 		<boxed name="FooBoxed" type-name="FooBoxed" get-type="foo_boxed_get_type">
 			<method name="method" symbol="foo_boxed_method">
 				<return-type type="void"/>

Modified: trunk/tests/parser/foo-object.h
==============================================================================
--- trunk/tests/parser/foo-object.h	(original)
+++ trunk/tests/parser/foo-object.h	Wed Apr 23 01:13:57 2008
@@ -109,6 +109,9 @@
 const float FOO_CONSTANT_FLOAT = 10;
 */
 
+/* Callback */
+typedef gboolean (* FooCallback) (FooObject *foo, gboolean b, gpointer data);
+
 /* Invalid comments, should be ignored */
 
 /* @ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]