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



On Sat, 2011-12-17 at 14:46 +0100, Giulio Paci wrote:
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

Why not use libsoup?

I'm not saying you should use libsoup... I'm guessing you have your
reasons for not doing so and I'm genuinely curious about what they are.


-Evan




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