Release 1.20.0
[platform/upstream/gstreamer.git] / subprojects / gstreamer-sharp / sources / generated / Gst.PbUtils / Global.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         public partial class Global {
13
14                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
15                 static extern bool gst_codec_utils_aac_caps_set_level_and_profile(IntPtr caps, byte[] audio_config, uint len);
16
17                 public static bool CodecUtilsAacCapsSetLevelAndProfile(Gst.Caps caps, byte[] audio_config, uint len) {
18                         bool raw_ret = gst_codec_utils_aac_caps_set_level_and_profile(caps == null ? IntPtr.Zero : caps.Handle, audio_config, len);
19                         bool ret = raw_ret;
20                         return ret;
21                 }
22
23                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
24                 static extern uint gst_codec_utils_aac_get_channels(byte[] audio_config, uint len);
25
26                 public static uint CodecUtilsAacGetChannels(byte[] audio_config, uint len) {
27                         uint raw_ret = gst_codec_utils_aac_get_channels(audio_config, len);
28                         uint ret = raw_ret;
29                         return ret;
30                 }
31
32                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
33                 static extern int gst_codec_utils_aac_get_index_from_sample_rate(uint rate);
34
35                 public static int CodecUtilsAacGetIndexFromSampleRate(uint rate) {
36                         int raw_ret = gst_codec_utils_aac_get_index_from_sample_rate(rate);
37                         int ret = raw_ret;
38                         return ret;
39                 }
40
41                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
42                 static extern IntPtr gst_codec_utils_aac_get_level(byte[] audio_config, uint len);
43
44                 public static string CodecUtilsAacGetLevel(byte[] audio_config, uint len) {
45                         IntPtr raw_ret = gst_codec_utils_aac_get_level(audio_config, len);
46                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
47                         return ret;
48                 }
49
50                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
51                 static extern IntPtr gst_codec_utils_aac_get_profile(byte[] audio_config, uint len);
52
53                 public static string CodecUtilsAacGetProfile(byte[] audio_config, uint len) {
54                         IntPtr raw_ret = gst_codec_utils_aac_get_profile(audio_config, len);
55                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
56                         return ret;
57                 }
58
59                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
60                 static extern uint gst_codec_utils_aac_get_sample_rate(byte[] audio_config, uint len);
61
62                 public static uint CodecUtilsAacGetSampleRate(byte[] audio_config, uint len) {
63                         uint raw_ret = gst_codec_utils_aac_get_sample_rate(audio_config, len);
64                         uint ret = raw_ret;
65                         return ret;
66                 }
67
68                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
69                 static extern uint gst_codec_utils_aac_get_sample_rate_from_index(uint sr_idx);
70
71                 public static uint CodecUtilsAacGetSampleRateFromIndex(uint sr_idx) {
72                         uint raw_ret = gst_codec_utils_aac_get_sample_rate_from_index(sr_idx);
73                         uint ret = raw_ret;
74                         return ret;
75                 }
76
77                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
78                 static extern bool gst_codec_utils_h264_caps_set_level_and_profile(IntPtr caps, byte[] sps, uint len);
79
80                 public static bool CodecUtilsH264CapsSetLevelAndProfile(Gst.Caps caps, byte[] sps, uint len) {
81                         bool raw_ret = gst_codec_utils_h264_caps_set_level_and_profile(caps == null ? IntPtr.Zero : caps.Handle, sps, len);
82                         bool ret = raw_ret;
83                         return ret;
84                 }
85
86                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
87                 static extern IntPtr gst_codec_utils_h264_get_level(byte[] sps, uint len);
88
89                 public static string CodecUtilsH264GetLevel(byte[] sps, uint len) {
90                         IntPtr raw_ret = gst_codec_utils_h264_get_level(sps, len);
91                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
92                         return ret;
93                 }
94
95                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
96                 static extern byte gst_codec_utils_h264_get_level_idc(IntPtr level);
97
98                 public static byte CodecUtilsH264GetLevelIdc(string level) {
99                         IntPtr native_level = GLib.Marshaller.StringToPtrGStrdup (level);
100                         byte raw_ret = gst_codec_utils_h264_get_level_idc(native_level);
101                         byte ret = raw_ret;
102                         GLib.Marshaller.Free (native_level);
103                         return ret;
104                 }
105
106                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
107                 static extern IntPtr gst_codec_utils_h264_get_profile(byte[] sps, uint len);
108
109                 public static string CodecUtilsH264GetProfile(byte[] sps, uint len) {
110                         IntPtr raw_ret = gst_codec_utils_h264_get_profile(sps, len);
111                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
112                         return ret;
113                 }
114
115                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
116                 static extern bool gst_codec_utils_h265_caps_set_level_tier_and_profile(IntPtr caps, byte[] profile_tier_level, uint len);
117
118                 public static bool CodecUtilsH265CapsSetLevelTierAndProfile(Gst.Caps caps, byte[] profile_tier_level, uint len) {
119                         bool raw_ret = gst_codec_utils_h265_caps_set_level_tier_and_profile(caps == null ? IntPtr.Zero : caps.Handle, profile_tier_level, len);
120                         bool ret = raw_ret;
121                         return ret;
122                 }
123
124                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
125                 static extern IntPtr gst_codec_utils_h265_get_level(byte[] profile_tier_level, uint len);
126
127                 public static string CodecUtilsH265GetLevel(byte[] profile_tier_level, uint len) {
128                         IntPtr raw_ret = gst_codec_utils_h265_get_level(profile_tier_level, len);
129                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
130                         return ret;
131                 }
132
133                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
134                 static extern byte gst_codec_utils_h265_get_level_idc(IntPtr level);
135
136                 public static byte CodecUtilsH265GetLevelIdc(string level) {
137                         IntPtr native_level = GLib.Marshaller.StringToPtrGStrdup (level);
138                         byte raw_ret = gst_codec_utils_h265_get_level_idc(native_level);
139                         byte ret = raw_ret;
140                         GLib.Marshaller.Free (native_level);
141                         return ret;
142                 }
143
144                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
145                 static extern IntPtr gst_codec_utils_h265_get_profile(byte[] profile_tier_level, uint len);
146
147                 public static string CodecUtilsH265GetProfile(byte[] profile_tier_level, uint len) {
148                         IntPtr raw_ret = gst_codec_utils_h265_get_profile(profile_tier_level, len);
149                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
150                         return ret;
151                 }
152
153                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
154                 static extern IntPtr gst_codec_utils_h265_get_tier(byte[] profile_tier_level, uint len);
155
156                 public static string CodecUtilsH265GetTier(byte[] profile_tier_level, uint len) {
157                         IntPtr raw_ret = gst_codec_utils_h265_get_tier(profile_tier_level, len);
158                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
159                         return ret;
160                 }
161
162                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
163                 static extern bool gst_codec_utils_mpeg4video_caps_set_level_and_profile(IntPtr caps, byte[] vis_obj_seq, uint len);
164
165                 public static bool CodecUtilsMpeg4videoCapsSetLevelAndProfile(Gst.Caps caps, byte[] vis_obj_seq, uint len) {
166                         bool raw_ret = gst_codec_utils_mpeg4video_caps_set_level_and_profile(caps == null ? IntPtr.Zero : caps.Handle, vis_obj_seq, len);
167                         bool ret = raw_ret;
168                         return ret;
169                 }
170
171                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
172                 static extern IntPtr gst_codec_utils_mpeg4video_get_level(byte[] vis_obj_seq, uint len);
173
174                 public static string CodecUtilsMpeg4videoGetLevel(byte[] vis_obj_seq, uint len) {
175                         IntPtr raw_ret = gst_codec_utils_mpeg4video_get_level(vis_obj_seq, len);
176                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
177                         return ret;
178                 }
179
180                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
181                 static extern IntPtr gst_codec_utils_mpeg4video_get_profile(byte[] vis_obj_seq, uint len);
182
183                 public static string CodecUtilsMpeg4videoGetProfile(byte[] vis_obj_seq, uint len) {
184                         IntPtr raw_ret = gst_codec_utils_mpeg4video_get_profile(vis_obj_seq, len);
185                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
186                         return ret;
187                 }
188
189                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
190                 static extern IntPtr gst_codec_utils_opus_create_caps(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count, byte[] channel_mapping);
191
192                 public static Gst.Caps CodecUtilsOpusCreateCaps(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count, byte[] channel_mapping) {
193                         IntPtr raw_ret = gst_codec_utils_opus_create_caps(rate, channels, channel_mapping_family, stream_count, coupled_count, channel_mapping);
194                         Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
195                         return ret;
196                 }
197
198                 public static Gst.Caps CodecUtilsOpusCreateCaps(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count) {
199                         return CodecUtilsOpusCreateCaps (rate, channels, channel_mapping_family, stream_count, coupled_count, null);
200                 }
201
202                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
203                 static extern IntPtr gst_codec_utils_opus_create_caps_from_header(IntPtr header, IntPtr comments);
204
205                 public static Gst.Caps CodecUtilsOpusCreateCapsFromHeader(Gst.Buffer header, Gst.Buffer comments) {
206                         IntPtr raw_ret = gst_codec_utils_opus_create_caps_from_header(header == null ? IntPtr.Zero : header.Handle, comments == null ? IntPtr.Zero : comments.Handle);
207                         Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
208                         return ret;
209                 }
210
211                 public static Gst.Caps CodecUtilsOpusCreateCapsFromHeader(Gst.Buffer header) {
212                         return CodecUtilsOpusCreateCapsFromHeader (header, null);
213                 }
214
215                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
216                 static extern IntPtr gst_codec_utils_opus_create_header(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count, byte[] channel_mapping, ushort pre_skip, short output_gain);
217
218                 public static Gst.Buffer CodecUtilsOpusCreateHeader(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count, byte[] channel_mapping, ushort pre_skip, short output_gain) {
219                         IntPtr raw_ret = gst_codec_utils_opus_create_header(rate, channels, channel_mapping_family, stream_count, coupled_count, channel_mapping, pre_skip, output_gain);
220                         Gst.Buffer ret = raw_ret == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Buffer), true);
221                         return ret;
222                 }
223
224                 public static Gst.Buffer CodecUtilsOpusCreateHeader(uint rate, byte channels, byte channel_mapping_family, byte stream_count, byte coupled_count, ushort pre_skip, short output_gain) {
225                         return CodecUtilsOpusCreateHeader (rate, channels, channel_mapping_family, stream_count, coupled_count, null, pre_skip, output_gain);
226                 }
227
228                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
229                 static extern IntPtr gst_encoding_list_all_targets(IntPtr categoryname);
230
231                 public static Gst.PbUtils.EncodingTarget[] EncodingListAllTargets(string categoryname) {
232                         IntPtr native_categoryname = GLib.Marshaller.StringToPtrGStrdup (categoryname);
233                         IntPtr raw_ret = gst_encoding_list_all_targets(native_categoryname);
234                         Gst.PbUtils.EncodingTarget[] ret = (Gst.PbUtils.EncodingTarget[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(Gst.PbUtils.EncodingTarget));
235                         GLib.Marshaller.Free (native_categoryname);
236                         return ret;
237                 }
238
239                 public static Gst.PbUtils.EncodingTarget[] EncodingListAllTargets() {
240                         return EncodingListAllTargets (null);
241                 }
242
243                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
244                 static extern IntPtr gst_encoding_list_available_categories();
245
246                 public static string[] EncodingListAvailableCategories() {
247                         IntPtr raw_ret = gst_encoding_list_available_categories();
248                         string[] ret = (string[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(string));
249                         return ret;
250                 }
251
252                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
253                 static extern bool gst_install_plugins_installation_in_progress();
254
255                 public static bool InstallPluginsInstallationInProgress() {
256                         bool raw_ret = gst_install_plugins_installation_in_progress();
257                         bool ret = raw_ret;
258                         return ret;
259                 }
260
261                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
262                 static extern IntPtr gst_install_plugins_return_get_name(int _ret);
263
264                 public static string InstallPluginsReturnGetName(Gst.PbUtils.InstallPluginsReturn _ret) {
265                         IntPtr raw_ret = gst_install_plugins_return_get_name((int) _ret);
266                         string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
267                         return ret;
268                 }
269
270                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
271                 static extern bool gst_install_plugins_supported();
272
273                 public static bool InstallPluginsSupported() {
274                         bool raw_ret = gst_install_plugins_supported();
275                         bool ret = raw_ret;
276                         return ret;
277                 }
278
279                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
280                 static extern bool gst_is_missing_plugin_message(IntPtr msg);
281
282                 public static bool IsMissingPluginMessage(Gst.Message msg) {
283                         bool raw_ret = gst_is_missing_plugin_message(msg == null ? IntPtr.Zero : msg.Handle);
284                         bool ret = raw_ret;
285                         return ret;
286                 }
287
288                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
289                 static extern IntPtr gst_missing_decoder_installer_detail_new(IntPtr decode_caps);
290
291                 public static string MissingDecoderInstallerDetailNew(Gst.Caps decode_caps) {
292                         IntPtr raw_ret = gst_missing_decoder_installer_detail_new(decode_caps == null ? IntPtr.Zero : decode_caps.Handle);
293                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
294                         return ret;
295                 }
296
297                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
298                 static extern IntPtr gst_missing_decoder_message_new(IntPtr element, IntPtr decode_caps);
299
300                 public static Gst.Message MissingDecoderMessageNew(Gst.Element element, Gst.Caps decode_caps) {
301                         IntPtr raw_ret = gst_missing_decoder_message_new(element == null ? IntPtr.Zero : element.Handle, decode_caps == null ? IntPtr.Zero : decode_caps.Handle);
302                         Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Message), true);
303                         return ret;
304                 }
305
306                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
307                 static extern IntPtr gst_missing_element_installer_detail_new(IntPtr factory_name);
308
309                 public static string MissingElementInstallerDetailNew(string factory_name) {
310                         IntPtr native_factory_name = GLib.Marshaller.StringToPtrGStrdup (factory_name);
311                         IntPtr raw_ret = gst_missing_element_installer_detail_new(native_factory_name);
312                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
313                         GLib.Marshaller.Free (native_factory_name);
314                         return ret;
315                 }
316
317                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
318                 static extern IntPtr gst_missing_element_message_new(IntPtr element, IntPtr factory_name);
319
320                 public static Gst.Message MissingElementMessageNew(Gst.Element element, string factory_name) {
321                         IntPtr native_factory_name = GLib.Marshaller.StringToPtrGStrdup (factory_name);
322                         IntPtr raw_ret = gst_missing_element_message_new(element == null ? IntPtr.Zero : element.Handle, native_factory_name);
323                         Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Message), true);
324                         GLib.Marshaller.Free (native_factory_name);
325                         return ret;
326                 }
327
328                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
329                 static extern IntPtr gst_missing_encoder_installer_detail_new(IntPtr encode_caps);
330
331                 public static string MissingEncoderInstallerDetailNew(Gst.Caps encode_caps) {
332                         IntPtr raw_ret = gst_missing_encoder_installer_detail_new(encode_caps == null ? IntPtr.Zero : encode_caps.Handle);
333                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
334                         return ret;
335                 }
336
337                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
338                 static extern IntPtr gst_missing_encoder_message_new(IntPtr element, IntPtr encode_caps);
339
340                 public static Gst.Message MissingEncoderMessageNew(Gst.Element element, Gst.Caps encode_caps) {
341                         IntPtr raw_ret = gst_missing_encoder_message_new(element == null ? IntPtr.Zero : element.Handle, encode_caps == null ? IntPtr.Zero : encode_caps.Handle);
342                         Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Message), true);
343                         return ret;
344                 }
345
346                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
347                 static extern IntPtr gst_missing_plugin_message_get_description(IntPtr msg);
348
349                 public static string MissingPluginMessageGetDescription(Gst.Message msg) {
350                         IntPtr raw_ret = gst_missing_plugin_message_get_description(msg == null ? IntPtr.Zero : msg.Handle);
351                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
352                         return ret;
353                 }
354
355                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
356                 static extern IntPtr gst_missing_plugin_message_get_installer_detail(IntPtr msg);
357
358                 public static string MissingPluginMessageGetInstallerDetail(Gst.Message msg) {
359                         IntPtr raw_ret = gst_missing_plugin_message_get_installer_detail(msg == null ? IntPtr.Zero : msg.Handle);
360                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
361                         return ret;
362                 }
363
364                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
365                 static extern IntPtr gst_missing_uri_sink_installer_detail_new(IntPtr protocol);
366
367                 public static string MissingUriSinkInstallerDetailNew(string protocol) {
368                         IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
369                         IntPtr raw_ret = gst_missing_uri_sink_installer_detail_new(native_protocol);
370                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
371                         GLib.Marshaller.Free (native_protocol);
372                         return ret;
373                 }
374
375                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
376                 static extern IntPtr gst_missing_uri_sink_message_new(IntPtr element, IntPtr protocol);
377
378                 public static Gst.Message MissingUriSinkMessageNew(Gst.Element element, string protocol) {
379                         IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
380                         IntPtr raw_ret = gst_missing_uri_sink_message_new(element == null ? IntPtr.Zero : element.Handle, native_protocol);
381                         Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Message), true);
382                         GLib.Marshaller.Free (native_protocol);
383                         return ret;
384                 }
385
386                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
387                 static extern IntPtr gst_missing_uri_source_installer_detail_new(IntPtr protocol);
388
389                 public static string MissingUriSourceInstallerDetailNew(string protocol) {
390                         IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
391                         IntPtr raw_ret = gst_missing_uri_source_installer_detail_new(native_protocol);
392                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
393                         GLib.Marshaller.Free (native_protocol);
394                         return ret;
395                 }
396
397                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
398                 static extern IntPtr gst_missing_uri_source_message_new(IntPtr element, IntPtr protocol);
399
400                 public static Gst.Message MissingUriSourceMessageNew(Gst.Element element, string protocol) {
401                         IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
402                         IntPtr raw_ret = gst_missing_uri_source_message_new(element == null ? IntPtr.Zero : element.Handle, native_protocol);
403                         Gst.Message ret = raw_ret == IntPtr.Zero ? null : (Gst.Message) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Message), true);
404                         GLib.Marshaller.Free (native_protocol);
405                         return ret;
406                 }
407
408                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
409                 static extern bool gst_pb_utils_add_codec_description_to_tag_list(IntPtr taglist, IntPtr codec_tag, IntPtr caps);
410
411                 public static bool PbUtilsAddCodecDescriptionToTagList(Gst.TagList taglist, string codec_tag, Gst.Caps caps) {
412                         IntPtr native_codec_tag = GLib.Marshaller.StringToPtrGStrdup (codec_tag);
413                         bool raw_ret = gst_pb_utils_add_codec_description_to_tag_list(taglist == null ? IntPtr.Zero : taglist.Handle, native_codec_tag, caps == null ? IntPtr.Zero : caps.Handle);
414                         bool ret = raw_ret;
415                         GLib.Marshaller.Free (native_codec_tag);
416                         return ret;
417                 }
418
419                 public static bool PbUtilsAddCodecDescriptionToTagList(Gst.TagList taglist, Gst.Caps caps) {
420                         return PbUtilsAddCodecDescriptionToTagList (taglist, null, caps);
421                 }
422
423                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
424                 static extern IntPtr gst_pb_utils_get_codec_description(IntPtr caps);
425
426                 public static string PbUtilsGetCodecDescription(Gst.Caps caps) {
427                         IntPtr raw_ret = gst_pb_utils_get_codec_description(caps == null ? IntPtr.Zero : caps.Handle);
428                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
429                         return ret;
430                 }
431
432                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
433                 static extern IntPtr gst_pb_utils_get_decoder_description(IntPtr caps);
434
435                 public static string PbUtilsGetDecoderDescription(Gst.Caps caps) {
436                         IntPtr raw_ret = gst_pb_utils_get_decoder_description(caps == null ? IntPtr.Zero : caps.Handle);
437                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
438                         return ret;
439                 }
440
441                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
442                 static extern IntPtr gst_pb_utils_get_element_description(IntPtr factory_name);
443
444                 public static string PbUtilsGetElementDescription(string factory_name) {
445                         IntPtr native_factory_name = GLib.Marshaller.StringToPtrGStrdup (factory_name);
446                         IntPtr raw_ret = gst_pb_utils_get_element_description(native_factory_name);
447                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
448                         GLib.Marshaller.Free (native_factory_name);
449                         return ret;
450                 }
451
452                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
453                 static extern IntPtr gst_pb_utils_get_encoder_description(IntPtr caps);
454
455                 public static string PbUtilsGetEncoderDescription(Gst.Caps caps) {
456                         IntPtr raw_ret = gst_pb_utils_get_encoder_description(caps == null ? IntPtr.Zero : caps.Handle);
457                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
458                         return ret;
459                 }
460
461                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
462                 static extern IntPtr gst_pb_utils_get_sink_description(IntPtr protocol);
463
464                 public static string PbUtilsGetSinkDescription(string protocol) {
465                         IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
466                         IntPtr raw_ret = gst_pb_utils_get_sink_description(native_protocol);
467                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
468                         GLib.Marshaller.Free (native_protocol);
469                         return ret;
470                 }
471
472                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
473                 static extern IntPtr gst_pb_utils_get_source_description(IntPtr protocol);
474
475                 public static string PbUtilsGetSourceDescription(string protocol) {
476                         IntPtr native_protocol = GLib.Marshaller.StringToPtrGStrdup (protocol);
477                         IntPtr raw_ret = gst_pb_utils_get_source_description(native_protocol);
478                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
479                         GLib.Marshaller.Free (native_protocol);
480                         return ret;
481                 }
482
483                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
484                 static extern void gst_pb_utils_init();
485
486                 public static void PbUtilsInit() {
487                         gst_pb_utils_init();
488                 }
489
490                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
491                 static extern void gst_plugins_base_version(out uint major, out uint minor, out uint micro, out uint nano);
492
493                 public static void PluginsBaseVersion(out uint major, out uint minor, out uint micro, out uint nano) {
494                         gst_plugins_base_version(out major, out minor, out micro, out nano);
495                 }
496
497                 [DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
498                 static extern IntPtr gst_plugins_base_version_string();
499
500                 public static string PluginsBaseVersionString() {
501                         IntPtr raw_ret = gst_plugins_base_version_string();
502                         string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
503                         return ret;
504                 }
505
506 #endregion
507         }
508 }