1 /* Gnome-Streamer
2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
18 */
21 #ifndef __GST_PLUGIN_H__
22 #define __GST_PLUGIN_H__
25 #include <gmodule.h>
27 #include <gst/gsttype.h>
28 #include <gst/gstelement.h>
30 #include "config.h"
33 typedef struct _GstPlugin GstPlugin;
34 typedef struct _GstPluginElement GstPluginElement;
36 struct _GstPlugin {
37 gchar *name; /* name of the plugin */
38 gchar *longname; /* long name of plugin */
39 gchar *filename; /* filename it came from */
41 GList *types; /* list of types provided */
42 GList *elements; /* list of elements provided */
43 GList *identifiers; /* list of identifiers */
44 };
47 typedef GstPlugin * (*GstPluginInitFunc) (GModule *module);
49 GstPlugin *gst_plugin_new(gchar *name);
50 void gst_plugin_set_longname(GstPlugin *plugin,gchar *longname);
52 void gst_plugin_init();
53 void gst_plugin_load_all();
54 gboolean gst_plugin_load(gchar *name);
55 gboolean gst_plugin_load_absolute(gchar *name);
57 void gst_plugin_add_factory(GstPlugin *plugin,GstElementFactory *factory);
59 GstPlugin *gst_plugin_find(gchar *name);
60 GList *gst_plugin_get_list();
61 GstElementFactory *gst_plugin_find_elementfactory(gchar *name);
63 #endif /* __GST_PLUGIN_H__ */