gstreamer/gstreamer-sharp/glue/miniobject.c

26 lines
585 B
C
Raw Normal View History

// 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);
}
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 };
2009-04-07 09:27:20 +00:00
g_type_query (parent, &query);
2009-04-07 09:27:20 +00:00
info.class_size = query.class_size;
info.instance_size = query.instance_size;
2009-04-07 09:27:20 +00:00
return g_type_register_static (parent, name, &info, 0);
}