mirror of
https://github.com/pcsc-for-php/pcsc.git
synced 2026-08-08 21:09:26 +02:00
generate arginfo from stub file
This commit is contained in:
parent
71ee080987
commit
7849799fe7
5 changed files with 201 additions and 54 deletions
55
pcsc.stub.php
Normal file
55
pcsc.stub.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?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_T0, 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_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 {}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue