cvs: pear /XMMS gtkxmms php_xmms.h xmms.c
| From: | Rasmus Lerdorf | Date: | Sat, 11 Aug 2001 06:57:32 +0000 |
| Subject: | cvs: pear /XMMS gtkxmms php_xmms.h xmms.c | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-462@lists.php.net to get a copy of this message | ||
rasmus Sat Aug 11 02:57:32 2001 EDT
Modified files:
/pear/XMMS gtkxmms php_xmms.h xmms.c
Log:
Grumble
Index: pear/XMMS/gtkxmms
diff -u pear/XMMS/gtkxmms:1.2 pear/XMMS/gtkxmms:1.3
--- pear/XMMS/gtkxmms:1.2 Thu Aug 9 20:36:50 2001
+++ pear/XMMS/gtkxmms Sat Aug 11 02:57:31 2001
@@ -1,7 +1,9 @@
#!/usr/local/bin/php -q
<?
dl('php_gtk.so');
-dl('xmms.so');
+if(!extension_loaded('xmms')) {
+ dl('xmms.so');
+}
function delete_event()
{
Index: pear/XMMS/php_xmms.h
diff -u pear/XMMS/php_xmms.h:1.3 pear/XMMS/php_xmms.h:1.4
--- pear/XMMS/php_xmms.h:1.3 Fri Aug 10 05:49:21 2001
+++ pear/XMMS/php_xmms.h Sat Aug 11 02:57:32 2001
@@ -65,9 +65,9 @@
PHP_FUNCTION(xmms_pl_win);
PHP_FUNCTION(xmms_eq_win);
-PHP_BEGIN_MODULE_GLOBALS(xmms)
+ZEND_BEGIN_MODULE_GLOBALS(xmms)
int session;
-PHP_END_MODULE_GLOBALS(xmms)
+ZEND_END_MODULE_GLOBALS(xmms)
/* In every function that needs to use variables in php_xmms_globals,
call TSRM_FETCH(); after declaring other variables used by
@@ -77,7 +77,7 @@
*/
#ifdef ZTS
-#define XG(v) TSRMG(xmms_globals_id, php_xmms_globals *, v)
+#define XG(v) TSRMG(xmms_globals_id, zend_xmms_globals *, v)
#else
#define XG(v) (xmms_globals.v)
#endif
Index: pear/XMMS/xmms.c
diff -u pear/XMMS/xmms.c:1.3 pear/XMMS/xmms.c:1.4
--- pear/XMMS/xmms.c:1.3 Fri Aug 10 05:49:21 2001
+++ pear/XMMS/xmms.c Sat Aug 11 02:57:32 2001
@@ -25,7 +25,7 @@
#include "ext/standard/info.h"
#include "php_xmms.h"
-PHP_DECLARE_MODULE_GLOBALS(xmms)
+ZEND_DECLARE_MODULE_GLOBALS(xmms)
/* {{{ xmms_functions[]
*
@@ -81,21 +81,21 @@
#endif
/* {{{ php_xmms_init_globals */
-static void php_xmms_init_globals(php_xmms_globals *xmms_globals)
+static void php_xmms_init_globals(zend_xmms_globals *xmms_globals)
{
xmms_globals->session = 0;
}
/* }}} */
PHP_INI_BEGIN()
- STD_PHP_INI_ENTRY("xmms.session", "0", PHP_INI_ALL, OnUpdateInt, session,
php_xmms_globals, xmms_globals)
+ STD_PHP_INI_ENTRY("xmms.session", "0", PHP_INI_ALL, OnUpdateInt, session,
zend_xmms_globals, xmms_globals)
PHP_INI_END()
/* {{{ PHP_MINIT_FUNCTION
*/
PHP_MINIT_FUNCTION(xmms)
{
- ZEND_INIT_MODULE_GLOBALS(xmms, php_xmms_init_globals, NULL);
+ ZEND_INIT_MODULE_GLOBALS(xmms, zend_xmms_init_globals, NULL);
REGISTER_INI_ENTRIES();
return SUCCESS;