GNOME Bugzilla – Bug 649760
[vapigen] Add support for unions inside boxed types
Last modified: 2011-05-12 17:38:03 UTC
Created attachment 187480 [details] [review] Add support for unions inside boxed types The attached patch adds support for GIRs with the definitions like the following: <record name="ContactPhoto" c:type="EContactPhoto" glib:type-name="EContactPhoto" glib:get-type="e_contact_photo_get_type" c:symbol-prefix="contact_photo"> <union name="data" c:type="data"> <record name="inlined" c:type="inlined"> <field name="mime_type" writable="1"> <type name="utf8" c:type="gchar*"/> </field> <field name="length" writable="1"> <type name="gsize" c:type="gsize"/> </field> <field name="data" writable="1"> <type name="guint8" c:type="guchar*"/> </field> </record> <field name="uri" writable="1"> <type name="utf8" c:type="gchar*"/> </field> </union> </record> (unions inside boxed types).
commit 16d5306286038436961b5337c4ce8a5c95d208c1 Author: Luca Bruno <lucabru@src.gnome.org> Date: Thu May 12 19:19:53 2011 +0200 girparser: Handle unions inside boxed classes Fixes bug 649760. This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.