Show
Ignore:
Timestamp:
04/20/08 09:59:23 (9 months ago)
Author:
alonbl
Message:

Initial Plug&Play support

Add detect_readers() to reader opts.
Add sc_ctx_detect_readers() that calls readers' detect_readers().
Allow context to be created without readers.
Call sc_ctx_detect_readers() from PKCS#11 C_GetSlotList with NULL_PTR.

Since I broke ABI, I updated the external module version requirement
to match OpenSC version. In the future a separate version should be
maintaind for each interface, this should be unrelated to the package
version.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/alonbl/pnp/src/libopensc/reader-ctapi.c

    r3084 r3481  
    608608} 
    609609 
     610static int ctapi_detect_readers(sc_context_t *ctx, void *prv_data) 
     611{ 
     612        return 0; 
     613} 
     614 
    610615struct sc_reader_driver * sc_get_ctapi_driver(void) 
    611616{ 
    612617        ctapi_ops.init = ctapi_init; 
    613618        ctapi_ops.finish = ctapi_finish; 
     619        ctapi_ops.detect_readers = ctapi_detect_readers; 
    614620        ctapi_ops.transmit = ctapi_transmit; 
    615621        ctapi_ops.detect_card_presence = ctapi_detect_card_presence;