On Tue, 29 Sep 1998, Paolo Bizzarri wrote:

> 3) Last, why not defining and using a single standard set of functions
> for serial I/O ? I have seen that mct and reflex both use an
> incompatible library.
> 

I'm following this structure in my Towitoko CT-API driver:

- serial.c, .h: Functions for reading and writing serial port. This code
is plataform dependent but reader independent. I'm planing add support for
Win32 (with a new define CPU_WIN32_OS) so the CT-API would work on Linux,
Macintosh and Win32. 

- towitoko.c, .h: Functions that handle reader protocol. The code is
reader specific and plataform independent, as I use serial.c functions to
comunicate with the reader. Following this schema, there could be a
reflex.c, a mct.c or an argus.c  module.

- ctapi.c, .h: CT-API. This should be reader dependent, and plataform
independent, but providing the same interface for all readers.

Bye ,
Carlos.

***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to