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 DeviceProviderFactory : Gst.PluginFeature {
14 public DeviceProviderFactory (IntPtr raw) : base(raw) {}
16 protected DeviceProviderFactory() : base(IntPtr.Zero)
18 CreateNativeObject (new string [0], new GLib.Value [0]);
22 // Internal representation of the wrapped structure ABI.
23 static GLib.AbiStruct _class_abi = null;
24 static public new GLib.AbiStruct class_abi {
26 if (_class_abi == null)
27 _class_abi = new GLib.AbiStruct (Gst.PluginFeature.class_abi.Fields);
34 // End of the ABI representation.
36 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
37 static extern IntPtr gst_device_provider_factory_get_type();
39 public static new GLib.GType GType {
41 IntPtr raw_ret = gst_device_provider_factory_get_type();
42 GLib.GType ret = new GLib.GType(raw_ret);
47 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
48 static extern IntPtr gst_device_provider_factory_find(IntPtr name);
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);
58 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
59 static extern IntPtr gst_device_provider_factory_get_by_name(IntPtr factoryname);
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);
69 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
70 static extern IntPtr gst_device_provider_factory_list_get_device_providers(int minrank);
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));
78 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
79 static extern IntPtr gst_device_provider_factory_get(IntPtr raw);
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;
87 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
88 static extern IntPtr gst_device_provider_factory_get_device_provider_type(IntPtr raw);
90 public GLib.GType DeviceProviderType {
92 IntPtr raw_ret = gst_device_provider_factory_get_device_provider_type(Handle);
93 GLib.GType ret = new GLib.GType(raw_ret);
98 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
99 static extern IntPtr gst_device_provider_factory_get_metadata(IntPtr raw, IntPtr key);
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);
109 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
110 static extern IntPtr gst_device_provider_factory_get_metadata_keys(IntPtr raw);
112 public string[] MetadataKeys {
114 IntPtr raw_ret = gst_device_provider_factory_get_metadata_keys(Handle);
115 string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, true);
120 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
121 static extern bool gst_device_provider_factory_has_classes(IntPtr raw, IntPtr classes);
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);
127 GLib.Marshaller.Free (native_classes);
131 public bool HasClasses() {
132 return HasClasses (null);
135 [DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
136 static extern bool gst_device_provider_factory_has_classesv(IntPtr raw, IntPtr[] classes);
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);
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]);
153 public bool HasClassesv() {
154 return HasClassesv (null);
158 // Internal representation of the wrapped structure ABI.
159 static GLib.AbiStruct _abi_info = null;
160 static public new GLib.AbiStruct abi_info {
162 if (_abi_info == null)
163 _abi_info = new GLib.AbiStruct (Gst.PluginFeature.abi_info.Fields);
170 // End of the ABI representation.