From b281dc0776530990676b315d19c6069ee507879f Mon Sep 17 00:00:00 2001 From: yoya Date: Fri, 1 Apr 2011 10:29:14 +0000 Subject: [PATCH] =?utf8?q?swfInfo=20=E3=81=AE=E9=96=A2=E6=95=B0=E3=81=AE?= =?utf8?q?=E4=BD=8D=E7=BD=AE=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/swfed/trunk@501 7c90b180-03d5-4157-b861-58a559ae9d1e --- src/php_swfed.c | 15 ++++++++------- src/php_swfed.h | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/php_swfed.c b/src/php_swfed.c index f2fec1e..265fa88 100644 --- a/src/php_swfed.c +++ b/src/php_swfed.c @@ -56,7 +56,9 @@ zend_function_entry swfed_functions[] = { PHP_ME(swfed, __construct, NULL, 0) PHP_ME(swfed, input, NULL, 0) PHP_ME(swfed, output, NULL, 0) + PHP_ME(swfed, swfInfo, NULL, 0) PHP_ME(swfed, _destroy_and_exit, NULL, 0) // for debug + PHP_ME(swfed, getHeaderInfo, NULL, 0) PHP_ME(swfed, setHeaderInfo, NULL, 0) PHP_ME(swfed, getTagList, NULL, 0) @@ -89,7 +91,6 @@ zend_function_entry swfed_functions[] = { PHP_ME(swfed, replaceMovieClip, NULL, 0) PHP_ME(swfed, setCompressLevel, NULL, 0) - PHP_ME(swfed, swfInfo, NULL, 0) PHP_ME(swfed, rebuild, NULL, 0) PHP_ME(swfed, purgeUselessContents, NULL, 0) {NULL, NULL, NULL} /* Must be the last line in swfed_functions[] */ @@ -317,6 +318,12 @@ PHP_METHOD(swfed, output) { RETURN_STRINGL(new_buff, len, 0); } +PHP_METHOD(swfed, swfInfo) { + swf_object_t *swf = get_swf_object(getThis() TSRMLS_CC); + swf_object_print(swf); + RETURN_TRUE; +} + PHP_METHOD(swfed, _destroy_and_exit) { // for debug swf_object_t *swf = NULL; swf = get_swf_object(getThis() TSRMLS_CC); @@ -1223,12 +1230,6 @@ PHP_METHOD(swfed, replaceMovieClip) { RETURN_TRUE; } -PHP_METHOD(swfed, swfInfo) { - swf_object_t *swf = get_swf_object(getThis() TSRMLS_CC); - swf_object_print(swf); - RETURN_TRUE; -} - PHP_METHOD(swfed, rebuild) { swf_object_t *swf = get_swf_object(getThis() TSRMLS_CC); if (swf_object_rebuild(swf)) { diff --git a/src/php_swfed.h b/src/php_swfed.h index 5383f01..7e1ae54 100644 --- a/src/php_swfed.h +++ b/src/php_swfed.h @@ -47,6 +47,7 @@ static zend_class_entry *swfeditor_ce; PHP_METHOD(swfed, __construct); PHP_METHOD(swfed, input); PHP_METHOD(swfed, output); +PHP_METHOD(swfed, swfInfo); PHP_METHOD(swfed, _destroy_and_exit); // for debug // PHP_METHOD(swfed, getHeaderInfo); @@ -81,7 +82,6 @@ PHP_METHOD(swfed, getActionData); PHP_METHOD(swfed, disasmActionData); PHP_METHOD(swfed, setActionVariables); PHP_METHOD(swfed, replaceMovieClip); -PHP_METHOD(swfed, swfInfo); PHP_METHOD(swfed, setCompressLevel); PHP_METHOD(swfed, rebuild); PHP_METHOD(swfed, purgeUselessContents); -- 2.11.0