Solomon Peachy
766ca01f0d
whitespace fixes.
2014-01-12 17:26:29 -05:00
Solomon Peachy
db65d25feb
common: Add a generic read_data() call.
2013-12-21 22:39:15 -05:00
Solomon Peachy
875ebd2d76
all: Silence nearly all DEBUG outputs unless DYESUB_DEBUG is set in the
...
environment.
2013-12-21 22:15:18 -05:00
Solomon Peachy
138d10551b
common: Fix incorrect help text.
...
To use a specific device, use 'DEVICE=...' rather than 'SERIAL=...'
The documentation (readme) was correct.
2013-12-20 11:14:20 -05:00
Solomon Peachy
13e25a4c95
common: Ensure we properly define URI_PREFIX as part of the build.
2013-12-18 18:28:13 -05:00
Solomon Peachy
64dda99d30
common: We need to URLify the manufacturer string too!
2013-12-18 07:48:30 -05:00
Solomon Peachy
4715a088e3
common: unify the debug messages, set DYESUB_DEBUG before invoking.
2013-12-11 07:49:57 -05:00
Solomon Peachy
ccf44058ab
dsp_ds40: Initial pass at a backend.
...
As far as a backend is concerned, it's just a passthrough. However, it
has command-line options.
2013-12-03 22:21:44 -05:00
Solomon Peachy
9201105c66
all: Fixed all compiler warnings.
2013-11-23 19:51:55 -05:00
Solomon Peachy
e79080796d
mitsu70x: Actually add it to the backend list.
2013-11-23 14:57:06 -05:00
Solomon Peachy
97ce8262b7
common: It helps to include the kodak605 backend.
2013-11-21 22:04:48 -05:00
Solomon Peachy
be8eec4f2d
common: Return better CUPS error codes, and document them.
2013-09-30 15:15:28 +01:00
Solomon Peachy
6ce1ab9768
commmon: Fix unintialized error.
...
o
2013-09-30 14:52:05 +01:00
Solomon Peachy
88444f5644
common: Fix backend detection problem identified by Geoff Youngs.
...
When I unified the backends, I broke the CUPS backend detection.
2013-09-30 13:16:04 +01:00
Solomon Peachy
7a7bdf9fab
all: Update URL to the public git repo.
2013-08-20 20:10:21 -04:00
Solomon Peachy
ccf8ad9e59
common: when we're not in scan mode, attach to the first matching
...
printer we find.
2013-08-19 18:33:32 -04:00
Solomon Peachy
884919b5fe
common: Clean up some gcc warnings (when -Wextra is used)
2013-07-26 16:18:35 -04:00
Solomon Peachy
953ebd91ec
common: Move backend id/version log to where we init the backend.
2013-07-26 07:44:53 -04:00
Solomon Peachy
1d655d722a
common: Log the backend name and version when printing starts.
2013-07-26 07:42:33 -04:00
Solomon Peachy
576fd4de33
common: If an open fails, it's almost certainly becase we're not root.
2013-07-25 14:21:36 -04:00
Solomon Peachy
051cf386b5
common: Claim the device before calling the backend's query_serno() call.
2013-07-24 20:54:14 -04:00
Solomon Peachy
b7851a3df1
common: Add support for a backend-specific serno call.
...
(Nothing uses it just yet)
2013-07-24 13:49:06 -04:00
Solomon Peachy
d01cb80428
common: libusbx is not the same as libusb.
...
The libusb_get_port_number() call was added in libusbx 1.0.12.
libusbx 1.0.13 added a macro to detect what version of libusb was in use.
So key off that macro's presence; otherwise we don't know at build time.
2013-07-20 19:10:15 -04:00
Solomon Peachy
db0650da55
common: Fix EXTRA_PID/VID/TYPE not matching..
2013-07-19 22:21:15 -04:00
Solomon Peachy
e2a1a057fa
common: Fix printer matching for all backends other than SELPHY.
2013-07-19 19:53:08 -04:00
Solomon Peachy
4b9e689548
backend: Fix crash bug.
2013-07-19 11:12:14 -04:00
Solomon Peachy
a7a75cb7c9
common: add an 'early_parse' backend hook
...
Also fix 'query_only' usage to properly bypass the open/read.
2013-07-19 10:13:35 -04:00
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
3e306886bd
common: Tweak to internal API for future use.
2013-07-19 07:44:20 -04:00
Solomon Peachy
67b09c95be
common: Fix enumeration and output formatting.
...
Canon SELPHY backend is definitely broken; we don't try to parse the
file until after we've probed for the device. Doesn't affect CUPS
operation.
2013-07-18 23:54:43 -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
587dd52247
common: Fix enumeration which was fixed looking for a SONY type.
2013-07-18 23:22:24 -04:00
Solomon Peachy
32da54ee36
common: Fix a segfault when backend provides no cmdline handler.
2013-07-18 23:12:40 -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
060b6763fb
s2145: Migrate to new unified backend.
...
UNTESTED.
2013-07-18 22:10:56 -04:00
Solomon Peachy
d20f1e2049
kodak1400: Merge into new multi-call paradigm.
2013-07-18 21:05:33 -04:00
Solomon Peachy
b038aa71c1
kodak6800: 75% of new backend migration completed. Main loop is all that's left.
2013-07-18 18:03:40 -04:00
Solomon Peachy
40604d6664
common: Finish multi-exec handling, including auto backend detection based on environment and/or argv[0]
...
Now ready to try porting another backend into this framework.
2013-07-18 12:45:35 -04:00
Solomon Peachy
0ca04120a8
common: Placeholder for backend detection
2013-07-18 08:51:02 -04:00
Solomon Peachy
be8c5c494f
unification: Rearrange internals quite a lot.
...
Only Sony UP-DR150 driver is converted.
Still to-do in common code:
* Backend selection based on URI (ie CUPS mode)
* Backend selection based on BACKEND or argv[0] (ie standalone mode)
2013-07-18 08:46:44 -04:00
Solomon Peachy
fc66186e4c
common: Don't re-attach after scanning device IDs.
2013-07-17 23:40:48 -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
f70d028ac2
common: When no serial number is known, use the bus/portnum
2013-07-16 21:08:33 -04:00
Solomon Peachy
b4b2b4c00f
common: Log the USB Manufacturer ID too.
2013-07-06 21:05:00 -04:00
Solomon Peachy
fec7e6d776
common: Fix more USB descriptor parsing bugs.
2013-07-06 20:58:23 -04:00
Solomon Peachy
e1ea0359fd
common: bump revision.
2013-07-06 10:12:19 -04:00
Solomon Peachy
df9a207f8e
all: add xxx_to_cpu macros as well.
2013-07-06 09:10:01 -04:00
Solomon Peachy
6c0e25ae4b
all: Add a common lib version too.
2013-06-30 13:01:17 -04:00
Solomon Peachy
46aff13042
all: Fix enumeration, and fix send_data for larger sizes.
2013-06-30 12:05:32 -04:00