Back to development
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst / DeviceProviderFactory.cs
1 // This file was generated by the Gtk# code generator.
2 // Any changes made will be lost if regenerated.
3
4 namespace Gst {
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 DeviceProviderFactory : Gst.PluginFeature {
13
14                 public DeviceProviderFactory (IntPtr raw) : base(raw) {}
15
16                 protected DeviceProviderFactory() : base(IntPtr.Zero)
17                 {
18                         CreateNativeObject (new string [0], new GLib.Value [0]);
19                 }
20
21
22                 // Internal representation of the wrapped structure ABI.
23                 static GLib.AbiStruct _class_abi = null;
24                 static public new GLib.AbiStruct class_abi {
25                         get {
26                                 if (_class_abi == null)
27                                         _class_abi = new GLib.AbiStruct (Gst.PluginFeature.class_abi.Fields);
28
29                                 return _class_abi;
30                         }
31                 }
32
33
34                 // End of the ABI representation.
35
36                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
37                 static extern IntPtr gst_device_provider_factory_get_type();
38
39                 public static new GLib.GType GType { 
40                         get {
41                                 IntPtr raw_ret = gst_device_provider_factory_get_type();
42                                 GLib.GType ret = new GLib.GType(raw_ret);
43                                 return ret;
44                         }
45                 }
46
47                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
48                 static extern IntPtr gst_device_provider_factory_find(IntPtr name);
49
50                 public static Gst.DeviceProviderFactory Find(string name) {
51                         IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
52                         IntPtr raw_ret = gst_device_provider_factory_find(native_name);
53                         Gst.DeviceProviderFactory ret = GLib.Object.GetObject(raw_ret, true) as Gst.DeviceProviderFactory;
54                         GLib.Marshaller.Free (native_name);
55                         return ret;
56                 }
57
58                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
59                 static extern IntPtr gst_device_provider_factory_get_by_name(IntPtr factoryname);
60
61                 public static Gst.DeviceProvider GetByName(string factoryname) {
62                         IntPtr native_factoryname = GLib.Marshaller.StringToPtrGStrdup (factoryname);
63                         IntPtr raw_ret = gst_device_provider_factory_get_by_name(native_factoryname);
64                         Gst.DeviceProvider ret = GLib.Object.GetObject(raw_ret, true) as Gst.DeviceProvider;
65                         GLib.Marshaller.Free (native_factoryname);
66                         return ret;
67                 }
68
69                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
70                 static extern IntPtr gst_device_provider_factory_list_get_device_providers(int minrank);
71
72                 public static Gst.DeviceProviderFactory[] ListGetDeviceProviders(Gst.Rank minrank) {
73                         IntPtr raw_ret = gst_device_provider_factory_list_get_device_providers((int) minrank);
74                         Gst.DeviceProviderFactory[] ret = (Gst.DeviceProviderFactory[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(Gst.DeviceProviderFactory));
75                         return ret;
76                 }
77
78                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
79                 static extern IntPtr gst_device_provider_factory_get(IntPtr raw);
80
81                 public Gst.DeviceProvider Get() {
82                         IntPtr raw_ret = gst_device_provider_factory_get(Handle);
83                         Gst.DeviceProvider ret = GLib.Object.GetObject(raw_ret, true) as Gst.DeviceProvider;
84                         return ret;
85                 }
86
87                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
88                 static extern IntPtr gst_device_provider_factory_get_device_provider_type(IntPtr raw);
89
90                 public GLib.GType DeviceProviderType { 
91                         get {
92                                 IntPtr raw_ret = gst_device_provider_factory_get_device_provider_type(Handle);
93                                 GLib.GType ret = new GLib.GType(raw_ret);
94                                 return ret;
95                         }
96                 }
97
98                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
99                 static extern IntPtr gst_device_provider_factory_get_metadata(IntPtr raw, IntPtr key);
100
101                 public string GetMetadata(string key) {
102                         IntPtr native_key = GLib.Marshaller.StringToPtrGStrdup (key);
103                         IntPtr raw_ret = gst_device_provider_factory_get_metadata(Handle, native_key);
104                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
105                         GLib.Marshaller.Free (native_key);
106                         return ret;
107                 }
108
109                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
110                 static extern IntPtr gst_device_provider_factory_get_metadata_keys(IntPtr raw);
111
112                 public string[] MetadataKeys { 
113                         get {
114                                 IntPtr raw_ret = gst_device_provider_factory_get_metadata_keys(Handle);
115                                 string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, true);
116                                 return ret;
117                         }
118                 }
119
120                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
121                 static extern bool gst_device_provider_factory_has_classes(IntPtr raw, IntPtr classes);
122
123                 public bool HasClasses(string classes) {
124                         IntPtr native_classes = GLib.Marshaller.StringToPtrGStrdup (classes);
125                         bool raw_ret = gst_device_provider_factory_has_classes(Handle, native_classes);
126                         bool ret = raw_ret;
127                         GLib.Marshaller.Free (native_classes);
128                         return ret;
129                 }
130
131                 public bool HasClasses() {
132                         return HasClasses (null);
133                 }
134
135                 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
136                 static extern bool gst_device_provider_factory_has_classesv(IntPtr raw, IntPtr[] classes);
137
138                 public bool HasClassesv(string[] classes) {
139                         int cnt_classes = classes == null ? 0 : classes.Length;
140                         IntPtr[] native_classes = new IntPtr [cnt_classes + 1];
141                         for (int i = 0; i < cnt_classes; i++)
142                                 native_classes [i] = GLib.Marshaller.StringToPtrGStrdup (classes[i]);
143                         native_classes [cnt_classes] = IntPtr.Zero;
144                         bool raw_ret = gst_device_provider_factory_has_classesv(Handle, native_classes);
145                         bool ret = raw_ret;
146                         for (int i = 0; i < native_classes.Length - 1; i++) {
147                                 classes [i] = GLib.Marshaller.Utf8PtrToString (native_classes[i]);
148                                 GLib.Marshaller.Free (native_classes[i]);
149                         }
150                         return ret;
151                 }
152
153                 public bool HasClassesv() {
154                         return HasClassesv (null);
155                 }
156
157
158                 // Internal representation of the wrapped structure ABI.
159                 static GLib.AbiStruct _abi_info = null;
160                 static public new GLib.AbiStruct abi_info {
161                         get {
162                                 if (_abi_info == null)
163                                         _abi_info = new GLib.AbiStruct (Gst.PluginFeature.abi_info.Fields);
164
165                                 return _abi_info;
166                         }
167                 }
168
169
170                 // End of the ABI representation.
171
172 #endregion
173         }
174 }