Re: [Vala] C Integration, it's cool



Il 16/12/2011 19:55, Rodrigo Herefeld ha scritto:
I've found a goodie, i needed to use libcurl in a vala program, just to
fetch a file regulary from the internet,
after some searching i end up doing that:

i write all the curl thing in a c program , then i wrote a function that
makes the connection and return
the content of the file.
in vala i wrote

exter  char[] my-curl-fun-in-c();
and called that from vala where i needed

compile like that:
valac valasource.vala csource.c -X -l curl

Hi, thank you for the tip.

Maybe this is a bit off-topic for this thread, but I am writing a
libcurl.vapi file here:
https://github.com/giuliopaci/ValaBindingsDevelopment

It has still some minor issues and is not very well tested, but perhaps
you or any other may want to try it.

Cheers,
        Giulio.



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