Re: [Vala] Support for custom attribute introspection/reflection?



On Thu, 2011-05-05 at 08:29 +0100, Ricardo Gladwell wrote:
On Wed, 2011-05-04 at 17:03 -0400, Jonathan Ryan wrote:
Excerpts from Ricardo Gladwell's message of 2011-05-04 16:42:55 -0400:
On 4 May 2011 18:08, Jonathan Ryan <jryan-Mcy3IOyeccLlKS8GlytQkw public gmane org> wrote:
The GObject API currently does not provide attributes.

Would the GLib team be receptive to changes to support gobject attributes?


I don't think so. Attributes are considered metadata.
It's GObject-Introspection's job to deal with object
metadata.

Isn't GObject-Introspection's focus narrower than providing metadata?
Reading around the subject, it seems it's to provide metadata for public
API/shared libraries to enable auto-generated bindings.

Given this, it would seem unlikely GObject-Introspection will support
executables or namespaces, both of which would be needed for a full
introspection API for Vala.


1. It does supports namespaces: 
% grep Gee /usr/share/gir-1.0/Gee-1.0.gir 
<namespace name="Gee" version="1.0" c:prefix="Gee">
...
                                        <type name="Gee.Collection" c:type="GeeCollection*">
...
% grep Peas /usr/share/gir-1.0/Peas-1.0.gir
  <namespace name="Peas
...

2. As the libpeas provides API for extensions I think you may put it
under 'applications'.

Regards

Attachment: signature.asc
Description: This is a digitally signed message part



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