Hello vala-list,
  I'm generating a Vala binding for a C library using vapigen and I've
managed to set the type of the elements by using the GObject
Introspection's "element-type" annotation for both the parameters and
return values of functions, but now I need a way to do the same thing for
the element type of object memebers.

  A simple example of what I want:
public class MyObject : GLib.Object{
    public weak GLib.SList<AnotherObject> object_list;
}

  And this is what I've generated so far:
public class MyObject : GLib.Object{
    public weak GLib.SList<void*> object_list;
}

  I've taken a look at the GIDL metadata and also the GObject
Instrospection documentations, but i've found nothing that suits my needs.
If there's still no way (or will never be) to do this, I guess there's no
problem leaving the element type as "void*" in the generated .vapi files.

Regards, and thanks!

Alex
_______________________________________________
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to