tizen beta release
[profile/ivi/gst-openmax0.10.git] / omx / gstomx_interface.c
1 /*
2  * Copyright (C) 2008-2009 Nokia Corporation.
3  *
4  * Author: Felipe Contreras <felipe.contreras@nokia.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation
9  * version 2.1 of the License.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  */
21
22 #include "gstomx_interface.h"
23
24 GType
25 gst_omx_get_type (void)
26 {
27   static GType type = 0;
28
29   if (G_UNLIKELY (type == 0)) {
30     GTypeInfo *type_info;
31
32     type_info = g_new0 (GTypeInfo, 1);
33
34     type_info->class_size = sizeof (GstOmxClass);
35
36     type = g_type_register_static (G_TYPE_INTERFACE, "GstOmx", type_info, 0);
37     g_type_interface_add_prerequisite (type, GST_TYPE_IMPLEMENTS_INTERFACE);
38   }
39
40   return type;
41 }