src: use predefined pcsclite types
This commit is contained in:
committed by
Santiago Gimeno
parent
bd2bf70739
commit
bf15e2eaf1
@@ -37,16 +37,16 @@ class CardReader: public node::ObjectWrap {
|
||||
};
|
||||
|
||||
struct TransmitInput {
|
||||
uint32_t card_protocol;
|
||||
unsigned char *in_data;
|
||||
unsigned long in_len;
|
||||
unsigned long out_len;
|
||||
DWORD card_protocol;
|
||||
LPBYTE in_data;
|
||||
DWORD in_len;
|
||||
DWORD out_len;
|
||||
};
|
||||
|
||||
struct TransmitResult {
|
||||
LONG result;
|
||||
unsigned char *data;
|
||||
unsigned long len;
|
||||
LPBYTE data;
|
||||
DWORD len;
|
||||
};
|
||||
|
||||
struct ControlInput {
|
||||
@@ -59,14 +59,14 @@ class CardReader: public node::ObjectWrap {
|
||||
|
||||
struct ControlResult {
|
||||
LONG result;
|
||||
unsigned long len;
|
||||
DWORD len;
|
||||
};
|
||||
|
||||
struct AsyncResult {
|
||||
LONG result;
|
||||
unsigned long status;
|
||||
unsigned char atr[MAX_ATR_SIZE];
|
||||
unsigned long atrlen;
|
||||
DWORD status;
|
||||
BYTE atr[MAX_ATR_SIZE];
|
||||
DWORD atrlen;
|
||||
bool do_exit;
|
||||
};
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ class PCSCLite: public node::ObjectWrap {
|
||||
|
||||
struct AsyncResult {
|
||||
LONG result;
|
||||
char *readers_name;
|
||||
unsigned long readers_name_length;
|
||||
LPSTR readers_name;
|
||||
DWORD readers_name_length;
|
||||
bool do_exit;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user