⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swfdec_script_internal.h

📁 Swfdec is a decoder/renderer for Macromedia Flash animations. The decoding and rendering engine is
💻 H
字号:
/* Swfdec * Copyright (C) 2007 Benjamin Otte <otte@gnome.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. *  * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. *  * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor,  * Boston, MA  02110-1301  USA */#ifndef _SWFDEC_SCRIPT_INTERNAL_H_#define _SWFDEC_SCRIPT_INTERNAL_H_#include <libswfdec/swfdec.h>#include <libswfdec/swfdec_as_types.h>#include <libswfdec/swfdec_types.h>#include <libswfdec/swfdec_bits.h>G_BEGIN_DECLStypedef struct _SwfdecScriptArgument SwfdecScriptArgument;typedef struct _SwfdecConstantPool SwfdecConstantPool;typedef enum {  SWFDEC_SCRIPT_PRELOAD_THIS = (1 << 0),  SWFDEC_SCRIPT_SUPPRESS_THIS = (1 << 1),  SWFDEC_SCRIPT_PRELOAD_ARGS = (1 << 2),  SWFDEC_SCRIPT_SUPPRESS_ARGS = (1 << 3),  SWFDEC_SCRIPT_PRELOAD_SUPER = (1 << 4),  SWFDEC_SCRIPT_SUPPRESS_SUPER = (1 << 5),  SWFDEC_SCRIPT_PRELOAD_ROOT = (1 << 6),  SWFDEC_SCRIPT_PRELOAD_PARENT = (1 << 7),  SWFDEC_SCRIPT_PRELOAD_GLOBAL = (1 << 8)} SwfdecScriptFlag;typedef gboolean (* SwfdecScriptForeachFunc) (gconstpointer bytecode, guint action,     const guint8 *data, guint len, gpointer user_data);/* FIXME: May want to typedef to SwfdecBuffer directly */struct _SwfdecScript {  SwfdecBuffer *	buffer;			/* buffer holding the script */  guint		 	refcount;		/* reference count */  char *		name;			/* name identifying this script */  guint			version;		/* version of the script */  guint			n_registers;		/* number of registers */  SwfdecBuffer *	constant_pool;		/* constant pool action */  guint			flags;			/* SwfdecScriptFlags */  guint			n_arguments;  		/* number of arguments */  SwfdecScriptArgument *arguments;		/* arguments or NULL if none */};struct _SwfdecScriptArgument {  char *		name;			/* name of the argument (not GC'ed) */  guint			preload;		/* preload slot to preload to or 0 */};const char *	swfdec_action_get_name		(guint			action);guint		swfdec_action_get_from_name	(const char *		name);SwfdecConstantPool *		swfdec_constant_pool_new_from_action	(const guint8 *		data,							 guint			len,							 guint			version);void		swfdec_constant_pool_free	  	(SwfdecConstantPool *	pool);guint		swfdec_constant_pool_size		(SwfdecConstantPool *	pool);const char *	swfdec_constant_pool_get		(SwfdecConstantPool *	pool,							 guint			i);void		swfdec_constant_pool_attach_to_context	(SwfdecConstantPool *	pool,							 SwfdecAsContext *	context);SwfdecScript *	swfdec_script_new_from_bits   		(SwfdecBits *		bits,							 const char *		name,							 guint			version);gboolean	swfdec_script_foreach			(SwfdecScript *		script,							 SwfdecScriptForeachFunc func,							 gpointer		user_data);char *		swfdec_script_print_action		(guint			action,							 const guint8 *		data,							 guint			len);G_END_DECLS#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -