mirror of
https://github.com/pcsc-for-php/pcsc.git
synced 2026-08-08 21:09:26 +02:00
Initial commit of the PC/SC (pcsc) extension. There is some stuff that needs to be romoved like the build.sh script and the subfolders tmp/ and php/.
I think the .m4 file has some bugs because it fails to build without my weird build.sh script. I will fix that ASAP. git-svn-id: https://svn.php.net/repository/pecl/pcsc/trunk@320951 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
230d4052b2
commit
8db0824d92
11 changed files with 1306 additions and 0 deletions
32
php_pcsc.h
Normal file
32
php_pcsc.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef PHP_PCSC_H
|
||||
#define PHP_PCSC_H
|
||||
|
||||
extern zend_module_entry pcsc_module_entry;
|
||||
#define phpext_pcsc_ptr &pcsc_module_entry
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define PHP_PCSC_API __declspec(dllexport)
|
||||
#else
|
||||
#define PHP_PCSC_API
|
||||
#endif
|
||||
|
||||
#ifdef ZTS
|
||||
#include "TSRM.h"
|
||||
#endif
|
||||
|
||||
PHP_MINIT_FUNCTION(pcsc);
|
||||
PHP_MSHUTDOWN_FUNCTION(pcsc);
|
||||
PHP_MINFO_FUNCTION(pcsc);
|
||||
|
||||
PHP_FUNCTION(scard_establish_context);
|
||||
PHP_FUNCTION(scard_is_valid_context);
|
||||
PHP_FUNCTION(scard_release_context);
|
||||
PHP_FUNCTION(scard_list_readers);
|
||||
PHP_FUNCTION(scard_connect);
|
||||
//PHP_FUNCTION(scard_reconnect);
|
||||
PHP_FUNCTION(scard_disconnect);
|
||||
PHP_FUNCTION(scard_status);
|
||||
PHP_FUNCTION(scard_transmit);
|
||||
//PHP_FUNCTION(scard_cancel);
|
||||
|
||||
#endif /* PHP_PCSC_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue