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

Reply via email to