]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/blob - gst/elements/gstelements.c
don't mix tabs and spaces
[glsdk/gstreamer0-10.git] / gst / elements / gstelements.c
1 /* GStreamer
2  * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3  *                    2000 Wim Taymans <wtay@chello.be>
4  *
5  * gstelements.c:
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
24 #ifdef HAVE_CONFIG_H
25 #  include "config.h"
26 #endif
28 #include <gst/gst.h>
30 #include "gstaggregator.h"
31 #include "gstfakesink.h"
32 #include "gstfakesrc.h"
33 #include "gstfdsink.h"
34 #include "gstfdsrc.h"
35 #include "gstfilesink.h"
36 #include "gstfilesrc.h"
37 #include "gstidentity.h"
38 #include "gstmd5sink.h"
39 #include "gstmultifilesrc.h"
40 #include "gstpipefilter.h"
41 #include "gstshaper.h"
42 #include "gststatistics.h"
43 #include "gsttee.h"
44 #include "gsttypefind.h"
47 struct _elements_entry
48 {
49   gchar *name;
50   guint rank;
51     GType (*type) (void);
52 };
55 extern GType gst_filesrc_get_type (void);
56 extern GstElementDetails gst_filesrc_details;
58 static struct _elements_entry _elements[] = {
59   {"aggregator", GST_RANK_NONE, gst_aggregator_get_type},
60   {"fakesrc", GST_RANK_NONE, gst_fakesrc_get_type},
61   {"fakesink", GST_RANK_NONE, gst_fakesink_get_type},
62   {"fdsink", GST_RANK_NONE, gst_fdsink_get_type},
63   {"fdsrc", GST_RANK_NONE, gst_fdsrc_get_type},
64   {"filesrc", GST_RANK_NONE, gst_filesrc_get_type},
65   {"filesink", GST_RANK_NONE, gst_filesink_get_type},
66   {"identity", GST_RANK_NONE, gst_identity_get_type},
67   {"md5sink", GST_RANK_NONE, gst_md5sink_get_type},
68   {"multifilesrc", GST_RANK_NONE, gst_multifilesrc_get_type},
69   {"pipefilter", GST_RANK_NONE, gst_pipefilter_get_type},
70   {"shaper", GST_RANK_NONE, gst_shaper_get_type},
71   {"statistics", GST_RANK_NONE, gst_statistics_get_type},
72   {"tee", GST_RANK_NONE, gst_tee_get_type},
73   {"typefind", GST_RANK_NONE, gst_type_find_element_get_type},
74   {NULL, 0},
75 };
77 static gboolean
78 plugin_init (GstPlugin * plugin)
79 {
80   struct _elements_entry *my_elements = _elements;
82   while ((*my_elements).name) {
83     if (!gst_element_register (plugin, (*my_elements).name, (*my_elements).rank,
84             ((*my_elements).type) ()))
85       return FALSE;
86     my_elements++;
87   }
89   return TRUE;
90 }
92 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
93     GST_VERSION_MINOR,
94     "gstelements",
95     "standard GStreamer elements",
96     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN)