diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2014-01-08 10:40:33 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2014-01-08 10:40:33 +0000 |
commit | 9d286eca2a10082ee558f1d2cd6e1ff48058a140 (patch) | |
tree | c23285ccc7063fa9e6f30626dc77e8d6b2d3bb96 /packaging | |
parent | 6caacdd2baef76d60243bc70718e8f8a28ea31db (diff) | |
download | libgphoto2-9d286eca2a10082ee558f1d2cd6e1ff48058a140.tar.gz |
emit an interface matcher for PTP, not just a dervice class matcher
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14681 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/generic/print-camera-list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c index badcc268c..e592481f1 100644 --- a/packaging/generic/print-camera-list.c +++ b/packaging/generic/print-camera-list.c @@ -779,7 +779,10 @@ hwdb_camera_func (const func_params_t *params, if (flags & GP_USB_HOTPLUG_MATCH_INT_CLASS) { if ((flags & (GP_USB_HOTPLUG_MATCH_INT_CLASS|GP_USB_HOTPLUG_MATCH_INT_SUBCLASS|GP_USB_HOTPLUG_MATCH_INT_PROTOCOL)) == (GP_USB_HOTPLUG_MATCH_INT_CLASS|GP_USB_HOTPLUG_MATCH_INT_SUBCLASS|GP_USB_HOTPLUG_MATCH_INT_PROTOCOL)) { + /* device class matcher ... */ printf("usb:v*p*d*dc%02ddsc%02dp%02d*\"\n GPHOTO2_DRIVER=PTP\n", class, subclass, proto); + /* interface class matcher, ptp is a interface */ + printf("usb:v*p*d*ic%02disc%02ip%02d*\"\n GPHOTO2_DRIVER=PTP\n", class, subclass, proto); has_valid_rule = 1; } else { if (class == 666) { |