Re: [Vala] Fwd: A problem with a vapi file
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: Luca Dionisi <luca dionisi gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Fwd: A problem with a vapi file
- Date: Sat, 05 Mar 2011 19:33:06 +0100
Hello,
في ج، 04-03-2011 عند 23:32 +0100 ، كتب Luca Dionisi:
2011/3/4 Alexander Krivács Schrøder <alexschrod gmail com>:
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]