NOTICE: This package has been removed from pkgsrc

./wip/libmtp, Implementation of Media Transfer Protocol (MTP)

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 0.3.1, Package name: libmtp-0.3.1, Maintainer: ku3

libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP) in the
form of a library suitable primarily for POSIX compliant operating systems. We
implement MTP Basic, the stuff proposed for standardization.
Used by:
* XNJB
* Gnomad2
* MTPdude
* AmaroK


Required to run:
[devel/libusb]

Required to build:
[devel/libtool-base] [devel/pkg-config]

Master sites: (Expand)

SHA1: 416510e65018cc50b10883b1fc893e2a05387439
RMD160: f9b3eac1b6b69771ef123edf76b8a6242f96c6f5
Filesize: 543.17 KB

Version history: (Expand)


CVS history: (Expand)


   2008-09-07 01:28:31 by Thomas Klausner | Files touched by this commit (6) | Package removed
Log message:
Remove libmtp, imported into pkgsrc/devel/libmtp.

   2008-09-07 01:22:06 by Thomas Klausner | Files touched by this commit (2)
Log message:
Better patch for this issue: just use on equal sign in test(1) constructs.
   2008-08-29 05:30:20 by Blair Sadewitz | Files touched by this commit (2)
Log message:
Update to libmtp-0.3.1.  Changes:

	* src/libusb-glue.c: some vartype and return flunkies.
	* configure.ac: check for locale.h
	* examples/util.c: set locale to pick up environment.
	* src/libusb-glue.c: some handling of ptp_usb_getdata()
	  when passed in data size was 0xffffffffU, data
	  sent in first transaction was ignored, fix by
	  Rob Woolley.
	* src/ptp-pack.c: sync in from upstream libgphoto2.
	* src/playlist-spl.c: added handling of Samsung's
	  proprietary .spl playlist format.
	* src/playlist-spl.h: dito.
	* src/device-flags.h: new flags for Samsung playlists.
	* src/music-players.h: assign flags.
	* src/libusb-glue.h: convenience macros.
	* src/libmtp.c: integrate Samsung playlists.
	* src/music-players.h: several new devices and flags.
   2008-08-08 15:23:42 by Thomas Klausner | Files touched by this commit (3) | Package updated
Log message:
Update to 0.3.0:

2008-06-24  Linus Walleij

	* TODO: updates.
	* src/Makefile.am: bump interface to libmtp.so.8.0.0.
	  It's NOT compatible!
	* RELEASE libmtp 0.3.0 and let the apps developers have
	  their apps fixed!
	
2008-06-22  Linus Walleij

	* src/libmtp.h.in: 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.
	* src/libmtp.c: changed outlined above were implemented.
	* examples/newfolder.c: consequental changes.
	* examples/sendfile.c: consequental changes.
	* examples/sendtr.c: consequental changes.
	* examples/albumart.c: consequental changes.
	* examples/newplaylist.c: consequental changes.
	* examples/files.c: consequental changes.
	* examples/tracks.c: correct misleading strings.

2008-06-15  Linus Walleij

	* src/libmtp.c: only look for default folders in the
	  root folder on the primary storage, even.

2008-06-14  Linus Walleij

	* src/libmtp.c: only look for default folders in the
	  primary storage, and only try to put files there
	  if they are targetting the primary storage.
	
2008-06-08  Linus Walleij

	* configure.ac: check for the langinfo.h header.
	* examples/connect.c: check charset properly.
	* examples/sendtr.c: dito.
	* src/music-players.h: new devices galore.
	
2008-06-03  Linus Walleij

	* src/device-flags.h: new device flag for devices that
	  always need to have their device descriptor probed.
	* src/music-players.h: generously add this flag to all
	  SanDisk devices. The e280v2 and Fuze are known to be
	  especially problematic.
	* src/libusb-glue.h: helper macro.
	* src/libusb-glue.c: massage "OS Descriptor" on demand
	  when opening the device.
	* src/music-players.h: detailed info and flags for the
	  SanDisk Sansa players. More to be done, probably.

2008-06-02  Linus Walleij

	* src/libusb-glue.c: refactor PTP_USB to use the raw
	  device and its contained deviceinfo to store and
	  retrieve the device flags. (This is starting to look
	  object oriented...)
	* src/libusb-glue.h: accessor functions to simplify
	  switching on the device flags and increase the code
	  readability.
	* src/libmtp.c: use the new accessor functions.
	
2008-06-01  Linus Walleij

	* src/libmtp.c: use LIBMTP_Detect_Raw_Devices() and
	  LIBMTP_Open_Raw_Device() inside 
	  LIBMTP_Get_First_Device() refactoring. Move
	  params creation into this file.
	* src/libusb-glue.c: move params creation away
	  from here.

2008-05-30  Linus Walleij

	* src/libusb-glue.c: unused variable.
	* examples/detect.c: switch to using raw device
	  interface for opening devices.

2008-05-28  Linus Walleij

	* src/libmtp.c: internally using the raw devices to
	  get a list of devices.
	* src/ptp.c: sync to upstream.
	* src/ptp.h: dito.
	* src/ptp-pack.c: dito.
	* src/libmtp.h.in: move raw device detection to use
	  error codes. Add interface to open a raw device!
	* src/libusb-glue.h: make the old device list internal,
	  use raw device in interface for configuring USB.
	* src/libusb-glue.c: fix up error messages. Move the
	  raw device detection interface to use error codes.
	* examples/detect.c: fix up error messages. Use error
	  codes for raw devices.

2008-05-23  Linus Walleij

	* src/libmtp.c: after sending a file, look up the
	  resulting file metadata from the cache to make sure
	  that parent_id is identical to that the file actually
	  gets on the device. If root folder (0) is selected, we
	  hardcode thing to 0xffffffffu to be used as parent,
	  but it will probably end up being 0 for example.
	  Also fix an issue with ptp_mtp_getobjectproplist()
	  sometimes returning a NULL pointer while still
	  claiming there are props in the list.
	* src/libusb-glue.h: add a function to get the preferred
	  playlist extension.
	* src/libusb-glue.c: "written" variable in
	  ptp_usb_sendreq() may end up uninitialized if
	  ptp_write_func() fails. Initialize it to 0.
	  Get the prefered playlist extension.

2008-05-18  Richard Low

	* src/device-flags.h: added
	  DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS device flag
	* src/music-players.h: ditto. Also set Samsung YH-999 to
 	  DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL based on users
	  experience.
	* src/libmtp.c: added
          DEVICE_FLAG_BROKEN_SET_SAMPLE_DIMENSIONS device flag

2008-05-05  Linus Walleij

	* src/libusb-glue.c: assign device name and flags to
	  detected raw devices, slowly preparing to move to 
	  using the raw device detection internally as well.

2008-05-04  Linus Walleij

	* src/libmtp.h.in: move useful filetype macros here so
	  external programs can use them.
	* src/libmtp.c: consequental changes.
	* examples/sendtr.c: use the new macro to detect track
	  content.

2008-05-03  Johannes Huber

	* src/libmtp.h.in: add interface for setting album composer,
	  needed for classical albums, on abstract albums.
	* src/libmtp.c: implement it.
	* examples/albums.c: consequental changes.
	* examples/connect.c: dito.
	* examples/sendtr.c: dito.
	* examples/tracks.c: dito.
	* AUTHORS: new contributor.

2008-04-27  Linus Walleij

	* src/libmtp.c: recognize audio 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.

2008-04-24  Linus Walleij
	
	* src/libmtp.h.in: added preliminary interface for getting
	  raw devices.
	* src/libusb-glue.c: the implementation is all here!
	* src/libusb-glue.h: add some bus and device fields to the
	  internal device list.
	* examples/detect.c: exercise the raw device detection code.
	
2008-03-26  Linus Walleij

	* examples/pathutils.c: fix a folder identification bug,
	  courtesy of Dr Nicholas Jacobs.

2008-03-12  Linus Walleij

	* configure.ac: bad mailing list address. (Marcus) Bump to
	  version 0.3.0.
	* examples/hotplug.c: switch from using "info.bus" to
	  using "info.subsystem" to identify USB events. (Marcus).
	* src/libmtp.c: add parent_id to albums and playlists,
	  based on a patch by Ali Shah.
	* src/libmtp.h.in: dito.
	* examples/playlists.c: consequental changes.
	* examples/albums.c: consequental changes.
	* This will be a new major revision of the API/ABI no
	  matter what.

2008-03-08  Linus Walleij

	* src/libusb-glue.c: left debug prints on :-(
	* configure.ac: set to 0.2.6.1
	* Release as 0.2.6.1

2008-03-02  Linus Walleij

	* configure.ac: prepare 0.2.6 release.
	* src/Makefile.am: bump to compatible interface, 
	* src/ptp.c: sync in upstream, a Sansa fix!
	* src/ptp.h: sync in upstream.
	* doc/Doxyfile.in: retire obsoleted parameters.
	* Release this as 0.2.6!
	
2008-02-24  Richard Low

	* src/music-players.h: add DEVICE_FLAG_BROKEN_MTPGETOBJPROPLIST_ALL
	  for a broken Philips player.

2008-02-18  Linus Walleij

	* examples/pathutils.c: fix up item ID typing to uint32_t,
	  handle file names passed in as arguments at suggestion from
	  anonymous mail list user.
	* examples/pathutils.h: move a function static.

2008-02-12  Nicolas Pennequin

	* examples/sendtr.c: add transferred tracks to albums if possible.

2008-02-10  Scott Snyder

	* src/libusb-glue.c: finally fix up the short header detection
	  to skip over zero packets when encountered.
	* examples/pathutils.c: fix a problem where all files sent has
	  to include a "." (period).

2008-02-06  Linus Walleij

	* src/libusb-glue.c: wait for response > 0 instead of > 2.

2008-01-28  Linus Walleij

	* src/libmtp.c: LIBMTP_Get_Filemetadata() return metadata for
	  folders (associations) too. There is really no reason why it
	  shouldn't and it's good for use internally. 
	  LIBMTP_Get_Filelisting_With_Callback() will still not return
	  any associations however. We want to use the folder functions
	  for that.

2008-01-28  Linus Walleij

	* src/libmtp.h.in: withdraw LIBMTP_Set_Object_Parent() function,
	  no known devices will support this.
	* src/libmtp.c: dito. Fix up some problems with the 
	  LIBMTP_Set_Object_Filename() function.

2008-01-27  Linus Walleij

	* src/libmtp.c: fix up some minor things and documentation on
	  the object handling functions.

2008-01-27  Florent Mertens

	* src/libmtp.h.in: new functions to rename object filenames
	  and change object parents. Good when modifying the device
	  as a file system, LIBMTP_Set_Object_Filename(),
	  LIBMTP_Set_Object_Parent().
	* src/libmtp.c: implementation.

2008-01-27  Linus Walleij

	* src/libusb-glue.c: re-read response from device until
	  it atleast exceeds two bytes. This fixes a problem with
	  the Samsung YP-U3 when populated with many, many songs.

2008-01-21  Richard Low

	* src/music-players.h: add Thomson Lyrca HC308A, remove
	  incorrect ID for Creative Zen 8GB

2008-01-20  Richard Low

	* src/libmtp.c: add LIBMTP_Get_Representative_Sample()
	* src/libmtp.h.in: ditto

2008-01-14  Linus Walleij
	
	* src/libmtp.c: add LIBMTP_Get_Manufacturername(). Remember
	  to bump soname (compatible) in 0.2.6 (or whatever we name it).
	  0.3.0 perhaps?
	* src/libmtp.h.in: dito.
	* src/libmtp.c: detect default folders named "Datacasts" and
	  "Texts".

2008-01-11  Linus Walleij

	* examples/pathutils.c: recognize .bin files as firmware,
	  used by e.g. RockBox developers. Doesn't cost anything to
	  add.
   2008-02-13 07:29:29 by Johann Franz | Files touched by this commit (3)
Log message:
Update to 0.2.5: New devices and bug-fixes.
   2007-11-24 02:21:45 by Adam Hoka | Files touched by this commit (2)
Log message:
Too much changes to list them here, see
http://libmtp.sourceforge.net/index.php?page=download
for more info.
   2007-09-16 08:50:48 by Johann Franz | Files touched by this commit (5)
Log message:
Update to 0.2.1.
   2006-09-12 12:24:18 by Nikita Melnikov | Files touched by this commit (5) | Imported package
Log message:
Implementation of Media Transfer Protocol (MTP)