diff options
Diffstat (limited to 'php_rpminfo.h')
-rw-r--r-- | php_rpminfo.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/php_rpminfo.h b/php_rpminfo.h index 6516139..ddc912f 100644 --- a/php_rpminfo.h +++ b/php_rpminfo.h @@ -1,8 +1,8 @@ /* +----------------------------------------------------------------------+ - | PHP Version 7 | + | rpminfo extension for PHP | +----------------------------------------------------------------------+ - | Copyright (c) 2018 The PHP Group | + | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -22,22 +22,20 @@ extern zend_module_entry rpminfo_module_entry; #define phpext_rpminfo_ptr &rpminfo_module_entry -#define PHP_RPMINFO_VERSION "0.2.1" - -#ifdef PHP_WIN32 -# define PHP_RPMINFO_API __declspec(dllexport) -#elif defined(__GNUC__) && __GNUC__ >= 4 -# define PHP_RPMINFO_API __attribute__ ((visibility("default"))) -#else -# define PHP_RPMINFO_API -#endif +#define PHP_RPMINFO_VERSION "1.1.1-dev" +#define PHP_RPMINFO_AUTHOR "Remi Collet" +#define PHP_RPMINFO_LICENSE "PHP-3.01" #ifdef ZTS #include "TSRM.h" #endif ZEND_BEGIN_MODULE_GLOBALS(rpminfo) - rpmts ts; + rpmts ts; /* transaction set */ + rpmdb db; /* database */ + int nb_tags; /* stored tags */ + int max_tags; /* allocated tags */ + rpmTagVal *tags; /* tags storage */ ZEND_END_MODULE_GLOBALS(rpminfo) #define RPMINFO_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(rpminfo, v) |