Release 1.20.0
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.PbUtils / InstallPluginsContext.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst.PbUtils {
5
6         using System;
7         using System.Collections;
8         using System.Collections.Generic;
9         using System.Runtime.InteropServices;
10
11 #region Autogenerated code
12         [StructLayout(LayoutKind.Sequential)]
13         public partial struct InstallPluginsContext : IEquatable<InstallPluginsContext> {
14
15
16                 public static Gst.PbUtils.InstallPluginsContext Zero = new Gst.PbUtils.InstallPluginsContext ();
17
18                 public static Gst.PbUtils.InstallPluginsContext New(IntPtr raw) {
19                         if (raw == IntPtr.Zero)
20                                 return Gst.PbUtils.InstallPluginsContext.Zero;
21                         return (Gst.PbUtils.InstallPluginsContext) Marshal.PtrToStructure (raw, typeof (Gst.PbUtils.InstallPluginsContext));
22                 }
23
24                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
25                 static extern IntPtr gst_install_plugins_context_new();
26
27                 public static InstallPluginsContext New()
28                 {
29                         InstallPluginsContext result = InstallPluginsContext.New (gst_install_plugins_context_new());
30                         return result;
31                 }
32
33                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
34                 static extern IntPtr gst_install_plugins_context_get_type();
35
36                 public static GLib.GType GType { 
37                         get {
38                                 IntPtr raw_ret = gst_install_plugins_context_get_type();
39                                 GLib.GType ret = new GLib.GType(raw_ret);
40                                 return ret;
41                         }
42                 }
43
44                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
45                 static extern void gst_install_plugins_context_set_confirm_search(IntPtr raw, bool confirm_search);
46
47                 public bool ConfirmSearch { 
48                         set {
49                                 IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
50                                 System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
51                                 gst_install_plugins_context_set_confirm_search(this_as_native, value);
52                                 ReadNative (this_as_native, ref this);
53                                 System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
54                         }
55                 }
56
57                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
58                 static extern void gst_install_plugins_context_set_desktop_id(IntPtr raw, IntPtr desktop_id);
59
60                 public string DesktopId { 
61                         set {
62                                 IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
63                                 System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
64                                 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
65                                 gst_install_plugins_context_set_desktop_id(this_as_native, native_value);
66                                 ReadNative (this_as_native, ref this);
67                                 System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
68                                 GLib.Marshaller.Free (native_value);
69                         }
70                 }
71
72                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
73                 static extern void gst_install_plugins_context_set_startup_notification_id(IntPtr raw, IntPtr startup_id);
74
75                 public string StartupNotificationId { 
76                         set {
77                                 IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
78                                 System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
79                                 IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
80                                 gst_install_plugins_context_set_startup_notification_id(this_as_native, native_value);
81                                 ReadNative (this_as_native, ref this);
82                                 System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
83                                 GLib.Marshaller.Free (native_value);
84                         }
85                 }
86
87                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
88                 static extern void gst_install_plugins_context_set_xid(IntPtr raw, uint xid);
89
90                 public uint Xid { 
91                         set {
92                                 IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
93                                 System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
94                                 gst_install_plugins_context_set_xid(this_as_native, value);
95                                 ReadNative (this_as_native, ref this);
96                                 System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
97                         }
98                 }
99
100                 static void ReadNative (IntPtr native, ref Gst.PbUtils.InstallPluginsContext target)
101                 {
102                         target = New (native);
103                 }
104
105                 public bool Equals (InstallPluginsContext other)
106                 {
107                         return true;
108                 }
109
110                 public override bool Equals (object other)
111                 {
112                         return other is InstallPluginsContext && Equals ((InstallPluginsContext) other);
113                 }
114
115                 public override int GetHashCode ()
116                 {
117                         return this.GetType ().FullName.GetHashCode ();
118                 }
119
120                 public static explicit operator GLib.Value (Gst.PbUtils.InstallPluginsContext boxed)
121                 {
122                         GLib.Value val = GLib.Value.Empty;
123                         val.Init (Gst.PbUtils.InstallPluginsContext.GType);
124                         val.Val = boxed;
125                         return val;
126                 }
127
128                 public static explicit operator Gst.PbUtils.InstallPluginsContext (GLib.Value val)
129                 {
130                         return (Gst.PbUtils.InstallPluginsContext) val.Val;
131                 }
132 #endregion
133         }
134 }