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

📄 swfdec_xml.c

📁 Swfdec is a decoder/renderer for Macromedia Flash animations. The decoding and rendering engine is
💻 C
字号:
/* 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 */#ifdef HAVE_CONFIG_H#include "config.h"#endif#include "swfdec_xml.h"#include "swfdec_as_native_function.h"#include "swfdec_as_object.h"#include "swfdec_as_strings.h"#include "swfdec_debug.h"#include "swfdec_internal.h"#include "swfdec_player_internal.h"G_DEFINE_TYPE (SwfdecXml, swfdec_xml, SWFDEC_TYPE_AS_OBJECT)static voidswfdec_xml_class_init (SwfdecXmlClass *klass){}static voidswfdec_xml_init (SwfdecXml *xml){}voidswfdec_xml_init_context (SwfdecPlayer *player, guint version){  SwfdecAsContext *context;  SwfdecAsObject *xml, *proto;  SwfdecAsValue val;  g_return_if_fail (SWFDEC_IS_PLAYER (player));  context = SWFDEC_AS_CONTEXT (player);  proto = swfdec_as_object_new_empty (context);  if (proto == NULL)    return;  xml = SWFDEC_AS_OBJECT (swfdec_as_object_add_constructor (context->global,       SWFDEC_AS_STR_XML, 0, SWFDEC_TYPE_XML, NULL, 0, proto));  if (xml == NULL)    return;  /* set the right properties on the NetStream.prototype object */  SWFDEC_AS_VALUE_SET_OBJECT (&val, xml);  swfdec_as_object_set_variable (proto, SWFDEC_AS_STR_constructor, &val);  SWFDEC_AS_VALUE_SET_OBJECT (&val, context->Object_prototype);  swfdec_as_object_set_variable (proto, SWFDEC_AS_STR___proto__, &val);}

⌨️ 快捷键说明

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