You are right, Gregor. The resource manager config file is not a good
place to put initilization parameters of a ctapi shared library.

Does anybody knows if there is a way of loading a shared library giving
a set o initialization paramters; something like
loadlib("libctapi-towitoko.so",parameter,parameter,...) so I can handle
the value of the parameter within the library.

If this is possible I could pass a flag indicating what Towitoko reader
initialization the library should use (either Chipdrive or KartenZwerg)
when a call to CT_init is made. 

If there is not such possibility I think the best is to ifdef the
initization procedure, and compile two diferent shared libraries for
Towitoko Chipdrive and KartenZwerg

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