1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
7 using System.Collections;
8 using System.Collections.Generic;
9 using System.Runtime.InteropServices;
11 #region Autogenerated code
12 public partial class PtpClock : Gst.SystemClock {
14 public PtpClock (IntPtr raw) : base(raw) {}
16 [DllImport("gstnet-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
17 static extern IntPtr gst_ptp_clock_new(IntPtr name, uint domain);
19 public PtpClock (string name, uint domain) : base (IntPtr.Zero)
21 if (GetType () != typeof (PtpClock)) {
22 var vals = new List<GLib.Value> ();
23 var names = new List<string> ();
25 vals.Add (new GLib.Value (name));
27 vals.Add (new GLib.Value (domain));
28 CreateNativeObject (names.ToArray (), vals.ToArray ());
31 IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
32 Raw = gst_ptp_clock_new(native_name, domain);
33 GLib.Marshaller.Free (native_name);
36 [GLib.Property ("domain")]
39 GLib.Value val = GetProperty ("domain");
40 uint ret = (uint) val;
46 [GLib.Property ("grandmaster-clock-id")]
47 public ulong GrandmasterClockId {
49 GLib.Value val = GetProperty ("grandmaster-clock-id");
50 ulong ret = (ulong) val;
56 [GLib.Property ("internal-clock")]
57 public Gst.Clock InternalClock {
59 GLib.Value val = GetProperty ("internal-clock");
60 Gst.Clock ret = (Gst.Clock) val;
66 [GLib.Property ("master-clock-id")]
67 public ulong MasterClockId {
69 GLib.Value val = GetProperty ("master-clock-id");
70 ulong ret = (ulong) val;
77 // Internal representation of the wrapped structure ABI.
78 static GLib.AbiStruct _class_abi = null;
79 static public new GLib.AbiStruct class_abi {
81 if (_class_abi == null)
82 _class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
83 new GLib.AbiField("_gst_reserved"
84 , Gst.SystemClock.class_abi.Fields
85 , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
88 , (uint) Marshal.SizeOf(typeof(IntPtr))
98 // End of the ABI representation.
100 [DllImport("gstnet-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
101 static extern IntPtr gst_ptp_clock_get_type();
103 public static new GLib.GType GType {
105 IntPtr raw_ret = gst_ptp_clock_get_type();
106 GLib.GType ret = new GLib.GType(raw_ret);
114 GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
117 // Internal representation of the wrapped structure ABI.
118 static GLib.AbiStruct _abi_info = null;
119 static public new GLib.AbiStruct abi_info {
121 if (_abi_info == null)
122 _abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
123 new GLib.AbiField("priv"
124 , Gst.SystemClock.abi_info.Fields
125 , (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
128 , (uint) Marshal.SizeOf(typeof(IntPtr))
131 new GLib.AbiField("_gst_reserved"
133 , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
136 , (uint) Marshal.SizeOf(typeof(IntPtr))
146 // End of the ABI representation.