-
Notifications
You must be signed in to change notification settings - Fork 4
/
pcsc.stub.php
67 lines (53 loc) · 1.31 KB
/
pcsc.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/**
* @generate-function-entries
* @generate-legacy-arginfo
*/
/**
* @return resource|false
*/
function scard_establish_context() {}
/**
* @param resource $context
*/
function scard_release_context($context): bool {}
/**
* @param resource $context
*/
function scard_is_valid_context($context): bool {}
/**
* @param resource $context
*/
function scard_list_readers($context): array|false {}
/**
* @param resource $context
* @return resource|false
*/
function scard_connect($context, string $reader_name, int $preferred_protocol=SCARD_PROTOCOL_T0|SCARD_PROTOCOL_T1, int &$current_protocol=NULL): array|false {}
/**
* @param resource $card
* @return resource|false
*/
function scard_disconnect($card, int $disposition=SCARD_EJECT_CARD): bool {}
/**
* @param resource $card
* @return resource|false
*/
function scard_begin_transaction($card): bool {}
/**
* @param resource $card
* @return resource|false
*/
function scard_end_transaction($card, int $disposition=SCARD_LEAVE_CARD): bool {}
/**
* @param resource $card
* @return resource|false
*/
function scard_transmit($card, string $command): string|false {}
/**
* @param resource $card
* @return resource|false
*/
function scard_status($card): array|false {}
function scard_last_errno(): int {}
function scard_errstr(int $errno): string {}