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

📄 swfdec_script.h

📁 Swfdec still is development software, but has also followed a rigid no-crashes-allowed policy. I b
💻 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_H_#define _SWFDEC_SCRIPT_H_#include <libswfdec/swfdec.h>#include <libswfdec/swfdec_types.h>#include <libswfdec/swfdec_bits.h>#include <libswfdec/js/jsapi.h>G_BEGIN_DECLS//typedef struct _SwfdecScript SwfdecScript;typedef GPtrArray 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 {  /* must be first arg */  JSFunction *		fun;			/* function script belongs to or NULL */  SwfdecBuffer *	buffer;			/* buffer holding the script */  unsigned int	  	refcount;		/* reference count */  char *		name;			/* name identifying this script */  unsigned int		version;		/* version of the script */  gpointer		debugger;		/* debugger owning us or NULL */  /* needed by functions */  SwfdecBuffer *	constant_pool;		/* constant pool action */  guint			flags;			/* SwfdecScriptFlags */  guint8 *		preloads;		/* NULL or where to preload variables to */};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		swfdec_constant_pool_size	(SwfdecConstantPool *	pool);const char *	swfdec_constant_pool_get	(SwfdecConstantPool *	pool,						 guint			i);void		swfdec_constant_pool_free	(SwfdecConstantPool *	pool);SwfdecScript *	swfdec_script_new		(SwfdecBits *		bits,						 const char *		name,						 unsigned int	      	version);SwfdecScript *	swfdec_script_new_for_player  	(SwfdecPlayer *		player,						 SwfdecBits *		bits,						 const char *		name,						 unsigned int	      	version);void		swfdec_script_ref		(SwfdecScript *		script);void		swfdec_script_unref		(SwfdecScript *		script);JSBool		swfdec_script_interpret		(SwfdecScript *		script,						 JSContext *		cx,						 jsval *		rval);jsval		swfdec_script_execute		(SwfdecScript *		script,						 SwfdecScriptable *	scriptable);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 + -