Re: Return values of sane_init() (Was: EOF detection)

From: Henning Meier-Geinitz (henning@meier-geinitz.de)
Date: Sat May 19 2001 - 09:44:55 PDT

  • Next message: lee johnson: "Re: Recommend a USB scanner with Transparency Scanning"

    Hi,

    [about the return value of sane_init]

    On Fri, May 11, 2001 at 07:13:15PM +0200, Henning Meier-Geinitz wrote:
    > 4.3.1 sane_init
    > This function must be called before any other SANE function can be
    > called. The behavior of a SANE backend is undefined if this function
    > is not called first, or if the returned status is anything other then
    > SANE_STATUS_GOOD.
    >
    > [...] The returned strings must be ASCII-NUL terminated.
    >
    > This function may fail with one of the following status codes.
    >
    > SANE_STATUS_UNSUPPORTED:
    > The operation is not supported for the current configuration.
    > number.
    > SANE_STATUS_NO_MEM:
    > An insufficent amount of memory is available.

    Another return value that is currently in use is SANE_STATUS_INVAL
    (snapscan, if V_MAJOR != major version of backend).

    Should we add the text above about the return status to the standard?

    Bye,
      Henning

    --
    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 : Sat May 19 2001 - 09:47:46 PDT