mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
88b3b2c712
* autogen.sh: Fixed a left over configure.in to configure.ac * confiugre.ac: Added check foo for NUnit * gstreamer-sharp.mdp: * gstreamer-sharp.mds: Added MonoDevelop solution * source/Makefile.am: Cleaned and fixed * tests/ConsoleUi.cs: * tests/ApplicationTest.cs: * tests/BinTest.cs: * tests/Makefile.am: Added NUnit test framework and a few tests for Gst.Application and Gst.Bin * gstreamer-sharp/CommonTags.cs: * gstreamer-sharp/*.custom: * gstreamer-sharp/glue/*.c: Cleaned up * gstreamer-sharp/Application.cs: New application bindings; fixed to work properly with GStreamer 0.10 * gstreamer-sharp/Version.cs: New Gst.Version class * gstreamer-sharp/Makefile.am: Added Version.cs * gstreamer-sharp/plugins-base/PlayBin.cs: Fixed and extended PlayBin element binding with new (but not all) properties * Makefile.am: Added tests git-svn-id: svn://anonsvn.mono-project.com/source/branches/abock/gstreamer-sharp@60902 e3ebcda4-bce8-0310-ba0a-eca2169e7518
25 lines
607 B
C
25 lines
607 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);
|
|
}
|