diff options
Diffstat (limited to 'gst/gstplugin.h')
-rw-r--r-- | gst/gstplugin.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gst/gstplugin.h b/gst/gstplugin.h index 299d10edc1..48b9c94669 100644 --- a/gst/gstplugin.h +++ b/gst/gstplugin.h @@ -40,7 +40,7 @@ typedef struct _GstPlugin GstPlugin; -typedef struct _GstPluginElement GstPluginElement; +typedef struct _GstPluginDesc GstPluginDesc; struct _GstPlugin { gchar *name; /* name of the plugin */ @@ -57,12 +57,19 @@ struct _GstPlugin { gboolean loaded; /* if the plugin is in memory */ }; +/* Initialiser function: returns TRUE if plugin initialised successfully */ +typedef gboolean (*GstPluginInitFunc) (GModule *module, GstPlugin *plugin); -typedef GstPlugin* (*GstPluginInitFunc) (GModule *module); +struct _GstPluginDesc { + gint major_version; /* major version of core that plugin was compiled for */ + gint minor_version; /* minor version of core that plugin was compiled for */ + gchar *name; /* name of plugin */ + GstPluginInitFunc plugin_init; /* pointer to plugin_init function */ +}; void _gst_plugin_initialize (void); -GstPlugin* gst_plugin_new (const gchar *name); +GstPlugin* gst_plugin_new (const gchar *name, gint major, gint minor); void gst_plugin_add_path (const gchar *path); |