Solomon Peachy
9c8a521de5
common: It's okay to do a marker query for TEST_MODE_NOPRINT
2021-02-23 07:43:18 -05:00
Solomon Peachy
d8c4f6d717
misc: Bump copyright year on some files updated in 2021
2021-02-07 23:56:37 -05:00
Solomon Peachy
20667338d6
common: Ditch URI_PREFIX, instead keying everything of the executable name
2021-02-07 11:30:38 -05:00
Solomon Peachy
cd21dea6a1
common: DYESUB_BACKEND now checked as well as BACKEND envvar
2021-02-07 11:29:56 -05:00
Solomon Peachy
c78d92ba39
common: OLD_URI wasn't being respected for older gutenprint versions.
2021-02-07 11:28:40 -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
cfe0fd8004
common: the 'dyesub_backend' structure is now const everywhere.
2020-10-05 22:27:08 -04:00
Solomon Peachy
8847037a32
common: Clean up some variable names in the probe functions.
...
No functional change.
2020-08-13 21:36:41 -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
f79500986f
misc: Shut up a large pile of compile warnings with pedantic compilers
2020-03-24 18:23:00 -04:00
Solomon Peachy
0a9c45bd25
misc: Fix an error that pops up with very pedantic compiles.
2020-03-24 17:48:52 -04:00
Solomon Peachy
618343d85a
common: Now works under Windows!
...
* Run-time error message for missing generic usb driver
* Update readme to document what steps are needed
2020-03-18 14:05:04 -04:00
Solomon Peachy
913af03b57
misc: Update copyright year in the program output.
...
(File headers were correct, but interactive use was wrong..)
2020-03-03 18:48:33 -05:00
Solomon Peachy
4c5e93811e
misc: Fix a small pile of static analysis problems
2020-03-03 00:16:05 -05:00
Solomon Peachy
494a188f1a
common: Allow CORRTABLE_PATH to be overrided at runtime.
2020-02-16 16:20:47 -05:00
Solomon Peachy
81b78aa17c
common: Fix probing when you don't specify a unique model.
...
(whoops!)
2020-02-11 21:33:58 -05:00
Solomon Peachy
4666ecaf94
common: Log the page parse after we increment the page number
2020-02-11 16:53:29 -05: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
3eb2903def
common: Backend name can now restrict printers we match against.
...
BACKEND=dnpds40 ./dyesub_backend -s
will return the results for the first printer in the family
BACKEND=dnp-ds620 ./dyesub_backend -s
will return the results for the first printer of this specific type
(This doesn't work universally; most notably for models that share
the same VID/PID)
2020-01-30 19:53:48 -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
dba0189792
common: Move the "Parsed page" message earlier.
2020-01-21 22:46:31 -05:00
Solomon Peachy
1b8553a710
Common: Log successful job combinings.
2020-01-21 22:19:36 -05:00
Solomon Peachy
552a3f030a
common: Tweak the page number displayed when printing.
2020-01-21 22:16:50 -05:00
Solomon Peachy
a111a2559d
Common: Major rejiggering of print job combining
...
* Decision logic for combining jobs is global, with a per-backend
combine_job() call for the nitty-gritty
* Job combining code now handles multipage jobs as well as
multiple copies of a given page
* Will attempt to batch multipage jobs
* Automatically invoked every time a job is appended to a joblist
* Only used by DNP and Mitsu D70 backends (so far)
2020-01-21 21:48:57 -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
af4fde17e0
common: Fix packed_bcd_to_uint32() computation.
2020-01-16 08:04:05 -05:00
Solomon Peachy
77b7b12202
misc: version bumps
2019-12-13 19:07:13 -05:00
Solomon Peachy
78c7713578
common: Instead of "media" use "deck" instead, and each one gets status/lifetime
2019-12-13 19:02:34 -05:00
Solomon Peachy
3b962df076
common: Support for common status / media reporting query.
...
Outputs in text form or JSON. See README for details.
2019-12-13 15:30:28 -05:00
Solomon Peachy
619d0dd487
common: handle blank URI envvar
2019-12-13 15:17:18 -05:00
Solomon Peachy
4007099482
common: Fix up some incorrect error handling.
2019-12-13 15:15:20 -05:00
Solomon Peachy
612b8d4114
common: Log the transmit data _before_ it is sent.
2019-12-12 12:08:06 -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
67f4c8afac
common: Fix a long-standing bug in the joblist code.
...
Only triggered in test mode, resulting in bypassing parsing of
all but the first page of a job.
2019-11-14 17:03:21 -05:00
Solomon Peachy
9aebcf17dc
common: Don't drop last IEEE1284 key/value if it doesn't end in ';'
2019-11-14 15:29:01 -05:00
Solomon Peachy
b41803ef9e
common: Pass bInterfaceNo into backend->query_serno() call
...
Also allow the USB iSerialNumber value to be ignored.
2019-11-06 14:18:49 -05:00
Solomon Peachy
55a9a9784a
Revert "common: Log the IEEE1284 ID in DEBUG >= 2"
...
This reverts commit adaae4b617f2832761fc4f24f1f164567d4e81c5.
Wrong approach.
2019-11-05 16:43:38 -05:00
Solomon Peachy
da4c5eb026
common: Log the IEEE1284 ID in DEBUG >= 2
2019-11-05 16:36:36 -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
0dfd40efe0
common: Make IEEE1284 ID manipulation code non-static.
2019-11-02 08:25:34 -04:00
Solomon Peachy
9c53ca8509
common: Code for forcing device config reset (disabled for now)
2019-10-04 10:20:13 -04:00
Solomon Peachy
5f34b1070f
misc: Fix missing newlines in multiple error messages.
2019-10-03 20:30:35 -04:00
Solomon Peachy
62b4b2b511
common: Get rid of explicit enumeration IDs in the P_?? list.
...
And sort them alphabetically.
2019-09-30 18:30:39 -04:00
Solomon Peachy
f8039fcb6c
Only log the media type when running as a CUPS backend.
2019-09-30 18:26:05 -04:00
Solomon Peachy
57bc5bfa5c
common: Corrections to the CUPS state output.
2019-09-28 16:09:19 -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
7a08d72e09
HiTi: Add WIP backend for HiTi 520L.
...
There's a clear path to supporting P52x, P72x, and P750.
Other models (P51x, P11x) are viable, but will require more legwork.
Remaining models (P3xx, X610, and others) are unknowns.
2019-09-26 21:06:39 -04:00