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
6da476edab
selphy: Internal rejiggering in preparation for fixing the job parsing
2013-07-19 07:52:21 -04:00
Solomon Peachy
d4de8ceb2d
selphy: Don't duplicate information kept in our printer struct.
2013-07-19 07:44:34 -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
93de75e813
selphy: Fix paper init.
2013-07-18 23:12:25 -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
be94ac3fff
all: Unify find_and_enumerate function.
...
Also means pushing device IDs etc into a table.
This is all *UNTESTED*
2013-07-17 23:39:31 -04:00
Solomon Peachy
937c687274
all: Simplify print_scan_output() a bit, eliminate the obsolete 'valid' argument.
2013-07-17 22:43:49 -04:00
Solomon Peachy
1b460b4072
all: Support DEVICE=serno when in standalone mode.
2013-07-17 19:47:47 -04:00
Solomon Peachy
c3173703c6
all: Tweak state transtition/sleeping a bit.
...
Now we only sleep if the readback and teh state haven't changed.
2013-07-16 23:19:04 -04:00
Solomon Peachy
48a2df1196
all: Don't re-attach the kernel driver when we're done.
...
It actually breaks the Shinko s2145, and given that none of these
printers comply with the USBLP class anyway, it's no real loss.
2013-07-16 18:34:48 -04:00
Solomon Peachy
66c5a913fd
all: Gutenprint's automake can't handle '-' in variable names. sigh.
2013-07-14 20:18:04 -04:00
Solomon Peachy
caaaf3f623
all: Unify naming convention of backends. Get rid of '_' in URIs.
...
now it's:
manufacturer-model
2013-07-14 20:10:18 -04:00
Solomon Peachy
6b474fb958
selphy: Tweak informational logging a smidge.
2013-07-01 07:26:34 -04:00
Solomon Peachy
4f90bfec12
selphy: Make it a little more verbose (INFO instead of DEBUG)
2013-07-01 07:21:44 -04:00
Solomon Peachy
6c0e25ae4b
all: Add a common lib version too.
2013-06-30 13:01:17 -04:00
Solomon Peachy
0323f2635b
selphy: Move documentation ito the .C file.
2013-06-30 12:31:04 -04:00
Solomon Peachy
fc33600760
selphy: Bump revision.
2013-06-30 12:29:34 -04:00
Solomon Peachy
bd5b371baf
selphy: Fix a really bad bug introduced months ago that causes all prints to hang.
2013-06-30 12:27:43 -04:00
Solomon Peachy
46aff13042
all: Fix enumeration, and fix send_data for larger sizes.
2013-06-30 12:05:32 -04:00
Solomon Peachy
310ae8c241
all: Move the device serial number matching code into common lib.
2013-06-30 11:32:41 -04:00
Solomon Peachy
0e82760201
all: Start merging common enumeration tasks, starting with url-ification.
2013-06-30 11:15:03 -04:00
Solomon Peachy
5c23ec3db2
all: Always print out version information.
2013-06-30 07:28:51 -04:00
Solomon Peachy
293241b39f
all: Start moving common code out into a separate library.
...
The goal is to avoid code duplication.
There's a lot of similar functionality remaining.
2013-06-27 23:02:34 -04:00
Solomon Peachy
6d74851aae
selphy/kodak: Fix more boneheaded string manipulation.
2013-06-03 21:09:34 -04:00
Solomon Peachy
f86934bb7a
backends: Add proper IEEE1284 ID fetch.
2013-06-03 20:03:19 -04:00
Solomon Peachy
6c48fd4467
Fix enumeration when more than one printer is present.
2013-06-02 12:10:46 -04:00
Ake Koomsin
a1aad8ff0a
Remove whitespaces
2013-05-16 08:30:43 -04:00
Solomon Peachy
c5a0d5fd7a
More consistent error reporting.
2013-05-04 07:52:22 -04:00
Solomon Peachy
e280fbc060
Handle SIGTERM cleanly by finishing up current print, but no more.
2013-05-03 07:42:23 -04:00
Solomon Peachy
ed27b59441
selphy: Document additional error handling in the CP-series.
...
(from Ake Koomsin)
We don't actually do anything with this extra information yet, but
we can theoretically detect, and clear error states..
2013-05-03 07:24:58 -04:00
Solomon Peachy
e771f001d3
selphy: Fold the "common" header into the main source file.
...
There's nothing sharing it any more, so why bother?
2013-05-02 20:34:01 -04:00
Solomon Peachy
eab5c72c27
selphy: Some major internal reworking, inspired by Ake Koomsin
...
* Ignore SIGPIPE
* Buffer entire job into memory before sending it to the printer
* Better informational messages
This patch also enables support for the CUPS backend 'num-copies'
argument.
Ake's patch adds much better error handling, but I need to spend more
time studying it due to the major changes it has on control flow.
2013-05-02 20:27:32 -04:00
Solomon Peachy
91aac07e91
[selphy] Add ID for SELPHY CP530 (Gernot Hassenpflug)
2013-02-12 07:34:26 -05:00
Solomon Peachy
9a0966438e
selphy/kodak: ensure we quite with a sane error code.
2013-02-02 12:49:02 -05:00
Solomon Peachy
10485fedae
[selphy] Make sure we're using blocking I/O, and fix warnings.
2013-02-02 11:34:39 -05:00
Solomon Peachy
8879523869
[selphy] Added guesses about CP790 PID
2013-02-02 08:01:04 -05:00
Solomon Peachy
a9f169c18c
[selphy] update copyright notices.
2013-02-01 21:45:25 -05:00
Solomon Peachy
fcdb16d9f9
[selphy] Fix CUPS operation with the CP-100 printer that has no serial number.
2013-01-29 18:13:11 -05:00
Solomon Peachy
6d064f074c
[selphy] Fix detection of CP-10 vs CP-XXX jobs.
2013-01-29 17:51:43 -05:00
Solomon Peachy
6880ebfa14
[misc] Back out the ability of find_and_enumerate() to change the reported type.
2012-12-13 07:03:51 -05:00
Solomon Peachy
ecbdb9e7b4
[cp10] Completely rework CP-10 support. It uses a different data stream!
2012-12-12 19:00:45 -05:00
Solomon Peachy
14b6294a58
[misc] Move all non-init code out of the header now that it's no longer
...
shared.
2012-12-11 19:52:03 -05:00
Solomon Peachy
109dfacbd3
[libusb] Better support the CP-10.
2012-12-11 14:05:38 -05:00
Solomon Peachy
e7013b65eb
[libusb] Add PID for SELPHY ES3, and mark it supported.
2012-12-04 18:31:16 -05:00
Solomon Peachy
ea26351dc5
[errors] Doubleread the readback, to clear initial state.
2012-11-22 07:40:32 -05:00
Solomon Peachy
df272c6e6d
[libusb] minor formatting fixes.
2012-11-21 23:38:03 -05:00
Solomon Peachy
21014052dd
[error] Better logging of printer errors.
2012-11-21 23:36:18 -05:00
Solomon Peachy
3a0ac481cb
[all] Rework how printer errors are detected.
...
All known errors from all supported printers are detected, except for
the ES2, which requires more investigation.
2012-11-21 23:18:56 -05:00
Solomon Peachy
96d78b222c
[libusb] Fix uninitialized varible.
2012-11-21 17:03:41 -05:00