Commit Graph

244 Commits

Author SHA1 Message Date
Solomon Peachy f79500986f misc: Shut up a large pile of compile warnings with pedantic compilers 2020-03-24 18:23:00 -04:00
Solomon Peachy 0a9c45bd25 misc: Fix an error that pops up with very pedantic compiles. 2020-03-24 17:48:52 -04:00
Solomon Peachy 618343d85a common: Now works under Windows!
* Run-time error message for missing generic usb driver
  * Update readme to document what steps are needed
2020-03-18 14:05:04 -04:00
Solomon Peachy 913af03b57 misc: Update copyright year in the program output.
(File headers were correct, but interactive use was wrong..)
2020-03-03 18:48:33 -05:00
Solomon Peachy 4c5e93811e misc: Fix a small pile of static analysis problems 2020-03-03 00:16:05 -05:00
Solomon Peachy 494a188f1a common: Allow CORRTABLE_PATH to be overrided at runtime. 2020-02-16 16:20:47 -05:00
Solomon Peachy 81b78aa17c common: Fix probing when you don't specify a unique model.
(whoops!)
2020-02-11 21:33:58 -05:00
Solomon Peachy 4666ecaf94 common: Log the page parse after we increment the page number 2020-02-11 16:53:29 -05:00
Solomon Peachy 697486b467 All: Leave the "prefix" list for family or backwards-compatible names only.
...use the name in the DEVICE entry for backend matches!
2020-01-30 22:08:55 -05:00
Solomon Peachy 3eb2903def common: Backend name can now restrict printers we match against.
BACKEND=dnpds40  ./dyesub_backend -s

     will return the results for the first printer in the family

  BACKEND=dnp-ds620 ./dyesub_backend -s

     will return the results for the first printer of this specific type

(This doesn't work universally; most notably for models that share
 the same VID/PID)
2020-01-30 19:53:48 -05:00
Solomon Peachy a42576e326 misc: Clean up some of the problems compiling for Windows with mingw
Major remaining tasks:

  * Forcing Non-blocking I/O
  * dynamic library loading (eg dlopen or ltdl)
  * Final linking
2020-01-25 07:15:02 -05:00
Solomon Peachy dba0189792 common: Move the "Parsed page" message earlier. 2020-01-21 22:46:31 -05:00
Solomon Peachy 1b8553a710 Common: Log successful job combinings. 2020-01-21 22:19:36 -05:00
Solomon Peachy 552a3f030a common: Tweak the page number displayed when printing. 2020-01-21 22:16:50 -05:00
Solomon Peachy a111a2559d Common: Major rejiggering of print job combining
* Decision logic for combining jobs is global, with a per-backend
   combine_job() call for the nitty-gritty
 * Job combining code now handles multipage jobs as well as
   multiple copies of a given page
 * Will attempt to batch multipage jobs
 * Automatically invoked every time a job is appended to a joblist
 * Only used by DNP and Mitsu D70 backends (so far)
2020-01-21 21:48:57 -05:00
Solomon Peachy 626a49f05d Misc: Update address for FSF.
Also fix the copyright year for a few files.
2020-01-17 16:50:56 -05:00
Solomon Peachy af4fde17e0 common: Fix packed_bcd_to_uint32() computation. 2020-01-16 08:04:05 -05:00
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