[sane-devel] [patch][RFC] sanei_usb_init improvement
m. allan noah
kitno455 at gmail.com
Thu Dec 11 14:25:12 UTC 2008
there is a prog that does just this in the sane experimental tree.
Stef- I'm gonna look at your patch this afternoon, and see if i can
add missing device removal to it as well. If it works, I'll commit it,
cause it looks like the right fix.
On Thu, Dec 11, 2008 at 12:39 AM, stef <stef.dev at free.fr> wrote:
> you can test easily the patch with the following program run with
> SANE_DEBUG_SANEI_USB=6 :
> #include <stdlib.h>
> #include <string.h>
> #include <check.h>
> /* sane includes for the sanei functions called */
> #include "../include/sane/sane.h"
> #include "../include/sane/saneopts.h"
> #include "../include/sane/sanei.h"
> #include "../include/sane/sanei_usb.h"
> int main(int argc, char **argv)
> gcc -ggdb usb_init_test.c -I../include -o
> usb_init_test -L../sanei -lsanei -lusb
> Then plug/replug scanners to check that the device list remains consistent.
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> Unsubscribe: Send mail with subject "unsubscribe your_password"
> to sane-devel-request at lists.alioth.debian.org
"The truth is an offense, but not a sin"
More information about the sane-devel