After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 649760 - [vapigen] Add support for unions inside boxed types
[vapigen] Add support for unions inside boxed types
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-08 22:11 UTC by Raul Gutierrez Segales
Modified: 2011-05-12 17:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add support for unions inside boxed types (850 bytes, patch)
2011-05-08 22:11 UTC, Raul Gutierrez Segales
none Details | Review

Description Raul Gutierrez Segales 2011-05-08 22:11:25 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).
Comment 1 Luca Bruno 2011-05-12 17:38:03 UTC
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.