[sane-standard] More device properties

m. allan noah kitno455 at gmail.com
Thu Jan 18 22:41:40 CET 2007


On 1/18/07, Étienne Bersac <bersace03 at laposte.net> wrote:
> Hi,
>
> > a possible answer? add a flag to SANE_Parameters struct which says
> > 'last page', or add a well-named read only option that says something
> > like 'number remaining'. i really like the last suggestion, because
> > it's easy for flatbeds to just always set it to 0, adf's can set it to
> > 1 (until the hopper is empty), and other feed systems can give an
> > actual count if they have such knowlege. (multi-slide feeder).
>
> I'd prefer a SANE_Int "remaining_pages" in SANE_Parameters :)

this works, but the frontend must always call sane_get_parameters()
just after it gets an EOF from the backend, but before it calls
sane_cancel(), in order to determine if there are more pages.

allan

-- 
"The truth is an offense, but not a sin"



More information about the sane-standard mailing list