Commit Graph

93 Commits

Author SHA1 Message Date
Solomon Peachy 63384d9657 shinko: MEDIA_TYPE_* definitions are common, and unify EK68x0 + S1245 errors 2019-05-12 13:20:04 -04:00
Solomon Peachy f8122b0236 shinko: Extract more common code. 2019-05-09 12:39:18 -04:00
Solomon Peachy 16e11039c7 shinko: Start pulling out common code into one place. 2019-05-06 17:29:57 -04:00
Solomon Peachy ed8e2f18b1 shinko: Some minor cleanups.
My goal here is to eventually unify these backends.
2019-05-06 13:38:09 -04:00
Solomon Peachy ce0fa508f0 sinfonia: Common header/job parsing code for Sinfonia models.
Covers:  S2145, S6145, S6245
2019-04-28 10:34:13 -04: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 a5c243717d misc: don't duplicate fast return in backend help. 2018-10-18 13:37:11 -04:00
Solomon Peachy 2e70eca4e1 all: Revamp "backend names" to align with gutenprint model names.
Should have done this to begin with, whoops.

(All old names are retained for backwards compatibility)
2018-09-22 09:11:14 -04:00
Solomon Peachy 1854a2eb3c shinko: Add support for media forcing to all shinko models. 2018-09-21 18:20:40 -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 f27eae0acf shinko: support TEST_MODE_NOATTACH 2018-05-12 21:51:59 -04:00
Solomon Peachy 390c5e2bf6 all: push printer type lookup into common code. 2018-05-09 23:09:01 -04:00
Solomon Peachy f6445cfb4d all: Don't query the marker state at attach time
As the backend->query_marker() call will do this.
2018-04-29 14:15:54 -04:00
Solomon Peachy 5669fb3552 all: add new marker query support to backends and rejigger as needed. 2018-04-29 11:03:46 -04:00
Solomon Peachy 06dbf0fa91 common: Change backend->attach API to allow status returns 2018-04-28 19:22:05 -04:00
Solomon Peachy e99821f976 misc: Update the backend names. 2018-03-26 22:27:27 -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 ad3409b600 It's 2018, update appropriately. 2018-02-22 06:02:49 -05:00
Solomon Peachy c824c549fb all: use BACKEND_CUPS_RETRY_CURRENT for memory allocation failures. 2018-02-16 10:49:21 -05:00
Solomon Peachy 03e2d49d2f s2145: Silence a build warning.
(a call to write wasn't checking the return value)
2018-01-09 21:40:08 -05:00
Solomon Peachy d55adc475e s2145: Don't bother looing up device subtype. 2018-01-09 12:42:00 -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
Solomon Peachy 487ccc9f71 Fix up bad whitespacing. 2017-07-10 20:15:56 -04:00
Solomon Peachy 11829f2f45 Merge a pile spelling fixes from Ville Skyttä <scop@sf> 2017-05-05 08:11:04 -04:00
Solomon Peachy 182754c549 Get rid of some extra semicolons. 2016-12-15 09:37:31 -05:00
Solomon Peachy 34af66170b build: Experiment with LTO, fix some problems it uncovered. 2016-08-21 11:15:13 -04:00
Solomon Peachy ea8e0b1f35 all: Fix up a a large pile of cppcheck warnings. 2016-08-21 10:23:00 -04:00
Solomon Peachy e83b30df96 s2145: More accurate "new media" number based on our guess of media type. 2016-08-19 18:00:23 -04:00
Solomon Peachy b210c5a5c0 all: Major updates to CUPS marker reporting
* use 'ribbonWax' instead of 'ink-ribbon'  (as per RFC)
 * return media type as the 'marker' name, if known or inferrable
 * Selphy CP series gained support
 * Mitsu D70 family gained support for uppper and lower decks
2016-08-19 17:40:12 -04:00
Solomon Peachy 41f5f688f7 All: Use 'ink-ribbon' instead of 'ribbon' for the supply type. 2016-08-17 23:54:08 -04:00
Solomon Peachy fcdcc6de60 shinkos2145: Add support for CUPS marker attributes.
* Guessimate remaining ribbon into a percentage.
2016-08-17 21:42:06 -04:00
Solomon Peachy 1006665a1f s2145: Whitespace fixes. 2016-03-25 16:41:14 -04:00
Solomon Peachy 8e35e5608b all: It's 2016 now, update the copyright text.
Also, correct the initial dates for a few of the backends.
2016-01-24 09:44:19 -05:00
Solomon Peachy 1c3cfc996a all: Ensure all jobid-aware printers log the ID properly. 2016-01-20 13:40:11 -05:00
Solomon Peachy 298d7a5d6d all: Make sure the requested jobid isn't already in use! 2016-01-15 08:24:23 -05:00
Solomon Peachy 5dda0018d2 all: Get rid of a little more getopt detritus. 2015-08-25 22:47:26 -04:00
Solomon Peachy b343d56f1e all: Get rid of the remainder of the old two-stage cmdline parsing
All backend->cmdline_arg() invocations are done with intent to execute!
2015-08-24 18:49:51 -04:00
Solomon Peachy cc87cd1cc3 all: Add some print quantity range checks where we can.
Most backends don't verify against remaining media though.
2015-08-20 23:22:35 -04:00
Solomon Peachy 175f6a52d8 all: For printers that automatically generate copies, get rid of
leftover manual copy handling code.

The exception is the dnp backend, it needs do use manual copies under
some situations.
2015-08-20 23:13:52 -04:00
Solomon Peachy 71419234ef s2145: Ensure the requested print method is legal.
And get rid of some obsolete comments.
2015-08-16 21:58:14 -04:00
Solomon Peachy db0c7d8b99 all: Eliminate the multi-stage cmdline parsing.
Unfortunately this means we lose the '-B backend' method, but the
overall control flow is much, much simpler now.
2015-08-13 21:09:56 -04:00
Solomon Peachy de8a32424c all: Unified approach to extra_vid/pid/type
This required a modification to all attach() methods.

Also, fix canonselphy's parsing/attachment code.
2015-08-12 22:56:29 -04:00
Solomon Peachy 20f6d05b8a common: Rework the early cmdline argument parsing code to improve robustness
Also move fast_return out of individual backends and into common code.
2015-08-12 21:02:11 -04:00
Solomon Peachy 114202d7f5 shinko6145: Add a preliminary backend. Does NOT include library work. 2015-07-26 23:05:21 -04:00
Solomon Peachy 2181ae04b9 all: Clean up a small pile of warnings that clang-analyzer found. 2015-07-04 11:03:52 -04:00
Solomon Peachy 5fa84dc2b7 s6245: Add ability to set standby time. 2015-07-04 10:01:23 -04:00
Solomon Peachy 4489c1c0a5 misc: Clean up buffer overflows identified by cppcheck 2015-07-04 09:45:48 -04:00