kopia lustrzana https://gitlab.com/sane-project/backends
convert genesys backend to use new sanei_usb functions
- call sanei_usb_scan_devices() in sane_get_devices to rescan bus to refresh USB scanner list - call sanei_usb_exit() in sane_exit to free allocated resourcesmerge-requests/1/head
rodzic
52ba4844ca
commit
7070fac113
|
@ -6566,6 +6566,8 @@ sane_exit (void)
|
|||
free (devlist);
|
||||
devlist = 0;
|
||||
|
||||
sanei_usb_exit();
|
||||
|
||||
DBGCOMPLETED;
|
||||
}
|
||||
|
||||
|
@ -6579,8 +6581,8 @@ sane_get_devices (const SANE_Device *** device_list, SANE_Bool local_only)
|
|||
DBG (DBG_proc, "sane_get_devices: start: local_only = %s\n",
|
||||
local_only == SANE_TRUE ? "true" : "false");
|
||||
|
||||
/* hot-plug case :detection of newly connected scanners */
|
||||
sanei_usb_init ();
|
||||
/* hot-plug case : detection of newly connected scanners */
|
||||
sanei_usb_scan_devices ();
|
||||
probe_genesys_devices ();
|
||||
|
||||
if (devlist)
|
||||
|
|
Ładowanie…
Reference in New Issue