[Pcsclite-cvs-commit] HandlerTest/Host handler_test.c,1.7,1.8
rousseau@quantz.debian.org
rousseau@quantz.debian.org
Mon, 09 Feb 2004 09:35:59 +0100
Update of /cvsroot/pcsclite/HandlerTest/Host
In directory quantz:/tmp/cvs-serv29936
Modified Files:
handler_test.c
Log Message:
exits only if IFDHCreateChannelByName is not defined (API 2.0) _and_
a device name is given
Index: handler_test.c
===================================================================
RCS file: /cvsroot/pcsclite/HandlerTest/Host/handler_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- handler_test.c 3 Feb 2004 16:11:30 -0000 1.7
+++ handler_test.c 9 Feb 2004 08:35:55 -0000 1.8
@@ -216,11 +216,17 @@
}
DLSYM(IFDHCreateChannel)
- DLSYM(IFDHCreateChannelByName)
DLSYM(IFDHCloseChannel)
DLSYM(IFDHPowerICC)
DLSYM(IFDHTransmitToICC)
DLSYM(IFDHICCPresence)
+
+ f.IFDHCreateChannelByName = dlsym(lib_handle, "IFDHCreateChannelByName");
+ if (f.IFDHCreateChannelByName == NULL && device_name)
+ {
+ printf("IFDHCreateChannelByName not defined by the driver and device_name set\n");
+ return 1;
+ }
ret = handler_test(LUN, channel, device_name);
dlclose(lib_handle);