[mb-devel] libmusicbrainz3 testing

Tobias Rundström tru at xmms.org
Sat Jul 22 19:48:03 UTC 2006


On 22 jul 2006, at 15.34, Lukáš Lalinský wrote:

> Hi,
>
> I've been working on a port of python-musicbrainz2 to C++ (with  
> Glib-style C
> bindings), which should eventually become libmusicbrainz3. I think  
> I finished
> all important things, the API should be complete, and now it'd need  
> some more
> testing.
>
> To get the source code from svn use:
>
>   svn co http://svn.musicbrainz.org/libmusicbrainz/branches/xmlws  
> libmb3
>
> then you need to run ./autogen.sh to generate Makefiles and the  
> configure
> script. To compile it you need libneon 0.25 or 0.26
> <http://www.webdav.org/neon/> and libdiscid
> <http://wiki.musicbrainz.org/libdiscid>. To compile and run the  
> test suite you
> need also CppUnit <http://cppunit.sourceforge.net/>.
>
> For testing, probably the most important is to check if the test  
> suite runs
> without problems:
>
>   make check
>
> The API is almost identical to python-musicbrainz2, here is the C++  
> specific
> documentation: http://users.musicbrainz.org/~luks/docs/ 
> libmusicbrainz3/
>
> If you notice any bugs or problems with the API, please let me  
> know. Thanks!

Hello lukas,

What I have discovered when I have been working with libmusicbrainz2  
is that I would really like it to be asynchronous. Right now you have  
to create a new thread and loop in that thread to do synchronous  
operations.

I would like an option (both for musicbrainz and in the long run  
maybe for tunepimp) where you can access the filedescriptor, add it  
to your GMainLoop (or QSocketNotifier) and when data is available you  
do mb_process_events(fd); which calls the callbacks you have setup.

This would really help writing UI applications.

What do you think?

-- Tobias




More information about the MusicBrainz-devel mailing list