diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-04-21 00:14:39 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-04-21 00:14:39 +0000 |
commit | 8e7dc911d41be3013198436848492efbce679c9a (patch) | |
tree | e26bc7209baa161d7a790c4f3f2917db201fa7a1 /src/demuxers/demux.h | |
parent | 9906645c4669be8476c683b7dfcf321b99ac15a1 (diff) | |
download | xine-lib-8e7dc911d41be3013198436848492efbce679c9a.tar.gz xine-lib-8e7dc911d41be3013198436848492efbce679c9a.tar.bz2 |
Turned demuxers into plugins. Change plugins naming scheme (see
xine_internal.h). Fixed load_plugins* to new API. Add iface version
into demux_plugin_t, add version checking into init_demux_plugin.
Fixed get_identifier from demuxers (void param). Turned libw32dll
into codec plugin (only compiling side yet).
CVS patchset: 11
CVS date: 2001/04/21 00:14:39
Diffstat (limited to 'src/demuxers/demux.h')
-rw-r--r-- | src/demuxers/demux.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/demuxers/demux.h b/src/demuxers/demux.h index a7e6f8292..59a132917 100644 --- a/src/demuxers/demux.h +++ b/src/demuxers/demux.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: demux.h,v 1.2 2001/04/19 09:46:57 f1rmb Exp $ + * $Id: demux.h,v 1.3 2001/04/21 00:14:40 f1rmb Exp $ */ #ifndef HAVE_DEMUX_H @@ -31,6 +31,8 @@ #include "input_plugin.h" #endif +#define DEMUXER_PLUGIN_IFACE_VERSION 1 + #define DEMUX_OK 0 #define DEMUX_FINISHED 1 @@ -55,6 +57,11 @@ typedef struct demux_plugin_s demux_plugin_t; struct demux_plugin_s { /* + * plugin interface version, lower versions _may_ be supported + */ + int interface_version; + + /* * ask demuxer to open the given stream (input-plugin) * using the content-detection method specified in <stage> * @@ -98,7 +105,7 @@ struct demux_plugin_s * return human readable identifier for this plugin */ - char* (*get_identifier) (demux_plugin_t *this); + char* (*get_identifier) (void); } ; @@ -107,19 +114,9 @@ struct demux_plugin_s * * make sure you provide this (and only this!) function call: * - * demux_plugin_t *init_demux_plugin (config_values_t *cfg, uint32_t xd); + * demux_plugin_t *init_demux_plugin (int iface_version, config_values_t *cfg); * */ -demux_plugin_t *init_demux_mpeg (config_values_t *cfg, uint32_t xd); - -demux_plugin_t *init_demux_mpeg_block (config_values_t *cfg, uint32_t xd); - -demux_plugin_t *init_demux_avi (config_values_t *cfg, uint32_t xd); - -demux_plugin_t *init_demux_mpeg_audio (config_values_t *cfg, uint32_t xd); - -demux_plugin_t *init_demux_mpeg_elem(config_values_t *cfg, uint32_t xd); - #endif |