Re: SANE_INFO_RELOAD_PARAMS on get?

From: Oliver Rauch (oliver.rauch@rauch-domain.de)
Date: Tue Mar 06 2001 - 07:49:07 PST

  • Next message: Davis, Tom: "RE: [configure] Could not run SANE test program (still)"

    Frederik Ramm wrote:
    >
    > Hi,
    >
    > the SANE spec is a bit unclear on the following question:
    >
    > When sane_control_option is called for a specific option with
    > SANE_ACTION_GET_VALUE, and the option in question is one that, when
    > set, might change the parameter values, do I have to set
    > SANE_INFO_RELOAD_PARAMS?
    >
    > I understand that I have to do this upon *setting* of such an option,
    > but what about *getting*?

    Hi frederic,

    in the standard it is written that the last parameter SANE_Int *i
    can be set when SANE_Action a=SANE_ACTION_SET_VALUE.

    You should set *i=0; if a=SANE_ACTION_GET_VALUE

    Bye
    Oliver

    -- 
    Homepage:	http://www.rauch-domain.de
    sane-umax:	http://www.rauch-domain.de/sane-umax
    xsane:		http://www.xsane.org
    E-Mail:		mailto:Oliver.Rauch@rauch-domain.de
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Tue Mar 06 2001 - 07:41:41 PST