Commit Graph

25 Commits

Author SHA1 Message Date
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