Commit Graph

227 Commits

Author SHA1 Message Date
Solomon Peachy 77b7b12202 misc: version bumps 2019-12-13 19:07:13 -05:00
Solomon Peachy 78c7713578 common: Instead of "media" use "deck" instead, and each one gets status/lifetime 2019-12-13 19:02:34 -05:00
Solomon Peachy 3b962df076 common: Support for common status / media reporting query.
Outputs in text form or JSON.  See README for details.
2019-12-13 15:30:28 -05:00
Solomon Peachy 619d0dd487 common: handle blank URI envvar 2019-12-13 15:17:18 -05:00
Solomon Peachy 4007099482 common: Fix up some incorrect error handling. 2019-12-13 15:15:20 -05:00
Solomon Peachy 612b8d4114 common: Log the transmit data _before_ it is sent. 2019-12-12 12:08:06 -05:00
Solomon Peachy 1d331f940d misc: use CUPS_BACKEND_OK instead of 0 as a return value. 2019-12-12 07:15:25 -05:00
Solomon Peachy 13d62550f3 common: Add proper definitions for special CUPS marker levels.
And report STATE(media-empty) globally based on this.
2019-12-11 23:20:04 -05:00
Solomon Peachy 67f4c8afac common: Fix a long-standing bug in the joblist code.
Only triggered in test mode, resulting in bypassing parsing of
all but the first page of a job.
2019-11-14 17:03:21 -05:00
Solomon Peachy 9aebcf17dc common: Don't drop last IEEE1284 key/value if it doesn't end in ';' 2019-11-14 15:29:01 -05:00
Solomon Peachy b41803ef9e common: Pass bInterfaceNo into backend->query_serno() call
Also allow the USB iSerialNumber value to be ignored.
2019-11-06 14:18:49 -05:00
Solomon Peachy 55a9a9784a Revert "common: Log the IEEE1284 ID in DEBUG >= 2"
This reverts commit adaae4b617f2832761fc4f24f1f164567d4e81c5.

Wrong approach.
2019-11-05 16:43:38 -05:00
Solomon Peachy da4c5eb026 common: Log the IEEE1284 ID in DEBUG >= 2 2019-11-05 16:36:36 -05:00
Solomon Peachy 1fe3a6066b all: Pass the USB bInterfaceNum into the backend attach() function. 2019-11-02 09:12:30 -04:00
Solomon Peachy 0dfd40efe0 common: Make IEEE1284 ID manipulation code non-static. 2019-11-02 08:25:34 -04:00
Solomon Peachy 9c53ca8509 common: Code for forcing device config reset (disabled for now) 2019-10-04 10:20:13 -04:00
Solomon Peachy 5f34b1070f misc: Fix missing newlines in multiple error messages. 2019-10-03 20:30:35 -04:00
Solomon Peachy 62b4b2b511 common: Get rid of explicit enumeration IDs in the P_?? list.
And sort them alphabetically.
2019-09-30 18:30:39 -04:00
Solomon Peachy f8039fcb6c Only log the media type when running as a CUPS backend. 2019-09-30 18:26:05 -04:00
Solomon Peachy 57bc5bfa5c common: Corrections to the CUPS state output. 2019-09-28 16:09:19 -04:00
Solomon Peachy c1b15c1fbb all: Clean up unnecessary #include 2019-09-28 11:05:42 -04:00
Solomon Peachy 9b3ae0ed5b all: Report up the low-level media ID as a PPD attribute.
(Needs changes to Gutenprint in order to be useful...)
2019-09-28 10:54:10 -04:00
Solomon Peachy 7a08d72e09 HiTi: Add WIP backend for HiTi 520L.
There's a clear path to supporting P52x, P72x, and P750.
Other models (P51x, P11x) are viable, but will require more legwork.
Remaining models (P3xx, X610, and others) are unknowns.
2019-09-26 21:06:39 -04:00
Solomon Peachy cf4b9b0023 common: const-ify more stuff in the common code. 2019-09-04 00:21:38 -04:00
Solomon Peachy 595c3a7a84 common: ignore detach_kernel_interface returning NOT_SUPPORTED error.
(Primarily affecting Windows)
2019-09-04 00:21:19 -04:00
Solomon Peachy eb4fc21990 misc: Fix a small pile of leaks and unintialized issues. 2019-05-26 13:05:41 -04:00
Solomon Peachy 473f86b0d5 common: Use generic teardown code unless necessary. 2019-05-22 20:42:12 -04:00
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