[mb-devel] libmusicbrainz3 testing
Tobias Rundström
tru at xmms.org
Sun Jul 23 16:02:28 UTC 2006
On 23 jul 2006, at 11.53, Lukáš Lalinský wrote:
> Tobias Rundström wrote:
>> 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.
>
> That's because it doesn't have to work on Windows :) On Windows you
> have to call
> WSAStartup() before using sockets. This is of course the case also
> for libneon,
> but libneon handles multiple calls per process.
I just looked in Curl's documentation:
This function sets up the program environment that libcurl needs.
Think of it as an extension of the library loader.
This function must be called at least once within a program (a
program is all the code that shares a memory space) before the
program calls any other function in libcurl. The environment it sets
up is constant for the life of the program and is the same for every
program, so multiple calls have the same effect as one call.
>> So fortunately it seems that we can have a drop-in-replacement.
>
> Well, if we decide to add support for non-blocking API, we will
> have to remove
> the libneon code anyway.
Well yeah. I guess. Let me try to make some code instead of just
talking. And we'll see if you guys like it.
-- Tobias
More information about the MusicBrainz-devel
mailing list