[sane-devel] [patch][RFC] sanei_usb_init improvement
stef
stef.dev at free.fr
Thu Dec 11 05:39:57 UTC 2008
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
More information about the sane-devel
mailing list