Vala vapi files documentation

Posted by Jordan on Stack Overflow See other posts from Stack Overflow or by Jordan
Published on 2010-03-23T00:10:28Z Indexed on 2010/03/23 0:21 UTC
Read the original article Hit count: 416

Filed under:
|
|

Hi there,

I'd like to hack on an existing GLib based C project using vala. Basically what I'm doing is, at the beginning of my build process, using valac to generate .c and .h files from my .vala files and then just compiling the generated files the way I would any .c or .h file. This is probably not the best way, but seems to be working alright for the most part. My problem is that I'm having a hard time accessing my existing C code from my Vala code. Is there an easy way to do this? I've tried writing my own .vapi files (I didn't have any luck with the tool that came with vala), but I can't find any decent documentation on how to write these. Does any exist? Do I need one of these files to call existing C code?

Thanks.

© Stack Overflow or respective owner

Related posts about vala

Related posts about c