Details
struct GstPlugin
struct GstPlugin {
gchar *name; /* name of the plugin */
gchar *longname; /* long name of plugin */
gchar *filename; /* filename it came from */
GList *types; /* list of types provided */
gint numtypes;
GList *elements; /* list of elements provided */
gint numelements;
gboolean loaded; /* if the plugin is in memory */
}; |
GstPluginInitFunc ()
GstPlugin* (*GstPluginInitFunc) (GModule *module); |
A plugin should implement this function called plugin_init. It will be called
by the loader at statup.
gst_plugin_new ()
GstPlugin* gst_plugin_new (const gchar *name); |
Create a new plugin with given name.
gst_plugin_set_name ()
void gst_plugin_set_name (GstPlugin *plugin,
const gchar *name); |
Sets the name (should be short) of the plugin.
gst_plugin_get_name ()
const gchar* gst_plugin_get_name (GstPlugin *plugin); |
Get the short name of the plugin
gst_plugin_get_longname ()
const gchar* gst_plugin_get_longname (GstPlugin *plugin); |
Get the long descriptive name of the plugin
gst_plugin_set_longname ()
void gst_plugin_set_longname (GstPlugin *plugin,
const gchar *longname); |
Sets the long name (should be descriptive) of the plugin.
gst_plugin_get_filename ()
const gchar* gst_plugin_get_filename (GstPlugin *plugin); |
get the filename of the plugin
gst_plugin_is_loaded ()
gboolean gst_plugin_is_loaded (GstPlugin *plugin); |
queries if the plugin is loaded into memory
gst_plugin_load_all ()
void gst_plugin_load_all (void); |
Load all plugins in the path.
gst_plugin_load ()
gboolean gst_plugin_load (const gchar *name); |
Load the named plugin. Name should be given as
"libplugin.so".
gst_plugin_load_absolute ()
gboolean gst_plugin_load_absolute (const gchar *name); |
gst_plugin_add_path ()
void gst_plugin_add_path (const gchar *path); |
Add a directory to the path searched for plugins.
gst_library_load ()
gboolean gst_library_load (const gchar *name); |
Load the named library. Name should be given as
"liblibrary.so".
gst_plugin_add_factory ()
Add factory to the list of those provided by the plugin.
gst_plugin_add_type ()
Add a typefactory to the list of those provided by the plugin.
gst_plugin_find ()
GstPlugin* gst_plugin_find (const gchar *name); |
Search the list of registered plugins for one of the given name
gst_plugin_get_list ()
GList* gst_plugin_get_list (void); |
get the currently loaded plugins
gst_plugin_get_factory_list ()
GList* gst_plugin_get_factory_list (GstPlugin *plugin); |
get a list of all the factories that this plugin provides
gst_plugin_get_type_list ()
GList* gst_plugin_get_type_list (GstPlugin *plugin); |
get a list of all the typefactories that this plugin provides
gst_plugin_find_elementfactory ()
Find a registered elementfactory by name.
gst_plugin_load_elementfactory ()
Load a registered elementfactory by name.
gst_plugin_load_typefactory ()
void gst_plugin_load_typefactory (const gchar *mime); |
Load a registered typefactory by mime type.
gst_plugin_load_thyself ()
void gst_plugin_load_thyself (xmlNodePtr parent); |
load the plugin from an XML representation
gst_plugin_save_thyself ()
xmlNodePtr gst_plugin_save_thyself (xmlNodePtr parent); |
saves the plugin into an XML representation