[sane-devel] sane_control_option question

Fred Odendaal freshshelf at rogers.com
Fri Oct 14 04:20:44 UTC 2005


The SANE API defines the sane_control_option as:

SANE_Status sane_control_option (SANE_Handle h, SANE_Int n,
                                 SANE_Action a, void *v,
                                 SANE_Int * i);

Where the argument i is used to convey information back to the frontend. 
How do I tell the front end to reload options (SANE_INFO_RELOAD_OPTIONS) 
when it supplies a null argument for i?

I want to have the user set the y resolution and have the x resolution 
automatically update correspondingly. This works  for xscanimage, but 
not xsane.

regards,
Fred Odendaal




More information about the sane-devel mailing list