Wykres commitów

15 Commity (ba10bb37cd32d3aae858651f670a89c17b9d311b)

Autor SHA1 Wiadomość Data
Nicolas Martin 92c44e905a pixma backend: few maintenance modifications.
- backend/pixma_bjnp.c:  print size_t values as %ld or %lx with cast to unsigned long
                         as prescribed in the file doc/backend_writing.txt, to avoid
                         compile warnings.
- backend/pixma_mp730.c: removed unused debug code.
2009-09-27 12:29:57 +02:00
Louis Lagendijk d214d08f1b 2009-03-06 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* backend/pixma_bjnp.c
        - silenced some debug statements during scanner detections
        - increased timeouts to 20 seconds as 10 seconds is apparently
        - not enough for the combination of a Mac and an MX850.
2009-03-31 19:07:26 +00:00
Louis Lagendijk 0086173dd3 2009-03-06 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* backend/pixma_bjnp.c backend/pixma_bjnp.h
        backend/pixma_bjnp_private.h backend/pixma_io_sanei.c:
        Make bjnp protocol more resilient against packet loss and corruption
        Changed timeout for all responses to be at least 10 seconds
        Send all broadcasts for scanner detection 5 times
        Made sure scanners are added to device list only once
        Changed device-id for bjnp so it uses scanner hostname/ip-address
        instead of mac address as this is more human friendly.
        To make room, use scanner model instead of USB-id (which is bogus
        for network scanners
2009-03-17 19:29:39 +00:00
Chris Bagwell b52b0c0c14 * backend/epson2.c backend/pixma_bjnp.c, include/sane/sanei_backend.h,
sanei/sanei_tcp.c, sanie/sanei_udp.c: Improve portablity by
  removing usage of MSG_WAITALL since not all platforms support
  that (cygwin).  Default is to be blocking anyways.  Changed
  usage of MSG_NOTWAIT to use fcntl() function as needed as well.
  * configure.in, lib/Makefile.in, lib/strcasestr.c: Add internal
  strcasestr() for platforms missing it (cygwin).
  * pixma_common.c: My source match header prototype for picky
  compilers (cygwin).
  * backend/umax_pp_mid.c: Allow BACKEND_NAME to be filename
  yet debug to be SANE_DEBUG_UMAX_PP to match man page.
2009-01-29 15:10:19 +00:00
Louis Lagendijk 9d7a8353b6 2009-01-27 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* backend/pixma_bjnp.c: fixed bug that caused scanner discovery to
        fail when it encountered a point to point link (check data returned
        by getifaddrs()
2009-01-27 20:13:11 +00:00
Louis Lagendijk 1b57825ef3 2009-01-13 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* backend/pixma_bjnp.c: send broadcasts from bjnp port to make
        firewalling easier
2009-01-13 22:00:32 +00:00
Louis Lagendijk 93daeb670f replaced getlogin/getenv by getpwuid(geteuid) as suggested by ulien BLACHE 2008-12-06 18:38:44 +00:00
Louis Lagendijk e9ede962ee backend/pixma_bjnp.c pixma_bjnp_private.h
On Ubuntu getlogin() returns NULL. So we noew first try getlogin()
and if that fails, we try getenv("USER") and if that fails we use
a defaul user string
2008-12-06 16:25:17 +00:00
Louis Lagendijk a1f9143a41 2008-10-31 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* Pixma backend (pixma.c/pixma_common.c/pixma_io_sanei.c/pixma_bjnp.c)
          bjnp tcp connection is now de-activated after initialization and
          re-activated at start of scanning. If we do not do this, the scanner
          closes its side of the connection after 30 secods of inactivity.
          Added a maximum to the retry of slect calls when signals are
          received
          Added blocksize detection for tcp read_bulk call
2008-11-05 20:53:30 +00:00
Louis Lagendijk ab53b7e884 2008-10-31 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* backend/pixma_bjnp.c corrected small typo
2008-10-31 22:57:33 +00:00
Louis Lagendijk 18ce7b4e0f 2008-10-31 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* backend/pixma_bjnp.c
           Added retry to select() calls when they get interrupted by a
           signal. This solves problems in xsane after a first scan completed.
           There is still an issue that scanner closes tcp connection after
           30 seconds of inactivity
           backend/pixma_bjnp.c backend/bjnp_private.h
           Marked local functions as static and removed them from ..private.h
2008-10-31 20:32:30 +00:00
Louis Lagendijk 69c9248356 2008-10-25 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* Added configuration  file support for pixma backend
        Currently used only for configuration of network scanners.
2008-10-25 14:56:11 +00:00
Louis Lagendijk 1b5f65b930 2008-10-21 Louis Lagendijk <llagendijk-guest at users.alioth.debian.org>
* Added #ifdef around defintions of MIN and MAX in pixma_common.h
        - Re-enable includes in pixma_bjnp.c as they are needed on Freebsd
        - Replaced getaddrinfo by gethostbyname in pixma_bjnp.c as this is
          supported on OS/2 as well
2008-10-21 21:37:34 +00:00
Nicolas Martin f573865c33 ifaddrs.h header check and increase backend version number 2008-10-18 22:26:57 +00:00
Nicolas Martin 391a6b4549 Added Canon's BJNP network protocol support, fix an ADF issue, updated doc and headers 2008-10-14 19:48:59 +00:00