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

📄 swfdec_loader.h

📁 Swfdec is a decoder/renderer for Macromedia Flash animations. The decoding and rendering engine is
💻 H
字号:
/* Swfdec * Copyright (C) 2006-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_LOADER_H_#define _SWFDEC_LOADER_H_#include <glib-object.h>#include <libswfdec/swfdec_buffer.h>#include <libswfdec/swfdec_url.h>G_BEGIN_DECLStypedef enum {  SWFDEC_LOADER_DATA_UNKNOWN,  SWFDEC_LOADER_DATA_SWF,  SWFDEC_LOADER_DATA_FLV,  SWFDEC_LOADER_DATA_XML,  SWFDEC_LOADER_DATA_TEXT} SwfdecLoaderDataType;/* NB: actal numbers in SwfdecLoaderRequest are important for GetURL2 action */typedef enum {  SWFDEC_LOADER_REQUEST_DEFAULT = 0,  SWFDEC_LOADER_REQUEST_GET = 1,  SWFDEC_LOADER_REQUEST_POST = 2} SwfdecLoaderRequest;typedef struct _SwfdecLoader SwfdecLoader;typedef struct _SwfdecLoaderClass SwfdecLoaderClass;#define SWFDEC_TYPE_LOADER                    (swfdec_loader_get_type())#define SWFDEC_IS_LOADER(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_LOADER))#define SWFDEC_IS_LOADER_CLASS(klass)         (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_LOADER))#define SWFDEC_LOADER(obj)                    (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_LOADER, SwfdecLoader))#define SWFDEC_LOADER_CLASS(klass)            (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_LOADER, SwfdecLoaderClass))#define SWFDEC_LOADER_GET_CLASS(obj)          (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_LOADER, SwfdecLoaderClass))struct _SwfdecLoader{  GObject		object;  /*< private >*/  guint			state;		/* SwfdecLoaderState the loader is currently in */  SwfdecURL *		url;		/* the URL for this loader in UTF-8 - must be set on creation */  gulong		size;		/* number of bytes in stream or 0 if unknown */  char *		error;		/* error message if in error state or NULL */  gpointer		target;		/* SwfdecLoaderTarget that gets notified about loading progress */  gpointer		player;		/* SwfdecPlayer belonging to target or %NULL */  SwfdecBufferQueue *	queue;		/* SwfdecBufferQueue managing the input buffers */  SwfdecLoaderDataType	data_type;	/* type this stream is in (identified by swfdec) */};struct _SwfdecLoaderClass{  GObjectClass		object_class;  /* initialize the loader. The URL will be set already. */  void			(* load)	(SwfdecLoader *			loader, 					 SwfdecLoader *			parent,					 SwfdecLoaderRequest		request,					 const char *			data,					 gsize				data_len);  /* if open, close the loader. NB: you may not call push() or eof() after the loader has been closed */  void			(* close)	(SwfdecLoader *			loader);};GType		swfdec_loader_get_type		(void);void		swfdec_loader_open		(SwfdecLoader *		loader,						 const char *		url);void		swfdec_loader_push		(SwfdecLoader *		loader,						 SwfdecBuffer *		buffer);void		swfdec_loader_eof		(SwfdecLoader *		loader);void		swfdec_loader_error		(SwfdecLoader *		loader,						 const char *		error);const SwfdecURL *		swfdec_loader_get_url		(SwfdecLoader *		loader);void		swfdec_loader_set_size		(SwfdecLoader *		loader,						 gulong			size);gulong		swfdec_loader_get_size		(SwfdecLoader *		loader);gulong		swfdec_loader_get_loaded	(SwfdecLoader *		loader);char *  	swfdec_loader_get_filename	(SwfdecLoader *		loader);SwfdecLoaderDataType		swfdec_loader_get_data_type	(SwfdecLoader *		loader);const char *	swfdec_loader_data_type_get_extension						(SwfdecLoaderDataType	type);					 G_END_DECLS#endif

⌨️ 快捷键说明

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