new libmtp version 0.3.0

Sam Fielder srf10130 at vtc.vsc.edu
Wed Jun 25 13:28:28 UTC 2008


what needs to be patched to be able to use this?  I desperately need to 
be able to use this for my sansa e200.

is it possible to just patch a source file and build this myself?

thanks
sam

RELEASE NOTES FOR LIBMTP 0.3.0

* The .so-name has changed to libmtp.8.0.0 to signify a major API
   revamp.
* The version number changed to 0.3.0 too, so you notice.

API CHANGES:

removed the parenthandle argument from
LIBMTP_Send_File_From_File(),
LIBMTP_Send_File_From_File_Descriptor(),
LIBMTP_Send_Track_From_File(),
LIBMTP_Send_Track_From_File_Descriptor(),
LIBMTP_Create_New_Playlist() and
LIBMTP_Create_New_Album()
Now you must pass in parent ID from a metadata or
filedata set. Use the respective field of the
file, track, playlist or album struct to pass in
a parent handle when calling these functions from
now on. The bonus for changing your code is that you
can now also pass in a storage_id with any metadata
set! Consequently LIBMTP_Create_Folder() was
altered to accept THREE metadata arguments: name,
parent_id and storage_id. All calls to any of these
functions in any referring code need to be altered to
use this scheme. It should be quite self-evident for
most code and easy to perform.

LIBMTP_Detect_Raw_Devices() and
LIBMTP_Open_Raw_Device() are now available to open
sessions to selected devices only. The raw device struct
can be used to determine if the device was seen before
and if it's already opened. See examples/detect.c for
a (simple) example usage. This can probably be matched
with HALd and stuff to make devices come and go properly
to desktop GUI clients.

recognize video files as tracks, since this
is what WMP does. (e.g. it sets playlength on movies
to enable skip bar) also define macros for audio/video/both
types and tidy up a bit.

Then there are bugfixes and new devices galore.




More information about the Amarok mailing list