GNOME Bugzilla – Bug 594125
[annotation] Should support /* <private> */ comments
Last modified: 2015-02-07 17:03:38 UTC
Hi, it'd be nice if gobject-introspection would support accessibility attributes for fields, methods, properties and everything else where it makes sense. For example things like g_object_class_install_property() should really be protected, padding fields of instance/class structs should be private, GObject's refcount/qdata fields should be private, .... In some cases (for the struct fields) there are comments above the fields like in the case of GObject: struct _GObject { GTypeInstance g_type_instance; /*< private >*/ volatile guint ref_count; GData *qdata; }; By default gobject-introspection should assume public accessibility, this should be possible to override somehow and it should parse /* < private > */ comments. Having this in the introspection data is very useful for languages that know these concepts and to hide private fields.
*** Bug 590274 has been marked as a duplicate of this bug. ***
The following fix has been pushed: 8398ce7 [scanner] Support private/public directives
Created attachment 170724 [details] [review] [scanner] Support private/public directives Fixes
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]