summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2009-06-15 07:07:47 +0000
committerMarcus Meissner <marcus@jet.franken.de>2009-06-15 07:07:47 +0000
commit5e9a103e3d59fa69b31520bcf2a4f7fa784fe5d9 (patch)
treee76926909effbe66afad34011d8e36b10c898fcc /packaging
parent087e6280b58c3ec619e67a8cfe51947ab595c32b (diff)
downloadlibgphoto2-5e9a103e3d59fa69b31520bcf2a4f7fa784fe5d9.tar.gz
set iface protocol class/subclass to 6/1/1
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12153 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'packaging')
-rw-r--r--packaging/generic/print-camera-list.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c
index 616a587fb..beb8c2621 100644
--- a/packaging/generic/print-camera-list.c
+++ b/packaging/generic/print-camera-list.c
@@ -859,10 +859,10 @@ fdi_camera_func (const func_params_t *params,
if (a->usb_vendor) { /* usb product id might be 0! */
printf(" <match key=\"usb.vendor_id\" int=\"%d\">\n", a->usb_vendor);
printf(" <match key=\"usb.product_id\" int=\"%d\">\n", a->usb_product);
- if (a->usb_vendor == 0x05ac) { /* Apple iPhone */
- printf(" <match key=\"usb.interface.class\" int=\"%d\">\n", a->usb_class);
- printf(" <match key=\"usb.interface.subclass\" int=\"%d\">\n", a->usb_subclass);
- printf(" <match key=\"usb.interface.protocol\" int=\"%d\">\n", a->usb_protocol);
+ if (a->usb_vendor == 0x05ac) { /* Apple iPhone, PTP user. */
+ printf(" <match key=\"usb.interface.class\" int=\"6\">\n");
+ printf(" <match key=\"usb.interface.subclass\" int=\"1\">\n");
+ printf(" <match key=\"usb.interface.protocol\" int=\"1\">\n");
}
if (a->device_type & GP_DEVICE_AUDIO_PLAYER) {
printf(" <merge key=\"info.category\" type=\"string\">portable_audio_player</merge>\n");