Commit Graph

200 Commits

Author SHA1 Message Date
Solomon Peachy 0b06a28cdd common: Forgot to bump the version. 2019-05-17 07:21:58 -04:00
Solomon Peachy bed955d1ce common: Introduce the concept of collation. 2019-05-12 11:46:41 -04:00
Solomon Peachy 701e6a45a2 misc: Fix up a small pile of bugs found via static analysis. 2019-05-07 11:02:30 -04:00
Solomon Peachy fe2cbc587c sonyupdneo: Add WIP backend for newer Sony printers
Covers these models:

 * UP-DR80MD
 * UP-CR20SL
 * UP-D898 / UP-X898

Includes sample files generated by Windows drivers.  Note that I do not
have USB VID/PIDs for any these models, and the post-parsing code has
not been tested.
2019-04-17 13:58:42 -04:00
Solomon Peachy 8ab1bcf2d3 sony: rename backend from 'sonyupr150' to 'sonyupd'
No functional change, as all old aliases remain!
2019-03-23 15:08:58 -04:00
Solomon Peachy c00ca95af7 common: Minor tweak to error message. 2019-02-20 12:50:05 -05:00
Solomon Peachy 188b59ce37 misc: Update copyright year on files modified in 2019. 2019-02-17 21:54:38 -05:00
Solomon Peachy 295a921747 common: rename dyesub_read_data() to dyesub_read_file() 2019-01-13 20:09:04 -05:00
Solomon Peachy 54b253d655 common: Add a global function to read the contents of a file.
Most backends now utilize it.  The stragglers do something special.
2019-01-13 15:44:29 -05:00
Solomon Peachy 309d7c2706 common: Make interface claim code available for other uses. 2019-01-11 07:54:42 -05:00
Solomon Peachy bb9493448e common: Fixes for the IPP printer class test. 2018-11-17 15:39:48 -05:00
Solomon Peachy 9df5eba672 common: Explictly exclude IPP-over-USB interfaces. 2018-11-11 22:58:05 -05:00
Solomon Peachy de305f0c06 common: Add ability to suppress non-error messages. 2018-10-23 11:41:57 -04:00
Solomon Peachy a971dc5c62 common: fix a compile warning 2018-09-28 11:02:38 -04:00
Solomon Peachy 012fb1fe54 common: fix a potential overflow in USB fallback code. 2018-09-25 13:30:49 -04:00
Solomon Peachy 960d89ff69 Documentation update relating to the URI scheme and backend naming 2018-08-22 07:05:10 -04:00
Solomon Peachy 2a7082873c common: Switch to a new URI scheme:
old:  prefix://iManufacturer/iModel?backend=XXX&serial=YYYY
 new:  prefix://backend/serial

"prefix" is currently gutenprint53+usb
"backend" is actually a per-model designation.
"serial" is obtained from printer or 'NONE_UNKNOWN' otherwise.

Parsing old URI scheme will remain supported indefinitely, and backend
will continue to emit old URI scheme if 'OLD_URI=1' is set in the
envirionment.
2018-08-14 16:55:48 -04:00
Solomon Peachy 08438c788e common: Allow the backend read_parse to not return a job. 2018-06-30 14:15:23 -04:00
Solomon Peachy c5a8283a80 common: Support a multi-page "joblist"
Port the DNP and mitsu70x job combining code to use it.

Basically, this ensures we won't spit out any extra page copies, and is
an important stepping stone towards decoupling parsing from printing.
2018-06-20 21:50:10 -04:00
Solomon Peachy f6a77fd235 common: Don't leak the jobs in test mode. 2018-06-17 22:12:14 -04:00
Solomon Peachy fd9b38202e common: better split between parsing and printing.
parsing returns a self-contained job, which is then passed to printing
code.  No global state is modified.

mitsu 70x:
  Still need to move the image processing code to the print side.
2018-06-17 12:14:46 -04:00
Solomon Peachy 7f20623729 common: Eliminate redundant libusb inits, and clean up some return cases. 2018-05-17 20:52:59 -04:00
Solomon Peachy b0870545ba common: No longer require EXTRA_TYPE in TEST_MODE_NOATTACH
(look it up based on VID/PID)
2018-05-15 22:06:39 -04:00
Solomon Peachy bc2e54a694 common: TEST_MODE_NOATTACH still tried to query markers. 2018-05-14 15:13:47 -04:00
Solomon Peachy 7ebfa12b96 mitsud90: Add WIP backend for the Mitsubishi CP-D90DW 2018-05-12 12:15:13 -04:00
Solomon Peachy f76196b32a common: Fix test_mode 2, add enums. 2018-05-12 12:14:03 -04:00
Solomon Peachy ad03177aca common: The beginings of a test mode.
Currently only functional bit is to have it skip actual printing.

Partial implementation to have it bypass attachment is next.
2018-05-09 23:25:52 -04:00
Solomon Peachy 390c5e2bf6 all: push printer type lookup into common code. 2018-05-09 23:09:01 -04:00
Solomon Peachy 189b1099d3 common: Fix badnenss in EXTRA_VID/PID/TYPE parsing.
I obviously never tested it, because it's clearly bogus.
2018-05-09 22:29:21 -04:00
Solomon Peachy b176a1ce6c common: Fix incorrect length computation in IEEE1284 code.
(was setting the terminating NUL 2 bytes further than proper)
2018-05-01 20:36:18 -04:00
Solomon Peachy 2091835307 common: Apparently I can't count properly. 2018-04-30 05:55:42 -04:00
Solomon Peachy 03cce1efc8 common: Bugfix for marker output when printer doesn't report a max. 2018-04-29 14:06:27 -04:00
Solomon Peachy 06dbf0fa91 common: Change backend->attach API to allow status returns 2018-04-28 19:22:05 -04:00
Solomon Peachy 1e6604d05a common: Support for CUPS command stream parsing! 2018-04-28 19:22:05 -04:00
Solomon Peachy 032c7568ab common: Infrastructure for doing marker status dumps globally. 2018-04-28 19:22:02 -04:00
Solomon Peachy fa2a54d29e misc: Fix a handful of bugs identified by clang-analyze 2018-04-27 10:17:16 -04:00
Solomon Peachy c3d9a9b151 misc: Fix up a pile of cppcheck warnings.
* memory leaks in error paths
 * not checking return values in a couple of places
 * logic errors in s1245
2018-04-26 14:45:32 -04:00
Solomon Peachy 6c5a905083 common: Don't forget to call libusb_exit() where appropriate. 2018-04-17 09:30:43 -04:00
Solomon Peachy 9307aeef72 dnpds40: Add Citizen CW-01 support to the DNP/Citizen backend.
Supports the legacy spool format, but the intent is to move Gutenprint
to generating the native data stream.
2018-04-11 07:45:56 -04:00
Solomon Peachy 7939d501d7 all: Move all backend names into aliases tables.
Update all printer entries to have unique names.  As long as the USB
VID/PID is unique, each "backend" appears unique!
2018-03-16 15:35:00 -04:00
Solomon Peachy 320c84f770 common: Add support for backends to support aliases.
This also renames the reported names for mitsu9550, dnpds40, and
kodak6800 to mitsu9xxx, dnp_citizen, and kodak68x0.  Backwards
compatibility is maintained!
2018-03-16 13:35:17 -04:00
Solomon Peachy ad3409b600 It's 2018, update appropriately. 2018-02-22 06:02:49 -05:00
Solomon Peachy 0cfd77ce12 common: Use CUPS_BACKEND_RETRY for most error situations. 2018-02-16 10:34:30 -05:00
Solomon Peachy 8192578a7a common: set 'connecting-to-device' state approriately. 2018-02-16 10:17:47 -05:00
Solomon Peachy 5325aa57c5 common: Set the altsetting only if there's more than one option.
Make the errors a bit more meaningful.
2018-02-16 09:37:47 -05:00
Solomon Peachy 5f6f238458 common: Allow for a variable number of claim attempts.
This is to enable smarter retry policies.

At the moment, doing a scan means we only perform one attempt, so we
don't block if a printer is busy.  Trying to attach, on the other hand,
we still retry multiple times.

(The attach retry logic needs to be revved next..)
2018-02-16 07:38:39 -05:00
Solomon Peachy 713d48ab1b common: don't issue an altsetting if not necessary. 2018-01-09 12:42:00 -05:00
Solomon Peachy ff9f34572e Trailing whitespace fixes. 2017-11-25 10:45:51 -05:00
Solomon Peachy 5b40d2e216 All: Add 'SPDX-License-Identifier' headers to all source files.
(GPL-3.0+ for everything but the S6145 backend, which is GPL-3.0+
   with an additional permission)
2017-11-17 13:34:26 -05:00
Solomon Peachy 56cd04bd2a all: Clean up the manufacturer override field in the devices. 2017-11-08 19:19:00 -05:00