mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2024-11-22 22:37:10 +00:00
Wrap method aliases
This commit is contained in:
parent
5ca5063c3b
commit
d08552405a
1 changed files with 26 additions and 23 deletions
49
gnupg.c
49
gnupg.c
|
@ -249,31 +249,34 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_gnupg_decryptverify_method, 0, 0, 2)
|
||||||
ZEND_END_ARG_INFO()
|
ZEND_END_ARG_INFO()
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
#define PHP_GNUPG_FALIAS(_name, _arginfo) \
|
||||||
|
PHP_FALIAS(_name, gnupg_ ## _name, _arginfo)
|
||||||
|
|
||||||
/* {{{ methodlist gnupg */
|
/* {{{ methodlist gnupg */
|
||||||
phpc_function_entry gnupg_methods[] = {
|
phpc_function_entry gnupg_methods[] = {
|
||||||
PHP_FALIAS(keyinfo, gnupg_keyinfo, arginfo_gnupg_pattern_method)
|
PHP_GNUPG_FALIAS(keyinfo, arginfo_gnupg_pattern_method)
|
||||||
PHP_FALIAS(verify, gnupg_verify, arginfo_gnupg_verify_method)
|
PHP_GNUPG_FALIAS(verify, arginfo_gnupg_verify_method)
|
||||||
PHP_FALIAS(geterror, gnupg_geterror, NULL)
|
PHP_GNUPG_FALIAS(geterror, NULL)
|
||||||
PHP_FALIAS(clearsignkeys, gnupg_clearsignkeys, NULL)
|
PHP_GNUPG_FALIAS(clearsignkeys, NULL)
|
||||||
PHP_FALIAS(clearencryptkeys, gnupg_clearencryptkeys, NULL)
|
PHP_GNUPG_FALIAS(clearencryptkeys, NULL)
|
||||||
PHP_FALIAS(cleardecryptkeys, gnupg_cleardecryptkeys, NULL)
|
PHP_GNUPG_FALIAS(cleardecryptkeys, NULL)
|
||||||
PHP_FALIAS(setarmor, gnupg_setarmor, arginfo_gnupg_armor_method)
|
PHP_GNUPG_FALIAS(setarmor, arginfo_gnupg_armor_method)
|
||||||
PHP_FALIAS(encrypt, gnupg_encrypt, arginfo_gnupg_text_method)
|
PHP_GNUPG_FALIAS(encrypt, arginfo_gnupg_text_method)
|
||||||
PHP_FALIAS(decrypt, gnupg_decrypt, arginfo_gnupg_enctext_method)
|
PHP_GNUPG_FALIAS(decrypt, arginfo_gnupg_enctext_method)
|
||||||
PHP_FALIAS(export, gnupg_export, arginfo_gnupg_pattern_method)
|
PHP_GNUPG_FALIAS(export, arginfo_gnupg_pattern_method)
|
||||||
PHP_FALIAS(import, gnupg_import, arginfo_gnupg_key_method)
|
PHP_GNUPG_FALIAS(import, arginfo_gnupg_key_method)
|
||||||
PHP_FALIAS(getprotocol, gnupg_getprotocol, NULL)
|
PHP_GNUPG_FALIAS(getprotocol, NULL)
|
||||||
PHP_FALIAS(setsignmode, gnupg_setsignmode, arginfo_gnupg_signmode_method)
|
PHP_GNUPG_FALIAS(setsignmode, arginfo_gnupg_signmode_method)
|
||||||
PHP_FALIAS(sign, gnupg_sign, arginfo_gnupg_text_method)
|
PHP_GNUPG_FALIAS(sign, arginfo_gnupg_text_method)
|
||||||
PHP_FALIAS(encryptsign, gnupg_encryptsign, arginfo_gnupg_text_method)
|
PHP_GNUPG_FALIAS(encryptsign, arginfo_gnupg_text_method)
|
||||||
PHP_FALIAS(decryptverify, gnupg_decryptverify, arginfo_gnupg_decryptverify_method)
|
PHP_GNUPG_FALIAS(decryptverify, arginfo_gnupg_decryptverify_method)
|
||||||
PHP_FALIAS(addsignkey, gnupg_addsignkey, arginfo_gnupg_key_method)
|
PHP_GNUPG_FALIAS(addsignkey, arginfo_gnupg_key_method)
|
||||||
PHP_FALIAS(addencryptkey, gnupg_addencryptkey, arginfo_gnupg_key_method)
|
PHP_GNUPG_FALIAS(addencryptkey, arginfo_gnupg_key_method)
|
||||||
PHP_FALIAS(adddecryptkey, gnupg_adddecryptkey, arginfo_gnupg_key_method)
|
PHP_GNUPG_FALIAS(adddecryptkey, arginfo_gnupg_key_method)
|
||||||
PHP_FALIAS(deletekey, gnupg_deletekey, arginfo_gnupg_key_method)
|
PHP_GNUPG_FALIAS(deletekey, arginfo_gnupg_key_method)
|
||||||
PHP_FALIAS(gettrustlist, gnupg_gettrustlist, arginfo_gnupg_pattern_method)
|
PHP_GNUPG_FALIAS(gettrustlist, arginfo_gnupg_pattern_method)
|
||||||
PHP_FALIAS(listsignatures, gnupg_listsignatures, arginfo_gnupg_keyid_method)
|
PHP_GNUPG_FALIAS(listsignatures, arginfo_gnupg_keyid_method)
|
||||||
PHP_FALIAS(seterrormode, gnupg_seterrormode, arginfo_gnupg_errmode_method)
|
PHP_GNUPG_FALIAS(seterrormode, arginfo_gnupg_errmode_method)
|
||||||
PHPC_FE_END
|
PHPC_FE_END
|
||||||
};
|
};
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
Loading…
Reference in a new issue