Commit graph

51 commits

Author SHA1 Message Date
Solomon Peachy 827c6965c5 Common: Get rid of the -S, -V, -P, -T options.
They won't work until after we attach to the backend, but we need them
before we attach.  Rely on the environment variables instead.
2016-07-14 21:42:28 -04:00
Solomon Peachy 52e4b827cd whitspace cleanups. 2016-01-24 16:59:56 -05: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 f578422aa7 mitsu70x: Add support for the printers' data tables
Nothing is done with them yet, but I hope to change that.
2016-01-19 17:40:22 -05:00
Solomon Peachy 9d3ee7b3b5 s6145: Add in some missing bits.
...Unknown if they all work or not.
2015-12-17 21:50:47 -05:00
Solomon Peachy eb053ceb1a common: Export current page to backends. 2015-08-29 08:24:54 -04:00
Solomon Peachy 2a0f680ac6 dnpds40: Add queries for Duplexer FW version, counter, and status. 2015-08-28 19:30:16 -04:00
Solomon Peachy 535d0efea0 dnpds40: Add an early attempt to query DS80D duplexer status.
And it doesn't work on a DS80 at all, so further DS80D work will have to
wait.
2015-08-26 22:54:18 -04:00
Solomon Peachy 82ea661415 common: move uint16_to_packed_bcd() into common code. 2015-08-25 18:09:24 -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 f67a8f8ea5 common: Eliminate early_parse() from backend.
only canonselphy used it.  This also showed that extra_vid/pid was broken.
2015-08-12 22:51:45 -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 9b3f7cbb66 s6245: Add a preliminary backend for the Shinko S6245 2015-07-02 23:32:16 -04:00
Solomon Peachy 7edbf0239c misc: add DNP DS620 and RX1 to distinct printer types.
They are subtly different than each other, and the DS40.
2015-06-13 17:22:02 -04:00
Solomon Peachy dc7ba45fe2 s1245: Create a new backend for the Shinko s1245.
Shinko S1245 uses a different command language as the other Shinko
models, so it's not going to share much commonality with the 2145
backend.
2015-02-08 12:11:16 -05:00
Solomon Peachy b731dc04f8 Update copyright notice. 2015-01-05 21:39:22 -05:00
Solomon Peachy da5ae0e152 mitsu9550: Initial WIP of the Mitsubishi CP-9550DW-S backend.
Just committing it so I don't lose it.
2014-12-11 16:16:56 -05:00
Solomon Peachy 8b4e68c231 S2145: Add an early_parse method, so we can figure out what printer type
a given job is meant for -- the s2145 and s1245 have to be handled
differently.

(As an aside, the early_parse stuff is only really relevant if you're
using the backend in a standalone mode with multiple printers of the
same backend hooked up...)
2014-11-15 08:32:47 -05:00
Solomon Peachy 8d05fbb67f cw01: Initial support for the Citizen CW-01 printers 2014-10-06 21:56:55 -04:00
Solomon Peachy 673bc98653 sonyupdr150: Initial support for the UP-DR10.
Incomplete, and gutenprint proper still lacks support.
2014-04-25 11:39:15 -04:00
Solomon Peachy 12d05eccba common: Replicate CUPS return codes.
General philosophy:

 OK      (self explanatory)
 FAILED   general failures (eg unexpected printer response)
 HOLD     wrong-media-loaded and other job-specific failures
 STOP     printer out of media, or other non-job-specific failures
 CANCEL   job failed to load or parse
 RETRY    temporary failure, retry later
 RETRY_CURRENT temp failure, retry immediately
2014-04-20 11:05:27 -04:00
Solomon Peachy d64ec1cc36 Use proper pkgconfig libusb stuff. 2014-02-23 22:57:22 -05:00
Solomon Peachy fbfe2a5884 common: Fix build on Big Endian systems. Patch by Dimitri John Ledkov. 2014-02-19 13:28:17 -05:00
Solomon Peachy d7db0bbdbe Massive overhaul of command line handling.
Completely untested with real printers.

That happens tonight!  :)
2014-02-10 20:10:36 -05:00
Solomon Peachy 2e3cf70dba common: Re-add the libusb < 1.0.13 workarounds.
It comes with a GIANT WARNING if you are affected by the workaround.
2014-02-08 18:41:29 -05:00
Solomon Peachy a359fa17c4 canonselphy: Split the CP790 and ES40 handling apart.
They share nothing beyond a common spool file format:
  * Different readbacks (though the necessary parts are unique)
  * Different error codes
  * Different media reporting system and identifiers
2014-02-08 14:45:55 -05:00
Solomon Peachy 34e3b64fc4 all: Get rid of the now-obsolete 'multipage_capable' flag. 2014-01-30 21:37:07 -05:00
Solomon Peachy 6c335ea1e4 Update copyright notice; it's 2014 now! 2014-01-23 16:07:25 -05:00
Solomon Peachy dfbac582bc common: Add a driver entry for multipage capability. 2014-01-17 22:49:13 -05:00
Solomon Peachy 766ca01f0d whitespace fixes. 2014-01-12 17:26:29 -05:00
Solomon Peachy db65d25feb common: Add a generic read_data() call. 2013-12-21 22:39:15 -05:00
Solomon Peachy 875ebd2d76 all: Silence nearly all DEBUG outputs unless DYESUB_DEBUG is set in the
environment.
2013-12-21 22:15:18 -05:00
Solomon Peachy ccf44058ab dsp_ds40: Initial pass at a backend.
As far as a backend is concerned, it's just a passthrough.  However, it
has command-line options.
2013-12-03 22:21:44 -05:00
Solomon Peachy 9201105c66 all: Fixed all compiler warnings. 2013-11-23 19:51:55 -05:00
Solomon Peachy 97ce8262b7 common: It helps to include the kodak605 backend. 2013-11-21 22:04:48 -05:00
Solomon Peachy ee9ca87e8e kodak605: Add an initial implementation of a Kodak 605 backend 2013-11-20 21:33:46 -05:00
Solomon Peachy 3d6021d59a mitsu70x: Add an experimental backend for the Mitsubishi CP-D70x series.
This as of yet untested, but guinea pigs welcome.
2013-10-05 09:55:29 -04:00
Solomon Peachy 7a7bdf9fab all: Update URL to the public git repo. 2013-08-20 20:10:21 -04:00
Solomon Peachy 1572041513 kodak6800: Add unique ID for Kodak 6850 printer. 2013-07-25 15:51:45 -04:00
Solomon Peachy 051cf386b5 common: Claim the device before calling the backend's query_serno() call. 2013-07-24 20:54:14 -04:00
Solomon Peachy b7851a3df1 common: Add support for a backend-specific serno call.
(Nothing uses it just yet)
2013-07-24 13:49:06 -04:00
Solomon Peachy a7a75cb7c9 common: add an 'early_parse' backend hook
Also fix 'query_only' usage to properly bypass the open/read.
2013-07-19 10:13:35 -04:00
Solomon Peachy 660cd2f3b0 all: split apart backend init into separate init/attach calls.
Also fixed every backend, 'dev' wasn't being set properly.
2013-07-19 09:23:53 -04:00
Solomon Peachy 2730a145d4 all: Move USB device IDs into respective backends.
This is also untested.
2013-07-18 23:39:36 -04:00
Solomon Peachy 1e0f679eb4 selphy: Final backend migrated to new unified model.
None of this has been tested!
2013-07-18 23:00:58 -04:00
Solomon Peachy 060b6763fb s2145: Migrate to new unified backend.
UNTESTED.
2013-07-18 22:10:56 -04:00
Solomon Peachy d20f1e2049 kodak1400: Merge into new multi-call paradigm. 2013-07-18 21:05:33 -04:00
Solomon Peachy b038aa71c1 kodak6800: 75% of new backend migration completed. Main loop is all that's left. 2013-07-18 18:03:40 -04:00