Commit graph

25 commits

Author SHA1 Message Date
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 65d1c5461d s6245/s1245: Fix a pile of warnings found by clang-analyzer 2015-07-04 11:01:10 -04:00
Solomon Peachy cd03e9a22f misc: Fix some unitialized variable warnings that show up with -Os 2015-07-04 10:12:57 -04:00
Solomon Peachy 5ce4b691e3 s1245/6245: Fix some buffer overflows. 2015-07-04 09:38:59 -04:00
Solomon Peachy 992e551a02 all: Fix command like parsing when the argument has an option.
This was a longstanding bug.  Oops.
2015-06-30 21:33:02 -04:00
Solomon Peachy 24c3550feb all: Ensure all malloc() failures are caught and logged. 2015-06-23 20:48:52 -04:00
Solomon Peachy d39837bf2f s1245: Whitespace fixes. 2015-05-14 18:08:59 -04:00
Solomon Peachy e3843ab52d s1245: Fix use of 'switch' instead of 'if'
...oops.
2015-05-14 18:08:33 -04:00
Solomon Peachy 5863e7bd30 Docs: Note that Sinfonia provided documentation for the s1245. Thank you! 2015-02-21 10:53:53 -05:00
Solomon Peachy dece0d8975 s1245: Textual descriptions of tone curves. 2015-02-19 21:32:43 -05:00
Solomon Peachy 97112f91a4 s1245: Only set matte intensity if the printer's stored value is different. 2015-02-18 21:20:59 -05:00
Solomon Peachy d198f0493b s1245: We can't set the matte intensity if we have a print in progress.
Ideally we could query the existing state, and only update if it
changed.
2015-02-18 21:14:00 -05:00
Solomon Peachy 0e39bf9ee4 s1245: Set the matte intensity when performing a matte print. 2015-02-18 21:07:50 -05:00
Solomon Peachy 87bc69642c s1245: Add tone curve support. 2015-02-18 21:00:32 -05:00
Solomon Peachy c9ab39eff8 s1245: Flesh out error reporting and handlig around the main print routine.
...It's ready for testing now, I think.  Any volunteers?
2015-02-10 22:39:18 -05:00
Solomon Peachy 8ac7aba333 s1245: Initial print command implemented. 2015-02-09 21:46:25 -05:00
Solomon Peachy 4a34c4e740 s1245: Implement the canceljob command.
All that's left is the actual printing.  And testing all of this on a
real printer.
2015-02-08 20:34:30 -05:00
Solomon Peachy 06320b61db s1245: Add support for querying and setting the user string.
...AKA the "serial number" we need to report to CUPS.
2015-02-08 20:19:44 -05:00
Solomon Peachy 5661725a3b s1245: Add media query support, and start fleshing out the main loop. 2015-02-08 19:50:22 -05:00
Solomon Peachy 2c69ca34dc s1245: Add printer status command. 2015-02-08 18:59:26 -05:00
Solomon Peachy 9049231db1 s1245: Fleshing out structure definitions.
Next up:  query status, parsing status, etc.
2015-02-08 15:33:17 -05:00
Solomon Peachy 261a86f0b6 s1245: Data structures
Still need to define flags and whatnot.
2015-02-08 13:17:33 -05: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