On Fri, Aug 6, 2010 at 10:25 AM, Reinhold Kainhofer <reinhold at kainhofer.com> wrote: > Am Freitag, 6. August 2010, 14:40:00 schrieb m. allan noah: >> >> Well, you can find a tutorial in the sane-project Web pages which seems >> >> to make things pretty straightforward... >> > >> > Actually, now. The backend-writing.txt file mainly talks about the >> > directory structure and the coding style. The important backend.c file >> > is only documented as "usually contains the SANE API code", but without >> > any further mention what exactly needs to be coded and what the API is >> > exactly, and how USB/network connections are to be detected/handled. >> >> Apparently you missed the SANE Standard (API) documents: > > Yes, I really missed them. > I looked at "Contributing -> Writing a Backend (Driver)", which only referred > to backend-writing.txt, but not to the SANE API...
Good point- the website is not clearly laid out. Another good source for documentation is the source of existing backends. You have to kind of dig a little to find one that is similar enough to your machine and to your programming style. allan -- "The truth is an offense, but not a sin"