Wykres commitów

120 Commity (747619ae5fc3d297491437227ab532a4f9191f4c)

Autor SHA1 Wiadomość Data
Henning Geinitz 08af36a2e8 Call sanei_usb_init only once. 2003-02-22 15:45:51 +00:00
Henning Geinitz 5d4e2220a0 Check all acceptable interfaces instead of using the first one. 2003-02-19 19:38:26 +00:00
Henning Geinitz b625db341a usb_clear_halt should only be called in libusb mode. 2003-02-18 20:14:08 +00:00
Henning Geinitz e3ceee04be Check the IP address of the remote host before any communication occurs.
Check for a errors before trsuting values that came from remote.  Make sure
that strings are 0-terminated.
2003-02-09 11:23:41 +00:00
Jochen Eisinger 705218fb1a 2003-01-25 Jochen Eisinger <jochen.eisinger@gmx.de>
* sanei/sanei_pa4s2.c: added some #ifdefs to make it compile with
	  the Intel C++ Compiler (icc). The icc cannot expand assembler
	  inline macros (at least not with -ip)
2003-01-26 14:13:04 +00:00
Jochen Eisinger 59071c8d43 2003-01-25 Jochen Eisinger <jochen.eisinger@gmx.de>
* sanei/sanei_pa4s2.c: added some #ifdefs to make it compile with
	  the Intel C++ Compiler (icc). The icc cannot expand assembler
	  inline macros (at least not with -ip)
2003-01-26 13:43:32 +00:00
Henning Geinitz c03e019f1c Scanning for devices is now done in sanei_usb_init instead of every time when
sanei_usb_find_devices is called. Also only devices that really exist are
opened. These changes fixe the slow detection of devices on systems using
devfs or old scanner drivers.
2003-01-22 16:54:14 +00:00
Henning Geinitz bf3553aacd Fixed regeneration of libsanei.a when the object files were changed. 2003-01-22 14:48:42 +00:00
Henning Geinitz cb2e483d60 Disable the new Linux SG interface for sparc64 to work-around 32 bit userland
/ 64 bit kernel problems.
2003-01-17 12:21:16 +00:00
Henning Geinitz 8ea589819e Don't call usb_clearhalt and usb_set_altinterface to avoid errors on Mac OS X. 2003-01-15 14:27:54 +00:00
Jochen Eisinger 2cd6ff39ac 2002-01-11 Jochen Eisinger <jochen.eisinger@gmx.de>
* sanei/sanei_pa4s2.h: prepared sanei for use with fork()ing
	  backends
2003-01-11 19:47:20 +00:00
Henning Geinitz d2d3aaf90d Comment out resetep at sane_close. This function sets th USB data toggle only
on the host side.
2003-01-10 16:44:53 +00:00
Henning Geinitz d9041acb54 Explicitely set first configuration. When claiming the interface, use the
interface number from bInterfaceNumber.  Explicitely set the alternative
setting. When closing, call clear_halt, and reset_ep, and release_interface
explicitley. On errors in write/read, call clear_halt.
2002-12-30 13:51:10 +00:00
Abel Deuring a690b94687 fixed an error in sanei_scsi.c from my last commit
Abel
2002-12-07 22:17:27 +00:00
Abel Deuring aa85bb0192 sanei/sanei_scsi.c: improved error handling for Linux 2002-12-07 18:10:45 +00:00
Karl Heinz Kremer 574cea3bcb Use endpoint address with directional information instead of just the
endpoint reference. This caused problems on Darwin systems.
2002-11-03 23:43:03 +00:00
Henning Geinitz a99e4f1ecd Really check for bulk_out ep when writing. 2002-10-15 08:42:42 +00:00
Gerhard Jaeger ff6e86ef36 Major update to support Canon CIS scanner N670/676U and N650/656U 2002-09-28 11:31:53 +00:00
Abel Deuring 9659512302 sanei/sanei_scci.c doc/sanei-scsi.man:
default timeout for SCSI commmands is now 120 seconds; added
the environment variable SANE_SCSICMD_TIMEOUT to override
the default value.

Abel
2002-09-04 22:13:44 +00:00
Frank Zago 6dc27bd66d Fixed a warning. 2002-08-23 02:09:05 +00:00
Henning Geinitz 433a923082 Made libusb_timeout static. 2002-07-27 20:33:18 +00:00
Henning Geinitz d9b5733f67 Check if file is already closed.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-07-17 17:56:26 +00:00
Henning Geinitz 278709d3d4 Made buffer const SANE_Byte * in sanei_usb_bulk_write(). Try to call
usb_find_busses only once. Make sure that already opened devices aren't opened
again. Exit libusb scan loop if one device is found. Make error values more
expressive. Check for missing config descriptors before using them to avoid
segfaults.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-07-14 16:31:14 +00:00
Henning Geinitz 9e4ad2dcc9 Used dn (device number) instead of fd (file descriptor) to avoid
confusion. Updated doxygen documentation.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-07-03 19:48:45 +00:00
Henning Geinitz e3476bd389 Added support for libusb.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-07-03 14:07:44 +00:00
Henning Geinitz bc16d554dc Set buffer size to 64 kB for SOLARIS_USCSI_INTERFACE (reported by Ed Randall
<ed.randall@ingenotech.com>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-06-27 16:04:21 +00:00
Henning Geinitz 1c87df203c Fixed possible segfault.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-05-30 19:26:40 +00:00
Henning Geinitz a1df2d83f5 Explicitely initialize vendorID and productID.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-05-30 19:23:22 +00:00
Henning Geinitz 477e9c6334 Fixed request-sense handling for OpenStep (from Oliver Schirrmeister
<oschirr@abm.de>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-05-28 18:57:26 +00:00
Henning Geinitz bc0c6449f0 Fixed sanei_scsi_cmd2() for OPENSTEP (from Oliver Schirrmeister
<oschirr@abm.de>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-05-22 18:09:33 +00:00
Henning Geinitz 00e8ac71fd Use O_NONBLOCK when opening an sg device under Linux. Return
SANE_STATUS_DEVICE_BUSY if EBUSY. Check for buffer==0 for OS/2.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-13 18:56:39 +00:00
Petter Reinholdtsen 964fd755bb Avoid warning on Solaris. Correct type of second argument to
sanei_usb_write_bulk() from (char*) to (SANE_Byte*).
2002-04-09 10:17:16 +00:00
Henning Geinitz 63bfda58be Check that a SANE_Bool variable can only be SANE_TRUE or SANE_FALSE.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-06 20:42:07 +00:00
Gerhard Jaeger 378195fd16 Updated to new mail-address and backend url 2002-03-26 08:35:59 +00:00
Henning Geinitz febf58f64e Set allocated memory to 0 to avoid delivering garbage to the frontend.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-03-20 20:40:58 +00:00
Abel Deuring 4f70616c01 configure.in, configure, include/sanei/config.h.in
sanei/sanei_scsi.c: Added HAVE_SG_TARGET_STATUS for compatibility
with old Linux sg.h versions

Abel
2002-03-10 14:34:11 +00:00
Abel Deuring eb0e878a0f sanei/sanei_scsi.c: fixed a typo (Sg_scsi_id -> SG_scsi_id)
Abel
2002-03-07 20:45:52 +00:00
Henning Geinitz 644a271538 Fixed some DBG format warnings.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-02-14 19:50:10 +00:00
Henning Geinitz 5765809cf9 Removed load_values and save_values as they are only used in sane_frontends.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-02-14 19:44:39 +00:00
Henning Geinitz e3cbda553c Added global list of file patterns for "make distclean". Some "make clean"
and "make distclean" cleanup and additions.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-02-13 20:48:29 +00:00
Henning Geinitz a38aa93608 If get_vendor_product fails, don't try again for every device file.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-02-10 18:39:48 +00:00
Abel Deuring 6a57e91a51 * sanei/sanei_scsi.c: Added checks to the Linux part of
sanei_scsi_open_extended, if an SG device file is being
          opened

Abel
2002-02-09 16:37:21 +00:00
Henning Geinitz a997e240fc Make sure that waitpid returns something usefull on OS/2. Avoids the "Unknown
SANE status code 128" errors.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-02-05 22:04:26 +00:00
Abel Deuring 7fbdae8348 sanei/sanei_scsi.c: set timeout value for all operating
systems to 1 minute. The timeout value is now derived from
the macro SANE_SCSICMD_TIMEOUT.

Abel
2002-01-20 15:53:22 +00:00
Henning Geinitz 8757ebfb32 Made documentation doxygen-compatible. Move comments from sanei_config.c to
sanei_config.h.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-19 22:32:08 +00:00
Gerhard Jaeger 285cf40f44 Updated files mainly because of the translation stuff and
doxygen conform comments.
2002-01-17 19:48:40 +00:00
Gerhard Jaeger 1737ac83c6 Updated sanei_lm983x.[ch]... 2002-01-12 14:00:58 +00:00
Henning Geinitz d2cf6a57e1 Added #include <sys/types.h> (OS/2 complains otherwise).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-11 18:03:27 +00:00
Gerhard Jaeger 5d71d97a6b Added LM983x library functions 2002-01-10 19:36:06 +00:00
Henning Geinitz c1b967a5d6 Added target "dist". Fixed .PHONY.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-01-08 19:06:54 +00:00