Solomon Peachy
24c3550feb
all: Ensure all malloc() failures are caught and logged.
8 years ago
Solomon Peachy
c8aa3c47da
shinkos2145: Update backend with a complete list of all error codes.
8 years ago
Solomon Peachy
04d1bbff04
s2145: One more 1245 reference removed.
8 years ago
Solomon Peachy
f7d2f6e764
s2145: Minor improvements:
...
* Don't issue a media query on every state machine loop
* Upon receiving a printer error, just abort.
* When waiting for a state change, don't run the state machine.
* Consolidate error detection into the main status query
8 years ago
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.
8 years ago
Solomon Peachy
91631651bc
shinko2145: Make it work again.
...
1) early_parse returning bogus codes
2) media query in main loop sending wrong command
3) printer type in early_parse printed incorrectly
8 years ago
Solomon Peachy
7a7d14687b
shinkos2145: Add info on the Brava 21
8 years ago
Solomon Peachy
b731dc04f8
Update copyright notice.
8 years ago
Solomon Peachy
125a4ef832
misc: Fix up some return codes to respect CUPS_BACKEND_*
8 years ago
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...)
8 years ago
Solomon Peachy
02f84569db
Fix build bug.
9 years ago
Solomon Peachy
d66663cfdc
s2145: Documentation updates.
9 years ago
Solomon Peachy
5e2071d0ae
s2145: Work on the s6245 and 6145.
9 years ago
Solomon Peachy
895b723ae5
s2145: Add initial support for the S1245 model.
...
With any luck, it'll acutally work.
9 years ago
Solomon Peachy
e9981107b7
s2145: We know the s1245 USB VID/PID.
...
Now whether or not it acutally *works*...
9 years ago
Solomon Peachy
e9958c39d8
s2145: use CUPS_BACKEND_*
9 years ago
Solomon Peachy
7edb9f1c67
s2145: Check print job against printer supported type, and abort
...
cleanly if the wrong media is loaded.
9 years ago
Solomon Peachy
1faa032ea6
backends: Revamp cmdline args so you can specify multiple backend args at once.
9 years ago
Solomon Peachy
825b82ef61
shinkos2145: fast return needed tweaking.
9 years ago
Solomon Peachy
5f8780cc3c
More cppcheck-driven fixes. Mainly a bunch of memory leaks.
9 years ago
Solomon Peachy
8578561d38
shinkos2145: Fix return code for button enable/disable cmd.
...
Not that this seems to do anything. Strange.
9 years ago
Solomon Peachy
d7db0bbdbe
Massive overhaul of command line handling.
...
Completely untested with real printers.
That happens tonight! :)
9 years ago
Solomon Peachy
34e3b64fc4
all: Get rid of the now-obsolete 'multipage_capable' flag.
9 years ago
Solomon Peachy
6c335ea1e4
Update copyright notice; it's 2014 now!
9 years ago
Solomon Peachy
6acc8b553c
backends: say "## copies remaining" to differentiate between pages.
9 years ago
Solomon Peachy
4aa050f695
backends: Fix a double-free error in all backends.
...
Since we always call read_parse() we always free the data buffers. Make
sure we set them to NULL or we will try to double-free them when we
terminate normally.
9 years ago
Solomon Peachy
2eb20f90f4
backends: A 0-length read when doing our inital header load is
...
and EOF, so treat it as such and don't error out.
9 years ago
Solomon Peachy
d7d60b7191
backends: Enhance to add multipage capabilities.
...
DNP ds40/ds80 and Sony UP-DR150/200 backends do NOT support this yet.
Next up is to commit the core.
9 years ago
Solomon Peachy
817b6b04fc
all: Handle short reads when loading in initial printjob header.
9 years ago
Solomon Peachy
1888254860
all: Move to using the common read_data() instead of direct libusb functions.
9 years ago
Solomon Peachy
875ebd2d76
all: Silence nearly all DEBUG outputs unless DYESUB_DEBUG is set in the
...
environment.
9 years ago
Solomon Peachy
5d58950293
shinko_s2145: Whitespace.
9 years ago
Solomon Peachy
3d434dc96e
misc: open() with O_CREAT requires a MODE argument.
9 years ago
Solomon Peachy
be8eec4f2d
common: Return better CUPS error codes, and document them.
10 years ago
Solomon Peachy
294018b7ed
s2145: Log when fast return is active.
10 years ago
Solomon Peachy
140f9ecf42
s2145: Enable a 'fast return' mode
...
This terminates the backend as soon as the printer acks the print job,
allowing the use of both printer bufers.
10 years ago
Solomon Peachy
7a7bdf9fab
all: Update URL to the public git repo.
10 years ago
Solomon Peachy
1deb5ca1b3
s2145: Clean up calling conventions of s2145_do_cmd()
...
Instead of passing dev, endp_up, endp_down, just pass the ctx that has
everything in it already.
10 years ago
Solomon Peachy
b81f6735ac
s2145: Minor documentation cleanups.
10 years ago
Solomon Peachy
36404817e7
common: Rename everything consistently.
10 years ago