[Vala] Using Vala to hack an existing C project



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 or is there another way?


Thanks,

Jordan


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