diff options
Diffstat (limited to 'ext/swf/php_swf.h')
-rw-r--r-- | ext/swf/php_swf.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/swf/php_swf.h b/ext/swf/php_swf.h index 6c00a97ef4..891581e4d8 100644 --- a/ext/swf/php_swf.h +++ b/ext/swf/php_swf.h @@ -28,6 +28,7 @@ extern zend_module_entry swf_module_entry; PHP_MINIT_FUNCTION(swf); PHP_MINFO_FUNCTION(swf); +PHP_RINIT_FUNCTION(swf); extern void php_swf_define(INTERNAL_FUNCTION_PARAMETERS, int opt); extern void php_swf_fill_bitmap(INTERNAL_FUNCTION_PARAMETERS, int opt); extern void php_swf_geo_same(INTERNAL_FUNCTION_PARAMETERS, int opt); @@ -99,6 +100,19 @@ PHP_FUNCTION(swf_translate); PHP_FUNCTION(swf_rotate); PHP_FUNCTION(swf_posround); +typedef struct { + int use_file; + char *tmpfile_name; +} php_swf_globals; + +#ifdef ZTS +#define SWFG(v) (swf_globals->v) +#define SWFLS_FETCH() php_swf_globals *swf_globals = ts_resource(gd_swf_id) +#else +#define SWFG(v) (swf_globals.v) +#define SWFLS_FETCH() +#endif + #else #define swf_module_ptr NULL #endif /* HAVE_FLASH */ |