mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 14:38:48 +00:00
Move explicit type registrations from Value.cs directly to Application.Init.
This commit is contained in:
parent
9b85d88450
commit
9d71f4e833
2 changed files with 12 additions and 46 deletions
gstreamer-sharp
|
@ -103,20 +103,18 @@ namespace Gst {
|
|||
private static void RegisterManagedTypes() {
|
||||
GLib.GType.TypeResolver += GstTypeResolver;
|
||||
|
||||
GLib.GType t;
|
||||
|
||||
t = Gst.Fraction.GType;
|
||||
t = Gst.DoubleRange.GType;
|
||||
t = Gst.IntRange.GType;
|
||||
t = Gst.FractionRange.GType;
|
||||
t = Gst.Fourcc.GType;
|
||||
t = Gst.Date.GType;
|
||||
t = Gst.List.GType;
|
||||
t = Gst.Array.GType;
|
||||
t = Gst.Caps.GType;
|
||||
t = Gst.Structure.GType;
|
||||
t = Gst.TagList.GType;
|
||||
t = Gst.MiniObject.GType;
|
||||
GLib.GType.Register (Fraction.GType, typeof (Fraction));
|
||||
GLib.GType.Register (IntRange.GType, typeof (IntRange));
|
||||
GLib.GType.Register (DoubleRange.GType, typeof (DoubleRange));
|
||||
GLib.GType.Register (FractionRange.GType, typeof (FractionRange));
|
||||
GLib.GType.Register (Fourcc.GType, typeof (Fourcc));
|
||||
GLib.GType.Register (Date.GType, typeof (Date));
|
||||
GLib.GType.Register (List.GType, typeof (List));
|
||||
GLib.GType.Register (Array.GType, typeof (Array));
|
||||
GLib.GType.Register (Caps.GType, typeof (Caps));
|
||||
GLib.GType.Register (Structure.GType, typeof (Structure));
|
||||
GLib.GType.Register (TagList.GType, typeof (TagList));
|
||||
GLib.GType.Register (MiniObject.GType, typeof (MiniObject));
|
||||
|
||||
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
|
||||
}
|
||||
|
|
|
@ -114,10 +114,6 @@ namespace Gst {
|
|||
return new Fraction (a.Numerator * b.Denominator, a.Denominator * b.Numerator);
|
||||
}
|
||||
|
||||
static Fraction () {
|
||||
GLib.GType.Register (Fraction.GType, typeof (Fraction));
|
||||
}
|
||||
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
private static extern void gst_value_set_fraction (ref GLib.Value v, int numerator, int denominator);
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
|
@ -166,10 +162,6 @@ namespace Gst {
|
|||
return val;
|
||||
}
|
||||
|
||||
static DoubleRange () {
|
||||
GLib.GType.Register (DoubleRange.GType, typeof (DoubleRange));
|
||||
}
|
||||
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
private static extern IntPtr gst_double_range_get_type ();
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
|
@ -218,10 +210,6 @@ namespace Gst {
|
|||
return val;
|
||||
}
|
||||
|
||||
static IntRange () {
|
||||
GLib.GType.Register (IntRange.GType, typeof (IntRange));
|
||||
}
|
||||
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
private static extern IntPtr gst_int_range_get_type ();
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
|
@ -288,10 +276,6 @@ namespace Gst {
|
|||
return val;
|
||||
}
|
||||
|
||||
static FractionRange () {
|
||||
GLib.GType.Register (FractionRange.GType, typeof (FractionRange));
|
||||
}
|
||||
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
private static extern IntPtr gst_fraction_range_get_type ();
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
|
@ -368,10 +352,6 @@ namespace Gst {
|
|||
return fourcc.ToString ();
|
||||
}
|
||||
|
||||
static Fourcc () {
|
||||
GLib.GType.Register (Fourcc.GType, typeof (Fourcc));
|
||||
}
|
||||
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
private static extern IntPtr gst_fourcc_get_type ();
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
|
@ -442,10 +422,6 @@ namespace Gst {
|
|||
return val;
|
||||
}
|
||||
|
||||
static Date () {
|
||||
GLib.GType.Register (Date.GType, typeof (Date));
|
||||
}
|
||||
|
||||
[DllImport ("libglib-2.0-0.dll") ]
|
||||
private static extern byte g_date_get_day (IntPtr date);
|
||||
[DllImport ("libglib-2.0-0.dll") ]
|
||||
|
@ -536,10 +512,6 @@ namespace Gst {
|
|||
}
|
||||
}
|
||||
|
||||
static List () {
|
||||
GLib.GType.Register (List.GType, typeof (List));
|
||||
}
|
||||
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
private static extern IntPtr gst_value_list_get_type ();
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
|
@ -621,10 +593,6 @@ namespace Gst {
|
|||
}
|
||||
}
|
||||
|
||||
static Array () {
|
||||
GLib.GType.Register (Array.GType, typeof (Array));
|
||||
}
|
||||
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
private static extern IntPtr gst_value_array_get_type ();
|
||||
[DllImport ("gstreamer-0.10.dll") ]
|
||||
|
|
Loading…
Reference in a new issue