mirror of
https://github.com/php-gnupg/php-gnupg.git
synced 2026-02-04 13:21:34 +00:00
split the iterator into separate file
generic code cleanup updated package-xmls
This commit is contained in:
parent
6bacc28bb6
commit
af81003551
7 changed files with 321 additions and 211 deletions
21
php_gnupg.h
21
php_gnupg.h
|
|
@ -22,7 +22,6 @@
|
|||
#define PHP_GNUPG_H
|
||||
|
||||
extern zend_module_entry gnupg_module_entry;
|
||||
extern zend_module_entry gnupg_keyiterator_module_entry;
|
||||
#define phpext_gnupg_ptr &gnupg_module_entry
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
|
|
@ -50,20 +49,7 @@ typedef struct _ze_gnupg_object{
|
|||
gnupg_object *gnupg_ptr;
|
||||
} ze_gnupg_object;
|
||||
|
||||
typedef struct _gnupg_keylistiterator_object{
|
||||
gpgme_ctx_t ctx;
|
||||
gpgme_error_t err;
|
||||
gpgme_key_t gpgkey;
|
||||
zval pattern;
|
||||
} gnupg_keylistiterator_object;
|
||||
|
||||
typedef struct _ze_gnupg_keylistiterator_object{
|
||||
zend_object zo;
|
||||
gnupg_keylistiterator_object *gnupg_keylistiterator_ptr;
|
||||
} ze_gnupg_keylistiterator_object;
|
||||
|
||||
zend_class_entry *gnupg_class_entry;
|
||||
zend_class_entry *gnupg_keylistiterator_class_entry;
|
||||
|
||||
PHP_MINIT_FUNCTION(gnupg);
|
||||
PHP_MSHUTDOWN_FUNCTION(gnupg);
|
||||
|
|
@ -87,13 +73,6 @@ PHP_FUNCTION(gnupg_decrypt);
|
|||
PHP_FUNCTION(gnupg_decryptverify);
|
||||
PHP_FUNCTION(gnupg_export);
|
||||
|
||||
PHP_FUNCTION(gnupg_keylistiterator_construct);
|
||||
PHP_FUNCTION(gnupg_keylistiterator_current);
|
||||
PHP_FUNCTION(gnupg_keylistiterator_next);
|
||||
PHP_FUNCTION(gnupg_keylistiterator_rewind);
|
||||
PHP_FUNCTION(gnupg_keylistiterator_key);
|
||||
PHP_FUNCTION(gnupg_keylistiterator_valid);
|
||||
|
||||
#ifdef ZTS
|
||||
#define GNUPG_G(v) TSRMG(gnupg_globals_id, zend_gnupg_globals *, v)
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue