[sane-devel] The future of the SANE-Standard

Alessandro Zummo azummo-lists at towertech.it
Fri Dec 21 18:43:51 UTC 2007


On Fri, 21 Dec 2007 19:27:57 +0100
abel deuring <adeuring at gmx.net> wrote:

> 
> So, for dynanically linked backends, it should be fine to use a new
> "enabler function", which does not exist in 1.0.x backends.
> 
> Unfortunately, an "enabler function", which is optional for backends,
> would not work for statically linked backends. But are these used
> anywhere? In other words: Couldn't we simply drop static linkage?

  only if really isn't used anywhere.

  we might see if we can use the first parameter of sane_init
 to pass some special value to the backend.

 sane_init(SANE_Int * version_code, SANE_Auth_Callback authorize)

 current frontends will pass either NULL here or a ptr to a SANE_Int .
 this ptr could be either zero or uninitialized (garbage).

 we might use it in some way.

 or maybe the authorize callback could be used. the backend could call
 it with some magic value in resource/user/password.

 other options?

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it




More information about the sane-devel mailing list