Am Donnerstag, den 17.12.2009, 18:54 +0100 schrieb Nicolas:
> Hello,
>
> I try to use a non glib-library, and i have a problem generating the
> vapi file.
>
> On my header i have:
> typedef struct my_instance my_instance;
>
> In my vapi file, i wrote:
> public struct my_instance {}
>
> When i use this structure (test_instance), vala generate this:
> my_instance test_instance;
>
> But i need this:
> my_instance *test_instance;
Why do you think you need to state this explicitly? Structs are usually
passed as reference types by Vala.
> There is a way to say to vala to generate the second one ?
If you don't have another way, you can use pointers in Vala as well...
--
:M:
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list