2005-10-10 17:37:19 +00:00
|
|
|
/*
|
2005-11-29 20:54:36 +00:00
|
|
|
+--------------------------------------------------------------------+
|
|
|
|
| PECL :: gnupg |
|
|
|
|
+--------------------------------------------------------------------+
|
|
|
|
| Redistribution and use in source and binary forms, with or without |
|
|
|
|
| modification, are permitted provided that the conditions mentioned |
|
|
|
|
| in the accompanying LICENSE file are met. |
|
|
|
|
+--------------------------------------------------------------------+
|
2006-03-16 15:52:43 +00:00
|
|
|
| Copyright (c) 2006, Thilo Raufeisen <traufeisen@php.net> |
|
2013-07-08 14:11:30 +00:00
|
|
|
| Copyright (c) 2013, Jim Jagielski <jimjag@php.net> |
|
2016-05-22 17:52:23 +00:00
|
|
|
| Copyright (c) 2016, Jakub Zelenka <bukka@php.net> |
|
2005-11-29 20:54:36 +00:00
|
|
|
+--------------------------------------------------------------------+
|
2005-10-10 17:37:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PHP_GNUPG_KEYLISTITERATOR_H
|
|
|
|
#define PHP_GNUPG_KEYLISTITERATOR_H
|
|
|
|
|
|
|
|
extern zend_module_entry gnupg_keyiterator_module_entry;
|
|
|
|
|
|
|
|
#ifdef PHP_WIN32
|
|
|
|
#define PHP_GNUPG_API __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define PHP_GNUPG_API
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef ZTS
|
|
|
|
#include "TSRM.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gpgme.h>
|
2016-05-22 17:52:23 +00:00
|
|
|
#include "phpc/phpc.h"
|
2005-10-10 17:37:19 +00:00
|
|
|
|
|
|
|
#define gnupg_keylistiterator_init() _gnupg_keylistiterator_init(INIT_FUNC_ARGS_PASSTHRU)
|
2016-05-22 17:52:23 +00:00
|
|
|
extern int _gnupg_keylistiterator_init(INIT_FUNC_ARGS);
|
2005-10-10 17:37:19 +00:00
|
|
|
|
2016-05-22 17:52:23 +00:00
|
|
|
PHPC_OBJ_STRUCT_BEGIN(gnupg_keylistiterator)
|
2005-10-10 17:37:19 +00:00
|
|
|
gpgme_ctx_t ctx;
|
2016-05-22 17:52:23 +00:00
|
|
|
gpgme_error_t err;
|
|
|
|
gpgme_key_t gpgkey;
|
|
|
|
char *pattern;
|
|
|
|
PHPC_OBJ_STRUCT_END()
|
2015-12-27 06:44:02 +00:00
|
|
|
|
2006-11-03 12:38:35 +00:00
|
|
|
PHP_METHOD(gnupg_keylistiterator, __construct);
|
|
|
|
PHP_METHOD(gnupg_keylistiterator, current);
|
|
|
|
PHP_METHOD(gnupg_keylistiterator, next);
|
|
|
|
PHP_METHOD(gnupg_keylistiterator, rewind);
|
|
|
|
PHP_METHOD(gnupg_keylistiterator, key);
|
|
|
|
PHP_METHOD(gnupg_keylistiterator, valid);
|
|
|
|
|
2005-10-10 17:37:19 +00:00
|
|
|
#ifdef ZTS
|
|
|
|
#define GNUPG_G(v) TSRMG(gnupg_globals_id, zend_gnupg_globals *, v)
|
|
|
|
#else
|
|
|
|
#define GNUPG_G(v) (gnupg_globals.v)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* PHP_GNUPG_H */
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
* vim600: noet sw=4 ts=4 fdm=marker
|
|
|
|
* vim<600: noet sw=4 ts=4
|
|
|
|
*/
|