git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@60875 e3ebcda4-bce8-0310-ba0a-eca2169e7518
26 lines
638 B
C
26 lines
638 B
C
// 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
|
|
gstsharp_get_type_id (GObject *obj)
|
|
{
|
|
return G_TYPE_FROM_INSTANCE (obj);
|
|
}
|
|
|
|
GType
|
|
gstsharp_register_type (gchar *name, GType parent)
|
|
{
|
|
GTypeQuery query;
|
|
GTypeInfo info = {0, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL };
|
|
|
|
g_type_query (parent, &query);
|
|
|
|
info.class_size = query.class_size;
|
|
info.instance_size = query.instance_size;
|
|
|
|
return g_type_register_static (parent, name, &info, 0);
|
|
}
|