- added hotplug errors

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@997 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2003-04-11 14:42:16 +00:00
parent f801d14ffd
commit e052e6956d
2 changed files with 4 additions and 0 deletions

View File

@ -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[] = {

View File

@ -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