[sane-devel] sane_set_io_mode and sane_get_select_fd

Jeffrey Ratcliffe jeffrey.ratcliffe at gmail.com
Mon Sep 8 13:47:46 UTC 2008


I attach some sample code calling sane_set_io_mode and
sane_get_select_fd, but I can't seem to get it to work. Without
calling sane_start, I get:

initialising sane... Success
opening test... Success
Setting non-blocking option... Success
Setting non-blocking... Invalid argument
Setting fd option... Success
Setting fd... Invalid argument

If I comment-in the sane_start call (as I understand should be from
the docs), I get:

initialising sane... Success
opening test... Success
start... Success
Setting non-blocking option... Invalid argument
Setting non-blocking... Operation not supported
Setting fd option... Invalid argument
Setting fd... Operation not supported

What am I missing?

Regards

Jeff Ratcliffe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: application/octet-stream
Size: 1155 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20080908/3ce92b5d/attachment.obj 


More information about the sane-devel mailing list