[sane-devel] sane_set_io_mode and sane_get_select_fd

m. allan noah kitno455 at gmail.com
Mon Sep 8 14:02:21 UTC 2008


i assume this is the test backend? the options control the behaviour
of the backend, so that it can act like either a backend that does, or
does not, support those functions, since they are optional. i am not
sure i understand your problem?

allan

2008/9/8 Jeffrey Ratcliffe <jeffrey.ratcliffe at gmail.com>:
> 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
>
> --
> 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