Back to development
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.Net / PtpClock.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst.Net {
5
6         using System;
7         using System.Collections;
8         using System.Collections.Generic;
9         using System.Runtime.InteropServices;
10
11 #region Autogenerated code
12         public partial class PtpClock : Gst.SystemClock {
13
14                 public PtpClock (IntPtr raw) : base(raw) {}
15
16                 [DllImport("gstnet-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
17                 static extern IntPtr gst_ptp_clock_new(IntPtr name, uint domain);
18
19                 public PtpClock (string name, uint domain) : base (IntPtr.Zero)
20                 {
21                         if (GetType () != typeof (PtpClock)) {
22                                 var vals = new List<GLib.Value> ();
23                                 var names = new List<string> ();
24                                 names.Add ("name");
25                                 vals.Add (new GLib.Value (name));
26                                 names.Add ("domain");
27                                 vals.Add (new GLib.Value (domain));
28                                 CreateNativeObject (names.ToArray (), vals.ToArray ());
29                                 return;
30                         }
31                         IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
32                         Raw = gst_ptp_clock_new(native_name, domain);
33                         GLib.Marshaller.Free (native_name);
34                 }
35
36                 [GLib.Property ("domain")]
37                 public uint Domain {
38                         get {
39                                 GLib.Value val = GetProperty ("domain");
40                                 uint ret = (uint) val;
41                                 val.Dispose ();
42                                 return ret;
43                         }
44                 }
45
46                 [GLib.Property ("grandmaster-clock-id")]
47                 public ulong GrandmasterClockId {
48                         get {
49                                 GLib.Value val = GetProperty ("grandmaster-clock-id");
50                                 ulong ret = (ulong) val;
51                                 val.Dispose ();
52                                 return ret;
53                         }
54                 }
55
56                 [GLib.Property ("internal-clock")]
57                 public Gst.Clock InternalClock {
58                         get {
59                                 GLib.Value val = GetProperty ("internal-clock");
60                                 Gst.Clock ret = (Gst.Clock) val;
61                                 val.Dispose ();
62                                 return ret;
63                         }
64                 }
65
66                 [GLib.Property ("master-clock-id")]
67                 public ulong MasterClockId {
68                         get {
69                                 GLib.Value val = GetProperty ("master-clock-id");
70                                 ulong ret = (ulong) val;
71                                 val.Dispose ();
72                                 return ret;
73                         }
74                 }
75
76
77                 // Internal representation of the wrapped structure ABI.
78                 static GLib.AbiStruct _class_abi = null;
79                 static public new GLib.AbiStruct class_abi {
80                         get {
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
86                                                         , null
87                                                         , null
88                                                         , (uint) Marshal.SizeOf(typeof(IntPtr))
89                                                         , 0
90                                                         ),
91                                         });
92
93                                 return _class_abi;
94                         }
95                 }
96
97
98                 // End of the ABI representation.
99
100                 [DllImport("gstnet-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
101                 static extern IntPtr gst_ptp_clock_get_type();
102
103                 public static new GLib.GType GType { 
104                         get {
105                                 IntPtr raw_ret = gst_ptp_clock_get_type();
106                                 GLib.GType ret = new GLib.GType(raw_ret);
107                                 return ret;
108                         }
109                 }
110
111
112                 static PtpClock ()
113                 {
114                         GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
115                 }
116
117                 // Internal representation of the wrapped structure ABI.
118                 static GLib.AbiStruct _abi_info = null;
119                 static public new GLib.AbiStruct abi_info {
120                         get {
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
126                                                         , null
127                                                         , "_gst_reserved"
128                                                         , (uint) Marshal.SizeOf(typeof(IntPtr))
129                                                         , 0
130                                                         ),
131                                                 new GLib.AbiField("_gst_reserved"
132                                                         , -1
133                                                         , (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
134                                                         , "priv"
135                                                         , null
136                                                         , (uint) Marshal.SizeOf(typeof(IntPtr))
137                                                         , 0
138                                                         ),
139                                         });
140
141                                 return _abi_info;
142                         }
143                 }
144
145
146                 // End of the ABI representation.
147
148 #endregion
149         }
150 }