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 594236 - Should handle non-GObject GTypeInstances/Classes properly
Should handle non-GObject GTypeInstances/Classes properly
Status: RESOLVED DUPLICATE of bug 568913
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks: 550616 592825
 
 
Reported: 2009-09-05 14:37 UTC by Sebastian Dröge (slomo)
Modified: 2015-02-07 16:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2009-09-05 14:37:52 UTC
Hi,
gobject-introspection should handle non-GObject GTypeInstances/Classes properly. An example is below:

struct _GstMiniObject {
  GTypeInstance instance;
  /*< public >*/ /* with COW */
  gint refcount;
  guint flags;

  /*< private >*/
  gpointer _gst_reserved;
};

struct _GstMiniObjectClass {
  GTypeClass type_class;

  GstMiniObjectCopyFunction copy;
  GstMiniObjectFinalizeFunction finalize;

  /*< private >*/
  gpointer _gst_reserved;
};

Currently this creates a normal record for GstMiniObjectClass, without the glib:is-gtype-struct-for="GstMiniObject" attribute.
Comment 1 Johan (not receiving bugmail) Dahlin 2010-09-06 04:22:09 UTC

*** This bug has been marked as a duplicate of bug 568913 ***
Comment 2 André Klapper 2015-02-07 16:47:51 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]