2 +----------------------------------------------------------------------+
4 +----------------------------------------------------------------------+
5 | Copyright (c) 1997-2008 The PHP Group |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 | Author: Yoshihiro Yamazaki <yoya@awm.jp> |
16 +----------------------------------------------------------------------+
24 extern zend_module_entry swfed_module_entry;
25 #define phpext_swfed_ptr &swfed_module_entry
28 #define PHP_SWFED_API __declspec(dllexport)
37 PHP_MINIT_FUNCTION(swfed);
38 PHP_MSHUTDOWN_FUNCTION(swfed);
39 PHP_RINIT_FUNCTION(swfed);
40 PHP_RSHUTDOWN_FUNCTION(swfed);
41 PHP_MINFO_FUNCTION(swfed);
43 PHP_FUNCTION(confirm_swfed_compiled); /* For testing, remove later. */
45 static zend_class_entry *swfeditor_ce;
47 PHP_METHOD(swfed, __construct);
48 PHP_METHOD(swfed, input);
49 PHP_METHOD(swfed, output);
50 PHP_METHOD(swfed, swfInfo);
51 PHP_METHOD(swfed, _destroy_and_exit); // for debug
53 PHP_METHOD(swfed, getHeaderInfo);
54 PHP_METHOD(swfed, setHeaderInfo);
55 PHP_METHOD(swfed, getTagList);
56 PHP_METHOD(swfed, getTagDetail);
57 PHP_METHOD(swfed, getTagInfo);
58 PHP_METHOD(swfed, getTagData);
59 PHP_METHOD(swfed, replaceTagData);
60 PHP_METHOD(swfed, getTagDataByCID);
61 PHP_METHOD(swfed, replaceTagDataByCID);
62 PHP_METHOD(swfed, getTagContentsByCID);
63 PHP_METHOD(swfed, replaceTagContentsByCID);
64 PHP_METHOD(swfed, removeTag);
65 PHP_METHOD(swfed, printTagData);
67 PHP_METHOD(swfed, getShapeData);
68 PHP_METHOD(swfed, replaceShapeData);
69 PHP_METHOD(swfed, setShapeAdjustMode);
70 PHP_METHOD(swfed, getShapeIdListByBitmapRef);
71 PHP_METHOD(swfed, getBitmapSize);
73 PHP_METHOD(swfed, getJpegData);
74 PHP_METHOD(swfed, getJpegAlpha);
75 PHP_METHOD(swfed, replaceJpegData);
76 PHP_METHOD(swfed, getPNGData);
77 PHP_METHOD(swfed, replacePNGData);
78 PHP_METHOD(swfed, replaceGIFData);
79 PHP_METHOD(swfed, replaceBitmapData);
80 PHP_METHOD(swfed, applyShapeMatrixFactor);
81 PHP_METHOD(swfed, applyShapeRectFactor);
82 PHP_METHOD(swfed, getSoundData);
83 PHP_METHOD(swfed, replaceMLDData);
84 PHP_METHOD(swfed, getEditString);
85 PHP_METHOD(swfed, replaceEditString);
86 PHP_METHOD(swfed, getActionData);
87 PHP_METHOD(swfed, disasmActionData);
88 PHP_METHOD(swfed, setActionVariables);
89 PHP_METHOD(swfed, replaceActionStrings);
90 PHP_METHOD(swfed, replaceMovieClip);
92 PHP_METHOD(swfed, setCompressLevel);
93 PHP_METHOD(swfed, rebuild);
94 PHP_METHOD(swfed, purgeUselessContents);
96 PHP_METHOD(swfed, isShapeTagData);
97 PHP_METHOD(swfed, isBitmapTagData);
99 Declare any global variables you may need between the BEGIN
102 ZEND_BEGIN_MODULE_GLOBALS(swfed)
105 ZEND_END_MODULE_GLOBALS(swfed)
108 /* In every utility function you add that needs to use variables
109 in php_swfed_globals, call TSRMLS_FETCH(); after declaring other
110 variables used by that function, or better yet, pass in TSRMLS_CC
111 after the last function argument and declare your utility function
112 with TSRMLS_DC after the last declared argument. Always refer to
113 the globals in your function as SWFED_G(variable). You are
114 encouraged to rename these macros something shorter, see
115 examples in any other php module directory.
119 #define SWFED_G(v) TSRMG(swfed_globals_id, zend_swfed_globals *, v)
121 #define SWFED_G(v) (swfed_globals.v)
124 #define REGISTER_SWFED_CLASS_CONST_LONG(const_name, value) \
125 zend_declare_class_constant_long(swfeditor_ce, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
128 #endif /* PHP_SWFED_H */
136 * vim600: noet sw=4 ts=4 fdm=marker
137 * vim<600: noet sw=4 ts=4