[][src]Function opensc_sys::sc_wait_for_event

pub unsafe extern "C" fn sc_wait_for_event(
    ctx: *mut sc_context_t,
    event_mask: c_uint,
    event_reader: *mut *mut sc_reader_t,
    event: *mut c_uint,
    timeout: c_int,
    reader_states: *mut *mut c_void
) -> c_int

Waits for an event on readers. Note: only the event is detected, there is no update of any card or other info. NOTE: Only PC/SC backend implements this. @param ctx pointer to a Context structure @param event_mask The types of events to wait for; this should be ORed from one of the following SC_EVENT_CARD_REMOVED SC_EVENT_CARD_INSERTED SC_EVENT_READER_ATTACHED @param event_reader (OUT) the reader on which the event was detected, or NULL if new reader @param event (OUT) the events that occurred. This is also ORed from the SC_EVENT_CARD_* constants listed above. @param timeout Amount of millisecs to wait; -1 means forever @retval < 0 if an error occurred @retval = 0 if a an event happened @retval = 1 if the timeout occurred