2000-06-15 09:57:23 +08:00
|
|
|
/* __header_here__ */
|
2000-06-09 10:51:43 +08:00
|
|
|
|
2000-07-03 08:41:19 +08:00
|
|
|
#ifndef PHP_EXTNAME_H
|
|
|
|
#define PHP_EXTNAME_H
|
2000-06-09 10:51:43 +08:00
|
|
|
|
2000-06-10 02:04:17 +08:00
|
|
|
extern zend_module_entry extname_module_entry;
|
|
|
|
#define phpext_extname_ptr &extname_module_entry
|
2000-06-09 10:51:43 +08:00
|
|
|
|
|
|
|
#ifdef PHP_WIN32
|
2000-06-10 02:04:17 +08:00
|
|
|
#define PHP_EXTNAME_API __declspec(dllexport)
|
2000-06-09 10:51:43 +08:00
|
|
|
#else
|
2000-06-10 02:04:17 +08:00
|
|
|
#define PHP_EXTNAME_API
|
2000-06-09 10:51:43 +08:00
|
|
|
#endif
|
|
|
|
|
2000-06-10 02:04:17 +08:00
|
|
|
PHP_MINIT_FUNCTION(extname);
|
|
|
|
PHP_MSHUTDOWN_FUNCTION(extname);
|
|
|
|
PHP_RINIT_FUNCTION(extname);
|
|
|
|
PHP_RSHUTDOWN_FUNCTION(extname);
|
|
|
|
PHP_MINFO_FUNCTION(extname);
|
2000-06-09 10:51:43 +08:00
|
|
|
|
2000-06-10 02:04:17 +08:00
|
|
|
PHP_FUNCTION(confirm_extname_compiled); /* For testing, remove later. */
|
2000-06-10 05:47:20 +08:00
|
|
|
/* __function_declarations_here__ */
|
2000-06-09 10:51:43 +08:00
|
|
|
|
2000-10-06 04:48:12 +08:00
|
|
|
/*
|
|
|
|
Declare any global variables you may need between the BEGIN
|
|
|
|
and END macros here:
|
|
|
|
|
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(extname)
|
|
|
|
int global_variable;
|
|
|
|
ZEND_END_MODULE_GLOBALS(extname)
|
2000-06-10 02:04:17 +08:00
|
|
|
*/
|
2000-06-09 10:51:43 +08:00
|
|
|
|
2000-06-10 02:04:17 +08:00
|
|
|
/* In every function that needs to use variables in php_extname_globals,
|
|
|
|
do call EXTNAMELS_FETCH(); after declaring other variables used by
|
|
|
|
that function, and always refer to them as EXTNAMEG(variable).
|
2000-06-09 10:51:43 +08:00
|
|
|
You are encouraged to rename these macros something shorter, see
|
|
|
|
examples in any other php module directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef ZTS
|
2000-06-10 02:04:17 +08:00
|
|
|
#define EXTNAMEG(v) (extname_globals->v)
|
2000-10-03 23:51:39 +08:00
|
|
|
#define EXTNAMELS_FETCH() php_extname_globals *extname_globals = ts_resource(extname_globals_id)
|
2000-06-09 10:51:43 +08:00
|
|
|
#else
|
2000-06-10 02:04:17 +08:00
|
|
|
#define EXTNAMEG(v) (extname_globals.v)
|
|
|
|
#define EXTNAMELS_FETCH()
|
2000-06-09 10:51:43 +08:00
|
|
|
#endif
|
|
|
|
|
2000-07-03 08:41:19 +08:00
|
|
|
#endif /* PHP_EXTNAME_H */
|
2000-06-09 10:51:43 +08:00
|
|
|
|
2000-06-15 09:57:23 +08:00
|
|
|
/* __footer_here__ */
|