Wykres commitów

17 Commity (05ed63fa34edd1e3c842b996f85d554bee8d8df1)

Autor SHA1 Wiadomość Data
Olaf Meeuwissen 797cd1fb37 epson2, epsonds, kodakaio, magicolor: Don't set invalid value
If the value to be set is not valid, it should not change the sval
structure (even if doing so has no negative side effects).

This also makes the fallthrough less confusing by removing the first
cast of two for the br-x and br-y values.
2019-08-11 10:04:19 +09:00
Povilas Kanapickas e40596c2a5 Fix -Wimplicit-fallthrough warnings by adding standard annotations 2019-06-30 11:58:32 +03:00
Olaf Meeuwissen e04261673f magicolor: Fix [-Wmisleading-indentation] compiler warning
The assumption is that the failure should be returned to the caller.
2017-06-26 17:57:14 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
Olaf Meeuwissen 4eaefe4371 magicolor: fix [-Werror] compiler warning
This casts away const-ness in the hope that libsnmp doesn't change
the session.peername.
2016-08-28 15:27:50 +09:00
Olaf Meeuwissen 31ac0db736 magicolor: fix [-Werror=pointer-sign] compiler warnings
The libsnmp API requires a u_char *session.community :-(
2016-08-28 15:25:43 +09:00
Olaf Meeuwissen 26aa8b52f6 magicolor: fix [-Wunused-function] compiler warning
This function is only used when SNMP support is activated.
2015-12-27 18:41:44 +09:00
Olaf Meeuwissen 292dd42bb6 magicolor: fix [-Wunused-but-set-variable] compiler warning 2015-12-27 18:38:50 +09:00
Eduard - Gabriel Munteanu ac1bf8d754 magicolor: add support for magicolor 4690MF
Currently, this works for USB, but the network OID needs to be
filled in properly.

Signed-off-by: Eduard - Gabriel Munteanu <edgmnt@gmail.com>
2015-09-19 12:02:57 -04:00
Eduard - Gabriel Munteanu afd22f7722 magicolor: complete support for duplex ADF
This is needed to fully-support scanners like magicolor 4960MF.

Signed-off-by: Eduard - Gabriel Munteanu <edgmnt@gmail.com>
2015-09-19 12:02:57 -04:00
Eduard - Gabriel Munteanu d0c3b22d7d magicolor: fix USB device detection
Only the generic device was being picked.

Signed-off-by: Eduard - Gabriel Munteanu <edgmnt@gmail.com>
2015-09-19 12:02:57 -04:00
Chris Bagwell 2c4b1da0bf add FreeBSD Port's patches
epson2-commands.c: Include <sys/types.h> to resolve u_long.
epson2.c, magicolor.c, xerox_mfp-tcp.c: Include <sys/types.h>
and to <sys/socket.h> for anyone using setsockopt().
sanei_tcp.h: Include <sys/types.h> since ssize_t is referenced.
sanei_usb.c: Newer FreeBSD version checks.

All changes in this patch set come from FreeBSD ports patches.
Bug #312503.
2011-11-20 20:08:15 -06:00
Reinhold Kainhofer b0058051f0 Magicolor: Fix SNMP detection with multiple snmp agents in the network.
So far, the snmp detection would stop working after the first response, because libsnmp
haved like that if we return 1 in the callback. Since we want multiple responses to one
broadcast query, we don't tell libsnmp that the response has answered our query.
As a drawback, libsnmp will send the same query in 1-second-intervals, and each device
will answer again. So, we have to keep a list of all devices already detected.
2011-09-19 19:28:59 +02:00
Reinhold Kainhofer e7532c03c5 magicolor: Get rid of the byteorder macros, copy the bytes manually to/from little endian
This also fixes some compiler error on 64-bit systems
2011-01-25 21:25:00 +01:00
Reinhold Kainhofer f054a4e8ee magicolor: cast size_t arguments to unsigned long for debug output and use the %lu format 2011-01-20 21:23:51 +01:00
Reinhold Kainhofer 2d9f458992 magicolor: Get rid of compiler warning 2011-01-20 21:23:51 +01:00
Reinhold Kainhofer 6a7888ef26 New backend: magicolor (for KONICA MINOLTA magicolor devices)
-) LAN and USB communication
-) SNMP LAN auto-detection (using libsnmp, added configure check!)
-) Based on the epson2 backend, with many structural changes
-) B/W, Gray, Color scanning works in 150/300/600dpi (full-page
   color scan only possible with <=300dpi)

-) The timeouts (SNMP, scan data, other data) are configurable in the
   magicolor.conf file

-) Keeps list of known scanners in sane_get_devices, does not destroy
   existing handles; Also correctly calls sanei_usb_init.
2011-01-15 22:10:34 +01:00