Re: GObject-Introspection



Michael Lawrence wrote:
[..]
The VAPI format from the Vala project is a nice human-writeable format that should soon be convertable to GIR (currently can be converted to GIDL).

Example:
public class Gtk.Label : Gtk.Misc {
  public void get(out text);
  ...
}

Using an IDL such as VAPI has been discussed and it's likely that we'll sometimes move to that in the future (for Gtk+). That'd mean that large portions of the .c and the complete headers can be generated from this information.

It'll reduce duplication and the manual labor required to add new or maintain existing APIs considerably.

However, for g-i we're taking the path of scanning headers/sources as it requires less work from what we have today.

Johan


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