An XferCallback currently provides no way of telling
the source of the callback, namely which jukebox it
This patch takes the approach of adding a void* data
item to the callback (and all functions which use them)
That way an application can pass an object, for
instance a C++ object or a GObject which wraps up njb
functionality for a single jukebox and so can easily
update the status of the transfer for the correct jukebox.
The patch is against the 0.9.1b release
Log in to post a comment.