~kalon33/ubuntu/natty/ccid/merge-from-unstable

« back to all changes in this revision

Viewing changes to src/ccid.h

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Rousseau
  • Date: 2009-03-07 16:53:15 UTC
  • mfrom: (1.2.11 upstream) (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090307165315-tcqla80nd3z8s6y3
Tags: 1.3.10-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
*/
19
19
 
20
20
/*
21
 
 * $Id: ccid.h 2974 2008-05-28 18:32:52Z rousseau $
 
21
 * $Id: ccid.h 3207 2008-11-18 15:02:50Z rousseau $
22
22
 */
23
23
 
24
24
typedef struct
197
197
_ccid_descriptor *get_ccid_descriptor(unsigned int reader_index);
198
198
 
199
199
/* convert a 4 byte integer in USB format into an int */
200
 
#define dw2i(a, x) ((((((a[x+3] << 8) + a[x+2]) << 8) + a[x+1]) << 8) + a[x])
 
200
#define dw2i(a, x) (unsigned int)((((((a[x+3] << 8) + a[x+2]) << 8) + a[x+1]) << 8) + a[x])
201
201
 
202
202
/* all the data rates specified by ISO 7816-3 Fi/Di tables */
203
203
#define ISO_DATA_RATES 10753, 14337, 15625, 17204, \