Sun, 21 Apr 2002 15:19:09 +0200
Oliver Schwartz wrote:
> > > I'd like to add some better error messages to the snapscan backend. If I
> > > understand the current SANE standard correctly, the backend can supply an
> > > error string for a given status code by an implementation of
> > > sane_strstatus().
> > >
> > > However, trying to implement sane_strstatus myself results in a linker
> > > error as all backends are linked against sane_strstatus.c by default.
> > sane_strstatus is not a backend function, it is a function
> > that is linked to every library. You can not implement it
> > in your backend.
> Fair enough. However, I believe that there should be a possibility for a
> backend to provide some detailed error message to a frontend. If this is not
> possible via sane_strstatus we should think of other ways for SANE-2.
In SANE2 a backend can open a frontend dialog to display a message.