Hello,

On 13/06/06, Andreas Jellinghaus <[EMAIL PROTECTED]> wrote:
We have some ugly code in openct that guesses whether
some device is serial or usb or ...

I think the code is not needed, most plattforms also don't
implement it. instead I modified all parts of the code to
not only pass a device name, but a device type as well
(i.e. "usb", "serial","pcmcia","pcmcia_block", ...).

Why did you changed char *name with name = "usb:/proc/.../ to char
*type, char *device with type = "usb" and name = "/proc/..."?

That does not solve the problem of device type detection. Does it?

Attached a patch to implement it. Feedback is very welcome.
I think it doesn't break anything (except that you need to update
your code and the hotplug scripts at the same time).

Your patch is hard to read since you also made code reformating.

No objection since I do not use OpenCT :-)

Bye,

--
Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to