[sane-devel] demo patch for SANE 1 / SANE 2 coexistence
stef
stef.dev at free.fr
Thu Nov 13 21:11:58 UTC 2008
Hello,
in order to demonstrate the possibility to have SANE 1 and SANE 2 coexisting
by using meta backends, here's a demo patch against recent CVS which:
- raise V_MAJOR to 2
- add a sane1 meta backend that loads backends with a so major of 1 to
allow SANE 2 frontends to use SANE 1 backends
- add a sane2 meta backend with a so major of 1 but searches for backends
with a so major of 2. It also handles the warming up status, and detects
use of newer frame formats. So a SANE 1 frontend would be able to use a
SANE 2 backend.
So even after an installation of SANE 2 packages:
- SANE 1 only backends such as binary one can still be used
- SANE 1 frontends can use SANE 2 backends
This let package maintainers to upgrade at their will and/or when frontends
get updated to take advantage of new features. Custom or binary frontends
won't need to be updated.
Regards,
Stef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo.patch.gz
Type: application/x-gzip
Size: 20141 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20081113/d6aa65b4/attachment.bin
More information about the sane-devel
mailing list