Re: [Vala] Vapi help



Attached files are an example I have done, I use the vala-gen-introspect method :
https://live.gnome.org/Vala/Bindings/GI

Then I modifed the generated file, I had to tweak the "cname" and "cprefix" values
in order that it works.

Well I'm not an expert I don't know if it's really correct, but it works fine, it seems
that you have the same troubles.

Regards.

On 10/01/2012 23:52, Denis Kuzmenok wrote:
Hi.
I  need  some  help  with  vapi  file.  I'm making vapi for C non-Glib
library. There are structs, i write them into vapi, as
  namespace AC ->  struct AC_Automata

And i'm getting errors:
undefined reference to `ac_ac_automata_destroy'

But  there  is no destroy calls in .c files (except one free call from
the  function),  so  i  suppose it's some vapi magic that inserts that
calls.
Is  there any docs describing possible variables for CCode? There is a
link to image on live.gnome.org, but it's broken..

Thanks.

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



--
Axel FILMORE

Attachment: libmenu-cache.vapi
Description: Text Data

Attachment: libmenu-cache.vapi.orig
Description: Text document

Attachment: vapi-gen.sh.txt
Description: Text document



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