2001-12-27 17:25:10 +00:00
|
|
|
|
/*
|
|
|
|
|
* sc-internal.h: Internal definitions for libopensc
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 2001 Juha Yrj<EFBFBD>l<EFBFBD> <juha.yrjola@iki.fi>
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
*/
|
|
|
|
|
|
2001-12-30 21:17:34 +00:00
|
|
|
|
#ifndef _SC_INTERNAL_H
|
|
|
|
|
#define _SC_INTERNAL_H
|
2001-12-27 17:25:10 +00:00
|
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
|
#include <config.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "opensc.h"
|
|
|
|
|
|
|
|
|
|
#define SC_FILE_MAGIC 0x14426950
|
|
|
|
|
#define SC_CARD_MAGIC 0x27182818
|
|
|
|
|
|
|
|
|
|
/* Internal use only */
|
|
|
|
|
int sc_sw_to_errorcode(struct sc_card *card, int sw1, int sw2);
|
|
|
|
|
|
2002-01-05 19:01:55 +00:00
|
|
|
|
/* Default timeout value for SCardGetStatusChange */
|
|
|
|
|
#ifndef SC_CUSTOM_STATUS_TIMEOUT
|
|
|
|
|
#define SC_STATUS_TIMEOUT 0
|
2002-01-05 19:05:29 +00:00
|
|
|
|
#else
|
|
|
|
|
#define SC_STATUS_TIMEOUT SC_CUSTOM_STATUS_TIMEOUT
|
2002-01-05 19:01:55 +00:00
|
|
|
|
#endif
|
|
|
|
|
|
2001-12-27 17:25:10 +00:00
|
|
|
|
#endif
|