gobject-introspection r403 - in trunk: . tests/scanner



Author: johan
Date: Tue Aug 19 21:44:25 2008
New Revision: 403
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=403&view=rev

Log:
2008-08-19  Johan Dahlin  <johan gnome org>

    * tests/scanner/Foo-expected.gir:
    * tests/scanner/foo-object.h:
    Add a union testcase which the compiler currently
    barfs at.



Modified:
   trunk/ChangeLog
   trunk/tests/scanner/Foo-expected.gir
   trunk/tests/scanner/foo-object.h

Modified: trunk/tests/scanner/Foo-expected.gir
==============================================================================
--- trunk/tests/scanner/Foo-expected.gir	(original)
+++ trunk/tests/scanner/Foo-expected.gir	Tue Aug 19 21:44:25 2008
@@ -4,6 +4,7 @@
             xmlns:glib="http://www.gtk.org/introspection/glib/1.0";>
   <namespace name="Foo">
     <alias name="List" target="GSList" c:type="FooList"/>
+    <alias name="Event" target="Event" c:type="FooEvent"/>
     <interface name="Interface"
                c:type="FooInterface"
                glib:type-name="FooInterface"
@@ -406,5 +407,18 @@
         </parameter>
       </parameters>
     </function>
+    <record name="EventAny" c:type="FooEventAny">
+      <field name="send_event">
+        <type name="int8" c:type="gint8"/>
+      </field>
+    </record>
+    <record name="EventExpose" c:type="FooEventExpose">
+      <field name="send_event">
+        <type name="int8" c:type="gint8"/>
+      </field>
+      <field name="count">
+        <type name="int" c:type="gint"/>
+      </field>
+    </record>
   </namespace>
 </repository>

Modified: trunk/tests/scanner/foo-object.h
==============================================================================
--- trunk/tests/scanner/foo-object.h	(original)
+++ trunk/tests/scanner/foo-object.h	Tue Aug 19 21:44:25 2008
@@ -158,4 +158,27 @@
 
 void foo_rectangle_add(FooRectangle *r1, const FooRectangle *r2);
 
+typedef struct _FooEventAny FooEventAny;
+typedef struct _FooEventExpose FooEventExpose;
+
+typedef union  _FooEvent FooEvent;
+
+struct _FooEventAny
+{
+  gint8 send_event;
+};
+
+struct _FooEventExpose
+{
+  gint8 send_event;
+  gint count;
+};
+  
+union _FooEvent
+{
+  int type;
+  FooEventAny any;
+  FooEventExpose expose;
+};
+
 #endif /* __FOO_OBJECT_H__ */



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