[sane-devel] List of "sane_control_option" options?

m. allan noah kitno455 at gmail.com
Sun May 10 14:21:18 UTC 2009


you got it. make sure you honor all the requirements of the option
descriptor (type, caps, etc)

allan

On Sun, May 10, 2009 at 9:49 AM, Mark Pemburn <mark at pemburn.com> wrote:
> Hi again,
>
>     Almost immediately after sending my request, I think I figured out what
> I need to do:  Call "sane_get_option_descriptor" with the SANE handle and
> integer "0" as the second argument (SANE_Int n) and it'll return a pointer
> to a structure of type SANE_Option_Descriptor.  One of the members of this
> structure contains the an integer that tells _how many_ options are
> available from this particular device (not sure which but I'll test it out
> and see).  By iterating over calls to sane_get_option_descriptor supplied
> with values of 1 to n-1, you'll get a full list of available options and
> what to do with them.  Is this correct?  Anything I missed?
>
> Mark
>
> Earlier I wrote:
>
>     I'm pretty new to SANE so please forgive my ignorance.  After several
> weeks of brain busting with new languages and concepts, I've made quite a
> bit of progress on my Mac OS X scanner interface using Cocoa/Objective-C.  I
> can get the list of available scanners, get the SANE handle and, in moment
> of ecstasy this past Thursday, was finally able to activate the scanner and
> retrieve data.  I still haven't figure out exactly how to display the
> results but this will come in time.  The next thing I want to tackle is
> setting options for the scanner, something I gather is done with
> "sane_control_option".  Is there a list of all of the available options and
> the valid values for each?  I've searched all over but haven't turned
> anything up yet.  Your help will be greatly appreciated.
>
> Regards,
>
> Mark Pemburn
>
> ________________________________
> --
> 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
>
> --
> 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