[mb-devel] libmusicbrainz3 testing

Tobias Rundström tru at xmms.org
Sun Jul 23 15:41:02 UTC 2006


> There's one thing about libcurl I always found annoying: You
> have to call curl_global_init() before using the library and
> curl_global_cleanup() afterwards. Both functions should be called
> exactly once, so you can't do that in libmb3 (in case the application
> or some other client library uses libcurl, too).
>
> The only choice you have is to ask the user to call those functions
> himself. Because of this, curl can't be a drop-in replacement for  
> neon.

This is not true. XMMS2 rely on curl for media streaming and I just  
looked through that code. We don't call any global init functions and  
our plugin works just great. So fortunately it seems that we can have  
a drop-in-replacement.

-- Tobias



More information about the MusicBrainz-devel mailing list