[][src]Function opensc_sys::sc_detect_card_presence

pub unsafe extern "C" fn sc_detect_card_presence(
    reader: *mut sc_reader_t
) -> c_int

Checks if a card is present in a reader @param reader Reader structure @retval If an error occurred, the return value is a (negative) OpenSC error code. If no card is present, 0 is returned. Otherwise, a positive value is returned, which is a combination of flags. The flag SC_READER_CARD_PRESENT is always set. In addition, if the card was exchanged, the SC_READER_CARD_CHANGED flag is set.