From 9e34783602b82f4ff0d6aba9975173d96e14c5c8 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Wed, 1 Sep 2010 21:50:05 +0000 Subject: [PATCH] Add references for MTP detection code. --- src/devices/macdevicelister.mm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/devices/macdevicelister.mm b/src/devices/macdevicelister.mm index ed1b6f88f..4cbdb9e3e 100644 --- a/src/devices/macdevicelister.mm +++ b/src/devices/macdevicelister.mm @@ -35,6 +35,22 @@ #define kUSBProductString "USB Product Name" #endif +// Helpful MTP & USB links: +// Apple USB device interface guide: +// http://developer.apple.com/mac/library/documentation/DeviceDrivers/Conceptual/USBBook/USBDeviceInterfaces/USBDevInterfaces.html +// Example Apple code for requesting a USB device descriptor: +// http://www.opensource.apple.com/source/IOUSBFamily/IOUSBFamily-208.4.5/USBProber/BusProbeClass.m +// Libmtp's detection code: +// http://libmtp.cvs.sourceforge.net/viewvc/libmtp/libmtp/src/libusb-glue.c?view=markup +// Libusb's Mac code: +// http://www.libusb.org/browser/libusb/libusb/os/darwin_usb.c +// Microsoft OS Descriptors: +// http://www.microsoft.com/whdc/connect/usb/os_desc.mspx +// Symbian docs for implementing the device side: +// http://developer.symbian.org/main/documentation/reference/s3/pdk/GUID-3FF0F248-EDF0-5348-BC43-869CE1B5B415.html +// Libgphoto2 MTP detection code: +// http://www.sfr-fresh.com/unix/privat/libgphoto2-2.4.10.1.tar.gz:a/libgphoto2-2.4.10.1/libgphoto2_port/usb/check-mtp-device.c + QSet MacDeviceLister::sMTPDeviceList; uint qHash(const MacDeviceLister::MTPDevice& d) {