[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.

allan

On Thu, Dec 11, 2008 at 12:39 AM, stef <stef.dev at free.fr> wrote:
>        Hello,
>
>        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)
> {
>        while(1)
>        {
>                sanei_usb_init();
>                printf("=============================\n");
>                sleep(2);
>        }
> }
>
> 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.
>
> Regards,
>        Stef
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> 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 mailing list