Wykres commitów

3362 Commity (18ce7b4e0f00962c85f9c7f3c0956292a75ba9f5)

Autor SHA1 Wiadomość Data
m. allan noah 47772db938 2008-08-02 m. allan noah <kitno455 a t gmail d o t com>
* backend/fujitsu.c, backend/fujitsu-scsi.h: backend v74
        - replace global scsi blocks with local ones in each function
2008-08-04 00:51:24 +00:00
Julien BLACHE 32b343dcea Set supplemental group list in addition to setting euid and egid. Reported by Cameron Hutchison. 2008-07-31 09:42:33 +00:00
Julien BLACHE 125ed414d4 Call setegid() before seteuid(), aka while we're still root. 2008-07-28 10:48:41 +00:00
m. allan noah ea2a506cba fujitsu backend v73
- add fi-6130 usb ID
- correct overscan dimension calculation
- provide correct overscan size overrides for fi-5110C and fi-4x20C2
- fi-5750C can't handle 10 bit LUT via USB
2008-07-27 23:29:12 +00:00
m. allan noah 887b008e7c * AUTHORS: Earle has commit perms
* doc/descriptions/unsupported.desc: add Lexmark X7170
* include/sane/sanei_config.h: remove typedef so doxygen will shutup
2008-07-26 05:34:28 +00:00
m. allan noah 2dc0cb38bd separate x-resolution from resolution, and update all backends that use
it, to prevent ui change
2008-07-26 03:53:44 +00:00
Julien BLACHE 154bea9618 sane_control_option(): perform options reload if asked by the remote backend and the frontend doesn't care (info == NULL) 2008-07-20 10:28:14 +00:00
Nicolas Martin cc60422d01 Changed page scan end condition to handle correctly PIXMA ADF. 2008-07-15 20:24:26 +00:00
Julien BLACHE 3fc582ce61 Fix hyphen vs. minus sign in manpages, breaking copy/paste of command-lines and options in UTF-8 environments. 2008-07-14 10:49:06 +00:00
m. allan noah 4f4ce809ba * backend/fujitsu.[ch]: backend v72,
- use mode_sense to determine background color support
- remove fi-5900 background color override
2008-07-14 00:59:26 +00:00
m. allan noah dfee7abb75 fujitsu backend v71,
- disable overscan option if vpd does not tell overscan size
- fi-5110EOX crops scan area based on absolute maximum, not paper
- fi-5330C and fi-5650C can't handle 10 bit LUT via USB
- fi-5900 has background color, though it reports otherwise
2008-07-13 06:32:41 +00:00
Stéphane Voltz fb5ade52ad - handle the case where the attach callback or the config struct
is NULL
	- make use of new configuration parsing framework
2008-07-10 19:37:00 +00:00
Stéphane Voltz 9d605a2143 - doxygen fix 2008-07-10 05:46:01 +00:00
Stéphane Voltz c74a1be430 - add support for SANE_Bool in sanei_check_value
- add sanei_constrain_value.lo to libsane dependencies
	- add makedepend for .lo files in sanei
	- add configuration parsing framework
2008-07-10 05:40:25 +00:00
m. allan noah 7b73560b15 * backend/fujitsu.[ch]: backend v70,
- fix bug in sane_get_parameters (failed to copy values)
- autodetect jpeg duplex interlacing mode by inspecting scan width
2008-07-06 01:03:11 +00:00
Nicolas Martin b17fddd55b A few changes for ADF source scanning, updated MX850 description. 2008-07-05 12:42:53 +00:00
m. allan noah 800a3ae2c3 backend/fujitsu.[ch]: backend v69, support hot-unplugging scanners 2008-07-04 01:04:12 +00:00
m. allan noah da1587f897 backend v67,
- add IPC/DTC/SDTC options
- call check_for_cancel() in sane_cancel, unless reading flag is set
2008-07-01 21:21:16 +00:00
Nicolas Martin be7c92b63e Removed experimental flag for PIXMA MX850. 2008-06-28 08:52:49 +00:00
m. allan noah 07df99df47 backend version 66:
- restructure double feed detection options for finer-grained control
- add endorser side option
- prevent init_interlace() from overriding init_model()
- simplify sane_start() and fix interlaced duplex jpeg support
- simplify sane_read() and add non-interlaced duplex jpeg support
- removed unused code
2008-06-27 03:13:08 +00:00
m. allan noah 8733651c4b test backend checks for options that have not been loaded before being controlled 2008-06-26 13:14:23 +00:00
Nicolas Martin 7ef8119579 Patch from Sam Varshavchik to deal with libusb 64 read issue, for ImageClass MFPs. 2008-06-25 20:54:16 +00:00
m. allan noah f3ed5342cc backend version 65, add endorser support, add quirks for fi-4990 2008-06-25 02:30:54 +00:00
Julien BLACHE 29e8be57e5 Fetch option descriptors in sane_open() so a GET_VALUE on option 0 can still
work without having to get option descriptor 0 beforehand.
2008-06-24 20:07:01 +00:00
Julien BLACHE 0ec211ef87 Rework error/exit path in process_request() to properly terminate the Avahi thread in debug mode. 2008-06-24 19:41:44 +00:00
Julien BLACHE f7f53e0479 Do not refresh option descriptors cache behind the frontend's back. 2008-06-24 17:29:37 +00:00
Julien BLACHE 83365608d3 Terminate child processes before exiting in debug mode. 2008-06-22 08:47:59 +00:00
Ilia Sotnikov 7b4f5d36e8 * Fixed segmentation fault on invalid option passed to
sane_get_option_descriptor(), sane_control_option()
  (thanks to Albert Cervera i Areny)
2008-06-19 11:28:06 +00:00
Ilia Sotnikov 249681dbc6 + Added support for HP ScanJet 4570c (thanks to Markham Thomas) 2008-06-19 11:03:49 +00:00
Nicolas Martin 1a23d9be8c Remove 'experimental' in pixma buttons options and text, fix some French translation typos, update man page. 2008-06-15 20:05:14 +00:00
Stéphane Voltz 777c8f4f6d - improved sanei_constrain_value to handle arrays (such as gamma
tables)
2008-06-10 04:59:45 +00:00
Stéphane Voltz 24fab2e360 - fix scan with moels sold with XPA 2008-06-09 19:50:16 +00:00
Julien BLACHE e4d87cce65 Lock the Avahi thread before stopping it and tearing down the Avahi objects. 2008-06-06 15:24:28 +00:00
Stéphane Voltz f27fc32bb1 - fixed wrong offset for start of scanarea for MD6471 scanner. 2008-06-03 04:41:08 +00:00
m. allan noah ad779e0865 backend version 64,
use model and serial to build sane.name (idea from Ryan Duryea),
 allow both serial_name and device_name to sane_open scanner,
 simulate missing VPD data for M3097G, probe scanner for color
 interlacing mode instead of hardcoding, other minor cleanups
2008-05-30 08:47:38 +00:00
Nicolas Martin 9c16b4bed2 man and SANE status types updates. 2008-05-29 20:04:54 +00:00
Mattias Ellert d19b1a6b6e Correct typos, update localization 2008-05-29 19:24:12 +00:00
m. allan noah 0acce974b2 add %n (newline) to -f option 2008-05-28 00:48:21 +00:00
Jonathan Bravo Lopez 70c861608f * po/sane-backends.es.po: added spanish translation about status strings.
* po/Makefile.in: added backend/sane_strstatus.c to SRC_FILES section.
2008-05-26 19:55:07 +00:00
Rene Rebe 3f0f3be9e3 * backend/avision.{c,h}: merged latest upstream SVN changes, bug fixes
and device ID updates, including fixing uninitialized variables due
          former defect merge and exposure control for film / dia scanners
2008-05-26 09:57:28 +00:00
Stéphane Voltz 25e65c584f SANE 1.1 patches 2008-05-26 04:55:04 +00:00
Stéphane Voltz 1ed1d84f85 - renamed per frontend struct tp Rts8891_Session
- made use of new well-known option groups
	- added warming-up handling in sane_start()
2008-05-26 04:48:20 +00:00
Stéphane Voltz c97e99a430 - changed top of scan area detection for MD6228/MD6471 models 2008-05-23 08:55:22 +00:00
Jonathan Bravo Lopez fa54852d6e Setting appropiate capabilities to some advanced options 2008-05-23 08:34:53 +00:00
Jonathan Bravo Lopez 041f5cd20c * backend/hp3900_sane.c: use 1.1.0 well-known option group strings.
* backend/hp3900_config.c, backend/hp3900_debug.c,
  backend/hp3900_rts8822.c, backend/hp3900_types.c,
  backend/hp3900_usb.c: fixed reference position detection for
  HP3800/HPG2710 scanners. Code clean up.
2008-05-22 10:24:31 +00:00
Stéphane Voltz e154d2eb11 - minor tweak for scanjet 4470cx 2008-05-22 04:47:42 +00:00
m. allan noah c204b01b89 SANE 1.1.0 well-known button options 2008-05-21 18:48:30 +00:00
m. allan noah 2016e8f019 backend version 1.0.62, begin sane 1.1.0 compliance 2008-05-21 02:27:14 +00:00
m. allan noah e91fea4ac1 include/sane/sane.h: add SANE_STATUS_WARMING_UP and SANE_STATUS_HW_LOCKED, remove SANE_CAP_ALWAYS_SETTABLE,add SANE_FRAME_XML, improve comments on other new frame types.
include/sane/saneopts.h: add common option groups, add new page-width and page-height well-known options
2008-05-21 01:38:12 +00:00
m. allan noah 084a18b0c4 remove undocumented and otherwise unused SANE_CAP_ALWAYS_SETTABLE 2008-05-21 01:20:35 +00:00
Stéphane Voltz 726e46456e - shading calibration fixes for HP4470 with 'xpa sensor' 2008-05-19 19:53:11 +00:00
m. allan noah 5c10c3f29b look at correct bool before enabling prepick mode option 2008-05-16 13:20:50 +00:00
m. allan noah f6f4de5d5d * doc/descriptions/cardscan.desc, doc/descriptions/epjitsu.desc,
doc/descriptions/hp3900.desc, doc/descriptions/hp5590.desc,
  doc/descriptions/hpljm1005.desc, doc/descriptions/hs2p.desc:
  remove 'new' tag from sane 1.0.19 backends
* doc/descriptions/fujitsu.desc, backend/fujitsu.conf.in:
  add fi-5530C2 usb ID
* backend/cardscan.c: correct version number
* backend/epjitsu.conf.in: improved firmware directions
* backend/fujitsu.[ch]: update to backend v 1.0.61
2008-05-16 02:31:57 +00:00
Mattias Ellert d857bdc3f5 Man page and documentation fixes 2008-05-15 20:16:51 +00:00
Mattias Ellert e0f659c267 Less fancy man page syntax that isn't screwed up by the man2html converter for the website 2008-05-15 17:11:47 +00:00
Mattias Ellert d5ae0bbc3d Fix for bug #306751: sanei-thread with pthreads on 64 bit 2008-05-15 12:50:25 +00:00
Stéphane Voltz 8d55281218 - calibration and 150/300 dpi mode fixes for 4470cx sensor 2008-05-12 05:48:07 +00:00
Alessandro Zummo 43b7e3cc6b AUTHORS: added Alessandro Zummo 2008-05-08 21:39:43 +00:00
Julien BLACHE 341363843a By popular demand, merge my Debian patch adding support for dll.conf
snippets under $configdir/dll.d.
2008-05-07 17:04:40 +00:00
Julien BLACHE a5b74ecaed Fix man warning in sane-config.1. 2008-05-07 16:36:52 +00:00
Nicolas Martin 00a0b5fd31 USB IDs updates in imageClass backend (pixma), by Dennis Lou. 2008-05-07 06:52:24 +00:00
Jochen Eisinger 30342e4b07 2008-05-07 Jochen Eisinger <jochen@penguin-breeder.org>
* doc/sane-mustek_pp.conf: fix catman warning. Reported by
	  Raymond Chen.
2008-05-07 06:35:51 +00:00
Earle F. Philhower III 4c59244e0c Update sm3840 document and remove 64-bit compiler warnings 2008-05-07 01:38:30 +00:00
Stéphane Voltz 1eb416ba47 - description update for untested HP4400 model
- 150 dpi mode fix for HP4470 models sold with XPA
2008-05-06 20:00:32 +00:00
Nicolas Martin 3f86915941 Description and man updates for PIXMA MX300. 2008-05-05 21:20:50 +00:00
Nicolas Martin ef94a44afb Code cleanup patch to imageClass backend (pixma) by Dennis Lou. 2008-05-04 17:35:00 +00:00
Julien BLACHE 4daf488f4a Replace occurrences of SANE_STATUS_SUCCESS with SANE_STATUS_GOOD. 2008-05-03 16:57:32 +00:00
Julien BLACHE 89b77cef58 Initialize s->fd to -1 once the struct Epson_Scanner is allocated and zeroed
out in attach(). Otherwise the backend sends inquiry data to fd 0, which it
obviously shouldn't do; this breaks scanning over saned.

Thanks to Giuseppe Sacco who experienced the issue and pointed to epson2 as
the probable cause.
2008-05-03 14:43:07 +00:00
m. allan noah 8c2f857f39 backend v1.0.12: fix double free error 2008-04-29 00:57:26 +00:00
m. allan noah deafc44600 sanei/sanei_usb.c: allow sanei_usb_init() to run once per second
backend/fujitsu.c: backend v1.0.60, relocate call to sanei_usb_init(),          free sane_devArray before calloc'ing a new one
2008-04-28 00:48:48 +00:00
m. allan noah 16f5a83f8d fujitsu: support new fi-6x20
epjitsu: mention new S300M
2008-04-23 01:55:34 +00:00
Nicolas Martin 7b695e1c8e Update pixma backend for Grayscale scan for MP970 (tested), and probably other CCD sensor MPs (yet untested). 2008-04-22 19:28:18 +00:00
Nicolas Martin 9a70825259 pixma backend update for Canon ImageCLASS series MFPs, and bug fix for ADF / ADF Duplex selection. 2008-04-21 19:40:12 +00:00
m. allan noah b1bfdd9460 remove duplicate #define SANE_FRAME_JPEG 2008-04-20 12:35:14 +00:00
m. allan noah 39458249b5 backend version 1.0.58:
- page code 32 is not color interlacing, rename to 'unknown'
- increase number of bytes in response buffer of init_ms()
- protect debug modification code in init_ms() if NDEBUG is set
- proper async sane_cancel support
- re-enable JPEG support
- replace s->img_count with s->side
- sane_get_parameters(): dont round up larger than current paper size
- sane_start() rewritten, shorter, more clear
- return values are SANE_Status, not int
- hide unused functions
2008-04-20 01:31:29 +00:00
Alessandro Zummo e16b0e2051 backend/epson2.c: fixed attach() error path. 2008-04-18 21:24:32 +00:00
Nicolas Martin 983e8c0eeb Update for MP970 (yet for color scan, all resolutions) and bug fix for MP220 at 1200 dpi (reported to work OK) 2008-04-15 21:27:34 +00:00
Julien BLACHE 57bfede65b Plug an information leak in the net backend.
When sending out a SANE_NET_CONTROL_OPTION RPC for the SANE_ACTION_GET_VALUE
action (and SANE_ACTION_SET_AUTO for the network protocol versions < 3), the
backend was not clearing the memory area for the value argument before
sending it over the network, resulting in an information leak for the
SANE_ACTION_GET_VALUE case.
2008-04-13 14:44:20 +00:00
Julien BLACHE fde1551f68 Fix typo. 2008-04-13 14:21:59 +00:00
Mattias Ellert 8212474cfa c&p error 2008-04-12 18:49:25 +00:00
Mattias Ellert 8196a0f471 Format warning fixes, man page fixes 2008-04-12 17:49:49 +00:00
Julien BLACHE f4ff1b74f6 Add mDNS DNS-SD support to saned and the net backend so they can announce
and discover each other automatically.

Optional at configure time, requires Avahi >= 0.6.4.
2008-04-11 17:18:19 +00:00
Julien BLACHE 90a1c88e0d saned can now drop privileges when running in standalone mode. 2008-04-10 16:55:36 +00:00
Julien BLACHE cbb3833dbe Add a PID file. 2008-04-10 16:39:06 +00:00
Julien BLACHE ce7efefec7 Replace daemon() with an open-coded equivalent. 2008-04-10 16:31:17 +00:00
Nicolas Martin 67ebd9576c Modifications for PIXMA MP970, to manage CCD sensor with PIXMA generation 3 protocol. To be tested. 2008-04-06 19:46:15 +00:00
Julien BLACHE 9c6fea1943 Add standalone daemon mode, building upon the AF-indep/IPv6 debug mode.
Reorganize code by splitting the main() function into a series of functions.
Factorize common code between the old network code and the AF-indep code. There's now only one version of main().
2008-04-06 15:21:47 +00:00
Stéphane Voltz 79fbd0c2f1 - added OPT_CUSTOM_GAMMA and OPT_GAMMA_VECTOR* options for GL646
- fixed allocation bugs detected by valgrind
	- fixed bugs detected by 'tstbackend -r 1 -l 1'
	- allow 'genesys' as default value for backend opening
	- made OPT_COLOR_FILTER effectively work for GL646 scanners
	- split sane_control_options() to make it more readable
2008-04-05 09:21:56 +00:00
Stéphane Voltz 0239a8344a - split sane_control_option to make it more readable 2008-04-05 09:11:47 +00:00
Nicolas Martin d9d44cbe72 Added a tempo before failing in NO PAPER in ADF scan, declared MX850, changed MP970 to Generation 3. 2008-04-02 20:13:48 +00:00
Julien BLACHE 95f01b7244 HAL 0.5.11-rc2 does not support the info.bus property anymore; superseded by
info.subsystem. Unfortunately, this is not backward-compatible, so add a new
"hal-new" mode to sane-desc.
2008-03-28 20:57:59 +00:00
Julien BLACHE 8ed0d66582 Do not blindly use ftok() in snapscani_mutex_open(). Compute an IPC key based
on the product ID, bus number and device number for libusb devices; fallback
to ftok() otherwise and check the return value.
2008-03-28 20:39:02 +00:00
m. allan noah 1ee8fa1d8f add usleep to improve usb performance, from jim a t meyering d o t net 2008-03-28 14:37:36 +00:00
m. allan noah 127c77c1e5 add class 6 to usb detection code, fix scsi detection bug 2008-03-28 14:13:23 +00:00
Stéphane Voltz b85ec879da - rts8891 backend inclusion 2008-03-22 14:33:36 +00:00
Julien BLACHE 5ba1b2b917 Fix messages around getservbyname() in the IPv4 code to mention "sane-port" instead of "sane". 2008-03-20 21:47:14 +00:00
Julien BLACHE 59e7f02026 Remove _stdint.h and byteorder.h in the distclean target. 2008-03-20 21:14:04 +00:00
Nicolas Martin 52ec47a434 Added Canon PIXMA MX700, declared MX300 and MX310, and updated some descriptions. 2008-03-16 16:33:53 +00:00
Julien BLACHE c394bbb726 Fix typo in sanei_usb.h. 2008-03-15 14:57:51 +00:00
Stéphane Voltz 5be6af9c72 - removed scanners supported by the lexmark backend from
unsupported.desc
	- umax_pp small copyright refresh
2008-03-02 15:01:13 +00:00