diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-04-13 16:02:53 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-04-13 16:02:53 +0000 |
commit | 3a24b5fe4aec329d35bd1c00dd6945a26b45b5cf (patch) | |
tree | 21ac39d1f79e47c3e00f06acadef6751d58b6c2b /src/input/input_plugin.h | |
parent | f1b15797f864a417477c120f58c847efec04f1f8 (diff) | |
download | xine-lib-3a24b5fe4aec329d35bd1c00dd6945a26b45b5cf.tar.gz xine-lib-3a24b5fe4aec329d35bd1c00dd6945a26b45b5cf.tar.bz2 |
Input plugin api change:
old open() function replaced by :
*_class_get_instance() : return an instance if the plugin handles the mrl
*_plugin_open() : open the stream
CVS patchset: 4598
CVS date: 2003/04/13 16:02:53
Diffstat (limited to 'src/input/input_plugin.h')
-rw-r--r-- | src/input/input_plugin.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/input/input_plugin.h b/src/input/input_plugin.h index 853cb986c..cf29a022e 100644 --- a/src/input/input_plugin.h +++ b/src/input/input_plugin.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_plugin.h,v 1.46 2003/02/28 02:51:48 storri Exp $ + * $Id: input_plugin.h,v 1.47 2003/04/13 16:02:54 tmattern Exp $ */ #ifndef HAVE_INPUT_PLUGIN_H @@ -29,7 +29,7 @@ #include "buffer.h" #include "configfile.h" -#define INPUT_PLUGIN_IFACE_VERSION 11 +#define INPUT_PLUGIN_IFACE_VERSION 12 typedef struct input_class_s input_class_t ; typedef struct input_plugin_s input_plugin_t; @@ -37,10 +37,11 @@ typedef struct input_plugin_s input_plugin_t; struct input_class_s { /* - * open a new instance of this plugin class + * create a new instance of this plugin class + * return NULL if the plugin does'nt handle the given mrl */ - input_plugin_t* (*open_plugin) (input_class_t *this, xine_stream_t *stream, const char *mrl); - + input_plugin_t* (*get_instance) (input_class_t *this, xine_stream_t *stream, const char *mrl); + /* * return short, human readable identifier for this plugin class */ @@ -80,6 +81,12 @@ struct input_class_s { struct input_plugin_s { /* + * open the stream + * return 0 if an error occured + */ + int (*open) (input_plugin_t *this); + + /* * return capabilities of the current playable entity. See * get_current_pos below for a description of a "playable entity" * Capabilities a created by "OR"ing a mask of constants listed |