diff --git a/src/libopensc/errors.c b/src/libopensc/errors.c index 613a09bd..eb41ec56 100644 --- a/src/libopensc/errors.c +++ b/src/libopensc/errors.c @@ -40,6 +40,8 @@ const char *sc_strerror(int error) "Message too long (keypad)", "Timeout while waiting for event (card reader)", "Unresponsive card (correctly inserted?)", + "Reader detached (hotplug device?)", + "Reader reattached (hotplug device?)", }; const int rdr_base = -SC_ERROR_READER; const char *card_errors[] = { diff --git a/src/libopensc/errors.h b/src/libopensc/errors.h index 9e18daa7..474d6fad 100644 --- a/src/libopensc/errors.h +++ b/src/libopensc/errors.h @@ -43,6 +43,8 @@ extern "C" { #define SC_ERROR_KEYPAD_MSG_TOO_LONG -1111 #define SC_ERROR_EVENT_TIMEOUT -1112 #define SC_ERROR_CARD_UNRESPONSIVE -1113 +#define SC_ERROR_READER_DETACHED -1114 +#define SC_ERROR_READER_REATTACHED -1115 /* Resulting from a card command or related to the card*/ #define SC_ERROR_CARD_CMD_FAILED -1200