Initialize Tizen 2.3
[framework/multimedia/gst-plugins-ext0.10.git] / wearable / avsystem / src / gstavsyssrc.c
1 /*
2  * avsystem
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: JongHyuk Choi <jhchoi.choi@samsung.com>
7  *
8  * This library is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU Lesser General Public License as published by the
10  * Free Software Foundation; either version 2.1 of the License, or (at your option)
11  * any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation, Inc., 51
20  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23
24 #ifdef HAVE_CONFIG_H
25 #include "config.h"
26 #endif
27
28 #include <gst/gst.h>
29
30 #include "gstavsysaudiosrc.h"
31
32 GST_DEBUG_CATEGORY (avsystem_src_debug);
33
34 static gboolean
35 plugin_init (GstPlugin *plugin)
36 {
37         gboolean error;
38         /*register the exact name you can find in the framework*/
39         error = gst_element_register (plugin, "avsysaudiosrc",
40                                                                   GST_RANK_NONE,
41                                                                   GST_TYPE_AVSYS_AUDIO_SRC);
42         if (!error)
43                 goto failed;
44
45         GST_DEBUG_CATEGORY_INIT (avsystem_src_debug, "avsystemsrc", 0, "avsystem src plugins");
46         return TRUE;
47
48 failed:
49
50         return FALSE;
51 }
52
53
54 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
55                 GST_VERSION_MINOR,
56                 "avsysaudiosrc",
57                 "AV system audio source plug-in",
58                 plugin_init,
59                 PACKAGE_VERSION,
60                 "LGPL",
61                 "AV System Source",
62                 "http://www.samsung.com")
63