[sane-devel] One Step Closer to Mac OS X Support
Karl Heinz Kremer
khk@khk.net
Sun, 3 Nov 2002 15:59:20 -0500
--DKU6Jbt7q3WqK7+M
Content-Type: multipart/mixed; boundary="Nq2Wo0NMKNjxTN9z"
Content-Disposition: inline
--Nq2Wo0NMKNjxTN9z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I almost got my backend working today with Mac OS X. The most
important step was a fix to sanei_usb.c (the diff is attached
to this email). I am not that familiar with USB in general
or libusb to determine if this is safe for all platforms.=20
all I know is it works on Linux as well.=20
After corecting one byteorder problem in my backend, I was
actually able to initialize the backend, report all the=20
options to XSane (including the dynamic stuff frm the
scanner) and to start a scan. I then got all the data
for a low resolution scan, but the acknowledge message
that the backend sends to the scanner never made it out -
the bulk write command just hangs.=20
Karl Heinz
--=20
Karl Heinz Kremer khk@khk.net
PGP Key at http://www.khk.net/download/khk.asc
EPSON Sane Backend: http://www.khk.net
--Nq2Wo0NMKNjxTN9z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="sanei_usb.diff"
--- sanei_usb.c.ORIG Sun Nov 3 15:49:06 2002
+++ sanei_usb.c Sun Nov 3 15:50:41 2002
@@ -542,7 +542,7 @@
"(address: %d), ignoring the new one\n",
devices[devcount].bulk_in_ep);
else
- devices[devcount].bulk_in_ep = address;
+ devices[devcount].bulk_in_ep = endpoint->bEndpointAddress;
}
else
{
@@ -551,7 +551,7 @@
"(address: %d), ignoring the new one\n",
devices[devcount].bulk_out_ep);
else
- devices[devcount].bulk_out_ep = address;
+ devices[devcount].bulk_out_ep = endpoint->bEndpointAddress;
}
}
#else /* not HAVE_LIBUSB */
--Nq2Wo0NMKNjxTN9z--
--DKU6Jbt7q3WqK7+M
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9xY4oxejv3RfKrhsRAjAnAKCGZtHPuqe7fCujjI8GPY/CGB8/gQCfV+R8
TJu16UVarihVKbmIXiDecdY=
=wO+X
-----END PGP SIGNATURE-----
--DKU6Jbt7q3WqK7+M--