Hello,
في ج، 04-03-2011 عند 23:32 +0100 ، كتب Luca Dionisi:
> 2011/3/4 Alexander Krivács Schrøder <[email protected]>:
> > The problem is that you are using a typedef'd pointer. Is there any
> > reason you need to use this typedef within Vala? Since "foo_t" is just
> > an alias for "struct foo_st*", just set the cname for your Foo class
> > to "struct foo_st" instead of "foo_t". Vala will now output the
>
> That's working indeed. Thanks.
>
> Any more tips on where to look for comprehensive tutorials or
> references for designing a vapi?
The "reference" for manually written vapis is vapis for other
non-gobject libraries distributed with vala. The following page should
help you understand the annotations you find:
http://live.gnome.org/Vala/Manual/Attributes
See also this blog post
http://mike.trausch.us/blog/2009/02/18/vala-bindings-for-non-gobject-type-c-libraries/
HTH,
Abderrahim
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list