General backend information
Wolfgang Kaess (100346.2055@compuserve.com)
Wed, 24 Jun 1998 08:59:39 -0400
Antal Novak worte:
> I have working code for Plustek OpticPro scanners that I would
> like to implement as a SANE Backend. Is there any information available
> in the form of some guide that will explain how the SANE Backends work,
> and how to implement one?
Hello Antal,
I'm also new to SANE and have only minimal knowledge to implement a backend.
But I'll give you some hints i know about, you can start with:
1. Read doc\sane.tex
Start with \section{Attaching to a SANE backend}
2. include\sane\sane.h
include\sane\sane_backend.h
The functions defined in this files are needed to be implemented.
I don't know why the functions are defined in both files and as for now
I don't understand why the functions are not defined in the "backend.h"
file and
how I could tell it my linker.
3. Take one backend source file as a template for your new backend.
Try to use as many as posible constants, types and functions already
defined and
implemented in the "sanei\*.* files. For debuging use the functions/makros
from
"include\sane\sane_debug.h"
I hope this helps,
Wolfgang Kaess
***
--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com