summaryrefslogtreecommitdiffstats
path: root/php_rpminfo.h
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-01-25 13:30:20 +0100
committerRemi Collet <remi@remirepo.net>2018-01-25 13:30:20 +0100
commit7adc0cf86d301028e268f1803ee117bdd74586d5 (patch)
tree72a553f8a633e7ce498fe7579e49db972720ee04 /php_rpminfo.h
parent4daae0625ceaf2aa7aba7bf0a7230044d346e256 (diff)
New function: array rpminfo(string path [, bool full ]);
Diffstat (limited to 'php_rpminfo.h')
-rw-r--r--php_rpminfo.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/php_rpminfo.h b/php_rpminfo.h
index 9c8319c..d90e9e1 100644
--- a/php_rpminfo.h
+++ b/php_rpminfo.h
@@ -22,7 +22,7 @@
extern zend_module_entry rpminfo_module_entry;
#define phpext_rpminfo_ptr &rpminfo_module_entry
-#define PHP_RPMINFO_VERSION "0.1.0" /* Replace with version number for your extension */
+#define PHP_RPMINFO_VERSION "0.1.0-dev" /* Replace with version number for your extension */
#ifdef PHP_WIN32
# define PHP_RPMINFO_API __declspec(dllexport)
@@ -36,15 +36,9 @@ extern zend_module_entry rpminfo_module_entry;
#include "TSRM.h"
#endif
-/*
- Declare any global variables you may need between the BEGIN
- and END macros here:
-
ZEND_BEGIN_MODULE_GLOBALS(rpminfo)
- zend_long global_value;
- char *global_string;
+ rpmts ts;
ZEND_END_MODULE_GLOBALS(rpminfo)
-*/
/* Always refer to the globals in your function as RPMINFO_G(variable).
You are encouraged to rename these macros something shorter, see