2006-05-19 19:24:35 +00:00
|
|
|
// Thie file is mostly bits and pieces snipped from the gtk-sharp/glib/glue/object.c code
|
|
|
|
// By Mike Kestner
|
|
|
|
|
|
|
|
#include <glib-object.h>
|
|
|
|
#include <gst/gstminiobject.h>
|
|
|
|
|
|
|
|
GType
|
2009-04-07 09:27:20 +00:00
|
|
|
gstsharp_get_type_id (GObject * obj)
|
|
|
|
{
|
|
|
|
return G_TYPE_FROM_INSTANCE (obj);
|
2006-05-19 19:24:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
2009-04-07 09:27:20 +00:00
|
|
|
gstsharp_register_type (gchar * name, GType parent)
|
|
|
|
{
|
|
|
|
GTypeQuery query;
|
|
|
|
GTypeInfo info = { 0, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL };
|
2006-05-19 19:24:35 +00:00
|
|
|
|
2009-04-07 09:27:20 +00:00
|
|
|
g_type_query (parent, &query);
|
2006-05-19 19:24:35 +00:00
|
|
|
|
2009-04-07 09:27:20 +00:00
|
|
|
info.class_size = query.class_size;
|
|
|
|
info.instance_size = query.instance_size;
|
2006-05-19 19:24:35 +00:00
|
|
|
|
2009-04-07 09:27:20 +00:00
|
|
|
return g_type_register_static (parent, name, &info, 0);
|
2006-05-19 19:24:35 +00:00
|
|
|
}
|