diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-03-29 09:25:54 +0000 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-03-29 09:25:54 +0000 |
commit | 004777f2877233fa3e2374664cf2726d237bd214 (patch) | |
tree | 8c0ae93cb68458741c02d18c948caf4e51ec6bdd /packaging/generic | |
parent | afe1e7bfffea54655a55e25215245989c24bf445 (diff) | |
download | libgphoto2-004777f2877233fa3e2374664cf2726d237bd214.tar.gz |
Add ax203 camlib for ax203 based picture frames
This makes it possible to download pictures from / upload pictures to
ax203 based picture frames
It consists of 2 parts:
1) an ax203 camlib, ax203 access, image table parsing, and decompress /
compress code.
2) usbscsi port driver, this is a *Linux only* (for now) port driver
for accessing devices which require sending custom scsi commands to
an usb mass storage device (using the /dev/sg# device under Linux).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12854 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'packaging/generic')
-rw-r--r-- | packaging/generic/print-camera-list.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/generic/print-camera-list.c b/packaging/generic/print-camera-list.c index 5a584ed40..02cb253c9 100644 --- a/packaging/generic/print-camera-list.c +++ b/packaging/generic/print-camera-list.c @@ -645,12 +645,21 @@ udev_camera_func2 (const func_params_t *params, const CameraAbilities *a, void *data) { + int has_valid_rule = 0; udev_persistent_data_t *pdata = (udev_persistent_data_t *) data; ASSERT(pdata != NULL); if (a->port & GP_PORT_USB_DISK_DIRECT) { printf (pdata->usbdisk_string, "sd[a-z]*", a->usb_vendor, a->usb_product); + has_valid_rule = 1; + } + if (a->port & GP_PORT_USB_SCSI) { + printf (pdata->usbdisk_string, "sg[0-9]*", + a->usb_vendor, a->usb_product); + has_valid_rule = 1; + } + if (has_valid_rule != 0) { if (pdata->script != NULL || pdata->mode != NULL || pdata->owner != NULL || pdata->group != NULL) printf(", "); |