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
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
a9705d88e3
common: Display an error if we don't transfer everything.
2013-06-29 21:35:45 -04:00
Solomon Peachy
9d050b4370
all: Clean up use of <arpa/inet.h>
2013-06-29 12:25:06 -04:00
Solomon Peachy
5c14b2d289
common: Remove duplicate error macros.
2013-06-28 07:50:24 -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