Solomon Peachy
b5c7b5e53e
all: Move to using 'struct dyesub_job_common' in all backends
...
Should have done this a while ago. Now I can finally modify the
common job structure in just one place
2021-09-30 14:52:11 -04:00
Solomon Peachy
a396200bce
all: make "fast_return" only affect the final print in a job.
...
That way we can take advantage of printer pipelining within a job
even when fast_return is turned off.
This refactoring was also necessary for further changes in how
fast_return will work.
2021-09-30 13:55:27 -04:00
Solomon Peachy
87f3f39005
various: We used CUPS_BACKEND_HOLD instead of _STOP for some errors
2021-09-29 22:54:07 -04:00
Solomon Peachy
6ab6949279
Fix two USB PID typos.
2021-04-17 07:20:57 -04:00
Solomon Peachy
e3ab11a975
misc: Get rid of all USB_VID_*/USB_PID_* definitions
...
Directly reference the IDs in the lookup tables, like in linux-kernel
2021-04-16 21:12:54 -04:00
Solomon Peachy
139e7cf2ae
canonselphy: Extra bulletproofing.
2021-02-07 21:44:08 -05:00
Solomon Peachy
2780e94c35
canonselphy: Proper jobsize accounting.
2021-02-07 21:40:55 -05:00
Solomon Peachy
1e8e867315
canonselphy: Correct CP790 job sanity checking vs printer.
...
In the process, simplify the non-CP790 code too.
2021-02-07 21:37:44 -05:00
Solomon Peachy
4e4d0782ee
canonselphy: Fix paper code detection (again) for CP790
2021-02-07 21:27:26 -05:00
Solomon Peachy
1b8eb61923
canonselphy: Fix incorrect media type reporting for the CP790.
2021-02-07 20:32:43 -05:00
Solomon Peachy
2d8d262efc
canonselphy: Improve error logging with the CP790
2021-02-07 11:10:58 -05:00
Solomon Peachy
8a4fd56c13
Update shaftnet.org URLS from http -> https
...
Update copyright year as appropriate
2021-01-23 10:47:01 -05:00
Solomon Peachy
02a58ab7cb
canonselphy: Minor fix for printjob mismatches involving the CP790 or ES40
2021-01-13 23:00:25 -05:00
Solomon Peachy
cfe0fd8004
common: the 'dyesub_backend' structure is now const everywhere.
2020-10-05 22:27:08 -04:00
Solomon Peachy
322ad8d7b7
common: Introduce a common USB connection object, and use it!
2020-08-12 20:04:54 -04:00
Solomon Peachy
27181eda63
common: un-hardcode 'stderr' as the logging stream
...
It's now a global variable that's initialized to stderr
(This is prep work for eventual support of printing applications)
2020-08-11 12:48:38 -04:00
Solomon Peachy
6f01f362eb
misc: Bump copyright dates on files modified in 2020
2020-06-30 23:42:54 -04:00
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
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
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
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
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
1fe3a6066b
all: Pass the USB bInterfaceNum into the backend attach() function.
2019-11-02 09:12:30 -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
5c2f56cc31
Missed some files modified in 2019.
2019-06-03 19:40:45 -04:00
Solomon Peachy
473f86b0d5
common: Use generic teardown code unless necessary.
2019-05-22 20:42:12 -04:00
Solomon Peachy
473aa2bbc4
misc: More static analysis fixes.
2019-05-12 11:11:51 -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
4a7a17fabf
canonselphy: Slightly better error logging.
2018-09-28 20:14:34 -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
3d847ab7f7
canonselphy/neo: Pass media code into backend for tests.
...
Note that neither backend validates the media type until printing
starts. Should change this..
2018-09-21 15:59:22 -04:00
Solomon Peachy
51554069b9
many: Fix up memory leaks introduced in last commits.
2018-06-17 19:17:28 -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
f3da1fa465
canonselphy: Fix typo in cp790.
2018-05-15 19:55:51 -04:00
Solomon Peachy
e3e893e3b1
selphy: Add TEST_MDODE_NOATTACH support.
2018-05-12 21:40:29 -04:00
Solomon Peachy
390c5e2bf6
all: push printer type lookup into common code.
2018-05-09 23:09:01 -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
c3d9a9b151
misc: Fix up a pile of cppcheck warnings.
...
* memory leaks in error paths
* not checking return values in a couple of places
* logic errors in s1245
2018-04-26 14:45:32 -04:00
Solomon Peachy
e9b224dcab
canonselphy: Rejigger paper detection to handle lable media.
...
(ES2/ES20 are the only ones that handle this..)
2018-04-06 08:18:29 -04:00
Solomon Peachy
114f509ea7
canonselphy: Fix segfault on status query.
2018-04-05 19:52:53 -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
6f704c3b94
canonselphy/selphyneo: Add support for querying printer status.
...
It's full-featured on the selphyneo, but on the older ones it's dumber.
2018-01-04 10:00:57 -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