Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

LONG IFDSetCapabilities ( READER_CONTEXT rContext,
DWORD  dwTag,
DWORD  dwLength,
PUCHAR  pucValue 
)

Set capabilities in the reader.

Definition at line 183 of file ifdwrapper.c.

References IFD_SUCCESS, IFDHSetCapabilities(), ReaderContext::psFunctions, ReaderContext::psFunctions_v2, and ReaderContext::slot.

Referenced by SCardSetAttrib().

{
      RESPONSECODE rv = IFD_SUCCESS;

#ifndef PCSCLITE_STATIC_DRIVER
      RESPONSECODE(*IFDH_set_capabilities) (DWORD, DWORD, DWORD, PUCHAR) = NULL;

      IFDH_set_capabilities = rContext->psFunctions.psFunctions_v2.pvfSetCapabilities;
#endif

      /*
       * Let the calling function lock this otherwise a deadlock will
       * result
       */

#ifndef PCSCLITE_STATIC_DRIVER
      rv = (*IFDH_set_capabilities) (rContext->slot, dwTag,
                  dwLength, pucValue);
#else
      rv = IFDHSetCapabilities(rContext->slot, dwTag, dwLength, pucValue);
#endif

      return rv;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index