summaryrefslogtreecommitdiff
path: root/sources/generated/Gst/Message.cs
blob: cafcd3d1a1686b0e6ba557f84218bb06bfcd61db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Gst {

	using System;
	using System.Collections;
	using System.Collections.Generic;
	using System.Runtime.InteropServices;

#region Autogenerated code
	public partial class Message : Gst.MiniObject {

		public Gst.MessageType Type {
			get {
				unsafe {
					int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("type"));
					return (Gst.MessageType) (*raw_ptr);
				}
			}
			set {
				unsafe {
					int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("type"));
					*raw_ptr = (int) value;
				}
			}
		}

		public ulong Timestamp {
			get {
				unsafe {
					ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("timestamp"));
					return (*raw_ptr);
				}
			}
			set {
				unsafe {
					ulong* raw_ptr = (ulong*)(((byte*)Handle) + abi_info.GetFieldOffset("timestamp"));
					*raw_ptr = value;
				}
			}
		}

		public Gst.Object Src {
			get {
				unsafe {
					IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("src"));
					return GLib.Object.GetObject((*raw_ptr)) as Gst.Object;
				}
			}
			set {
				unsafe {
					IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("src"));
					*raw_ptr = value == null ? IntPtr.Zero : value.Handle;
				}
			}
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern uint gst_message_get_seqnum(IntPtr raw);

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_set_seqnum(IntPtr raw, uint seqnum);

		public uint Seqnum {
			get  {
				uint raw_ret = gst_message_get_seqnum(Handle);
				uint ret = raw_ret;
				return ret;
			}
			set  {
				gst_message_set_seqnum(Handle, value);
			}
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_get_type();

		public static GLib.GType GType { 
			get {
				IntPtr raw_ret = gst_message_get_type();
				GLib.GType ret = new GLib.GType(raw_ret);
				return ret;
			}
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_add_redirect_entry(IntPtr raw, IntPtr location, IntPtr tag_list, IntPtr entry_struct);

		public void AddRedirectEntry(string location, Gst.TagList tag_list, Gst.Structure entry_struct) {
			IntPtr native_location = GLib.Marshaller.StringToPtrGStrdup (location);
			tag_list.Owned = false;
			entry_struct.Owned = false;
			gst_message_add_redirect_entry(Handle, native_location, tag_list == null ? IntPtr.Zero : tag_list.Handle, entry_struct == null ? IntPtr.Zero : entry_struct.Handle);
			GLib.Marshaller.Free (native_location);
		}

		public void AddRedirectEntry(string location) {
			AddRedirectEntry (location, null, null);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern UIntPtr gst_message_get_num_redirect_entries(IntPtr raw);

		public ulong NumRedirectEntries { 
			get {
				UIntPtr raw_ret = gst_message_get_num_redirect_entries(Handle);
				ulong ret = (ulong) raw_ret;
				return ret;
			}
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_get_structure(IntPtr raw);

		public Gst.Structure Structure { 
			get {
				IntPtr raw_ret = gst_message_get_structure(Handle);
				Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false);
				return ret;
			}
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gst_message_has_name(IntPtr raw, IntPtr name);

		public bool HasName(string name) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			bool raw_ret = gst_message_has_name(Handle, native_name);
			bool ret = raw_ret;
			GLib.Marshaller.Free (native_name);
			return ret;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_async_done(IntPtr raw, out ulong running_time);

		public ulong ParseAsyncDone() {
			ulong running_time;
			gst_message_parse_async_done(Handle, out running_time);
			return running_time;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_buffering(IntPtr raw, out int percent);

		public int ParseBuffering() {
			int percent;
			gst_message_parse_buffering(Handle, out percent);
			return percent;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_buffering_stats(IntPtr raw, out int mode, out int avg_in, out int avg_out, out long buffering_left);

		public void ParseBufferingStats(out Gst.BufferingMode mode, out int avg_in, out int avg_out, out long buffering_left) {
			int native_mode;
			gst_message_parse_buffering_stats(Handle, out native_mode, out avg_in, out avg_out, out buffering_left);
			mode = (Gst.BufferingMode) native_mode;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_clock_lost(IntPtr raw, out IntPtr clock);

		public Gst.Clock ParseClockLost() {
			Gst.Clock clock;
			IntPtr native_clock;
			gst_message_parse_clock_lost(Handle, out native_clock);
			clock = GLib.Object.GetObject(native_clock) as Gst.Clock;
			return clock;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_clock_provide(IntPtr raw, out IntPtr clock, out bool ready);

		public void ParseClockProvide(out Gst.Clock clock, out bool ready) {
			IntPtr native_clock;
			gst_message_parse_clock_provide(Handle, out native_clock, out ready);
			clock = GLib.Object.GetObject(native_clock) as Gst.Clock;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gst_message_parse_context_type(IntPtr raw, out IntPtr context_type);

		public bool ParseContextType(out string context_type) {
			IntPtr native_context_type;
			bool raw_ret = gst_message_parse_context_type(Handle, out native_context_type);
			bool ret = raw_ret;
			context_type = GLib.Marshaller.Utf8PtrToString (native_context_type);
			return ret;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_device_added(IntPtr raw, out IntPtr device);

		public Gst.Device ParseDeviceAdded() {
			Gst.Device device;
			IntPtr native_device;
			gst_message_parse_device_added(Handle, out native_device);
			device = GLib.Object.GetObject(native_device, true) as Gst.Device;
			return device;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_device_changed(IntPtr raw, out IntPtr device, out IntPtr changed_device);

		public void ParseDeviceChanged(out Gst.Device device, out Gst.Device changed_device) {
			IntPtr native_device;
			IntPtr native_changed_device;
			gst_message_parse_device_changed(Handle, out native_device, out native_changed_device);
			device = GLib.Object.GetObject(native_device, true) as Gst.Device;
			changed_device = GLib.Object.GetObject(native_changed_device, true) as Gst.Device;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_device_removed(IntPtr raw, out IntPtr device);

		public Gst.Device ParseDeviceRemoved() {
			Gst.Device device;
			IntPtr native_device;
			gst_message_parse_device_removed(Handle, out native_device);
			device = GLib.Object.GetObject(native_device, true) as Gst.Device;
			return device;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_error_details(IntPtr raw, out IntPtr structure);

		public Gst.Structure ParseErrorDetails() {
			Gst.Structure structure;
			IntPtr native_structure;
			gst_message_parse_error_details(Handle, out native_structure);
			structure = native_structure == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (native_structure, typeof (Gst.Structure), false);
			return structure;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern bool gst_message_parse_group_id(IntPtr raw, out uint group_id);

		public bool ParseGroupId(out uint group_id) {
			bool raw_ret = gst_message_parse_group_id(Handle, out group_id);
			bool ret = raw_ret;
			return ret;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_have_context(IntPtr raw, IntPtr context);

		public Gst.Context ParseHaveContext() {
			Gst.Context context;
			IntPtr native_context = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.Context)));
			gst_message_parse_have_context(Handle, native_context);
			context = Gst.Context.New (native_context);
			Marshal.FreeHGlobal (native_context);
			return context;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_info(IntPtr raw, out IntPtr gerror, out IntPtr debug);

		public void ParseInfo(out IntPtr gerror, out string debug) {
			IntPtr native_debug;
			gst_message_parse_info(Handle, out gerror, out native_debug);
			debug = GLib.Marshaller.PtrToStringGFree(native_debug);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_info_details(IntPtr raw, out IntPtr structure);

		public Gst.Structure ParseInfoDetails() {
			Gst.Structure structure;
			IntPtr native_structure;
			gst_message_parse_info_details(Handle, out native_structure);
			structure = native_structure == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (native_structure, typeof (Gst.Structure), false);
			return structure;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_new_clock(IntPtr raw, out IntPtr clock);

		public Gst.Clock ParseNewClock() {
			Gst.Clock clock;
			IntPtr native_clock;
			gst_message_parse_new_clock(Handle, out native_clock);
			clock = GLib.Object.GetObject(native_clock) as Gst.Clock;
			return clock;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_progress(IntPtr raw, out int type, out IntPtr code, out IntPtr text);

		public void ParseProgress(out Gst.ProgressType type, out string code, out string text) {
			int native_type;
			IntPtr native_code;
			IntPtr native_text;
			gst_message_parse_progress(Handle, out native_type, out native_code, out native_text);
			type = (Gst.ProgressType) native_type;
			code = GLib.Marshaller.PtrToStringGFree(native_code);
			text = GLib.Marshaller.PtrToStringGFree(native_text);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_property_notify(IntPtr raw, out IntPtr _object, out IntPtr property_name, IntPtr property_value);

		public void ParsePropertyNotify(out Gst.Object _object, out string property_name, out GLib.Value property_value) {
			IntPtr native__object;
			IntPtr native_property_name;
			IntPtr native_property_value = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (GLib.Value)));
			gst_message_parse_property_notify(Handle, out native__object, out native_property_name, native_property_value);
			_object = GLib.Object.GetObject(native__object) as Gst.Object;
			property_name = GLib.Marshaller.Utf8PtrToString (native_property_name);
			property_value = (GLib.Value) Marshal.PtrToStructure (native_property_value, typeof (GLib.Value));
			Marshal.FreeHGlobal (native_property_value);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_qos(IntPtr raw, out bool live, out ulong running_time, out ulong stream_time, out ulong timestamp, out ulong duration);

		public void ParseQos(out bool live, out ulong running_time, out ulong stream_time, out ulong timestamp, out ulong duration) {
			gst_message_parse_qos(Handle, out live, out running_time, out stream_time, out timestamp, out duration);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_qos_stats(IntPtr raw, out int format, out ulong processed, out ulong dropped);

		public void ParseQosStats(out Gst.Format format, out ulong processed, out ulong dropped) {
			int native_format;
			gst_message_parse_qos_stats(Handle, out native_format, out processed, out dropped);
			format = (Gst.Format) native_format;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_qos_values(IntPtr raw, out long jitter, out double proportion, out int quality);

		public void ParseQosValues(out long jitter, out double proportion, out int quality) {
			gst_message_parse_qos_values(Handle, out jitter, out proportion, out quality);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_redirect_entry(IntPtr raw, UIntPtr entry_index, out IntPtr location, out IntPtr tag_list, out IntPtr entry_struct);

		public void ParseRedirectEntry(ulong entry_index, out string location, out Gst.TagList tag_list, out Gst.Structure entry_struct) {
			IntPtr native_location;
			IntPtr native_tag_list;
			IntPtr native_entry_struct;
			gst_message_parse_redirect_entry(Handle, new UIntPtr (entry_index), out native_location, out native_tag_list, out native_entry_struct);
			location = GLib.Marshaller.Utf8PtrToString (native_location);
			tag_list = native_tag_list == IntPtr.Zero ? null : (Gst.TagList) GLib.Opaque.GetOpaque (native_tag_list, typeof (Gst.TagList), false);
			entry_struct = native_entry_struct == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (native_entry_struct, typeof (Gst.Structure), false);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_request_state(IntPtr raw, out int state);

		public Gst.State ParseRequestState() {
			Gst.State state;
			int native_state;
			gst_message_parse_request_state(Handle, out native_state);
			state = (Gst.State) native_state;
			return state;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_reset_time(IntPtr raw, out ulong running_time);

		public ulong ParseResetTime() {
			ulong running_time;
			gst_message_parse_reset_time(Handle, out running_time);
			return running_time;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_segment_done(IntPtr raw, out int format, out long position);

		public void ParseSegmentDone(out Gst.Format format, out long position) {
			int native_format;
			gst_message_parse_segment_done(Handle, out native_format, out position);
			format = (Gst.Format) native_format;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_segment_start(IntPtr raw, out int format, out long position);

		public void ParseSegmentStart(out Gst.Format format, out long position) {
			int native_format;
			gst_message_parse_segment_start(Handle, out native_format, out position);
			format = (Gst.Format) native_format;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_state_changed(IntPtr raw, out int oldstate, out int newstate, out int pending);

		public void ParseStateChanged(out Gst.State oldstate, out Gst.State newstate, out Gst.State pending) {
			int native_oldstate;
			int native_newstate;
			int native_pending;
			gst_message_parse_state_changed(Handle, out native_oldstate, out native_newstate, out native_pending);
			oldstate = (Gst.State) native_oldstate;
			newstate = (Gst.State) native_newstate;
			pending = (Gst.State) native_pending;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_step_done(IntPtr raw, out int format, out ulong amount, out double rate, out bool flush, out bool intermediate, out ulong duration, out bool eos);

		public void ParseStepDone(out Gst.Format format, out ulong amount, out double rate, out bool flush, out bool intermediate, out ulong duration, out bool eos) {
			int native_format;
			gst_message_parse_step_done(Handle, out native_format, out amount, out rate, out flush, out intermediate, out duration, out eos);
			format = (Gst.Format) native_format;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_step_start(IntPtr raw, out bool active, out int format, out ulong amount, out double rate, out bool flush, out bool intermediate);

		public void ParseStepStart(out bool active, out Gst.Format format, out ulong amount, out double rate, out bool flush, out bool intermediate) {
			int native_format;
			gst_message_parse_step_start(Handle, out active, out native_format, out amount, out rate, out flush, out intermediate);
			format = (Gst.Format) native_format;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_stream_collection(IntPtr raw, out IntPtr collection);

		public Gst.StreamCollection ParseStreamCollection() {
			Gst.StreamCollection collection;
			IntPtr native_collection;
			gst_message_parse_stream_collection(Handle, out native_collection);
			collection = GLib.Object.GetObject(native_collection, true) as Gst.StreamCollection;
			return collection;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_stream_status(IntPtr raw, out int type, out IntPtr owner);

		public void ParseStreamStatus(out Gst.StreamStatusType type, out Gst.Element owner) {
			int native_type;
			IntPtr native_owner;
			gst_message_parse_stream_status(Handle, out native_type, out native_owner);
			type = (Gst.StreamStatusType) native_type;
			owner = GLib.Object.GetObject(native_owner) as Gst.Element;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_streams_selected(IntPtr raw, out IntPtr collection);

		public Gst.StreamCollection ParseStreamsSelected() {
			Gst.StreamCollection collection;
			IntPtr native_collection;
			gst_message_parse_streams_selected(Handle, out native_collection);
			collection = GLib.Object.GetObject(native_collection, true) as Gst.StreamCollection;
			return collection;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_structure_change(IntPtr raw, out int type, out IntPtr owner, out bool busy);

		public void ParseStructureChange(out Gst.StructureChangeType type, out Gst.Element owner, out bool busy) {
			int native_type;
			IntPtr native_owner;
			gst_message_parse_structure_change(Handle, out native_type, out native_owner, out busy);
			type = (Gst.StructureChangeType) native_type;
			owner = GLib.Object.GetObject(native_owner) as Gst.Element;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_tag(IntPtr raw, out IntPtr tag_list);

		public Gst.TagList ParseTag() {
			Gst.TagList tag_list;
			IntPtr native_tag_list;
			gst_message_parse_tag(Handle, out native_tag_list);
			tag_list = native_tag_list == IntPtr.Zero ? null : (Gst.TagList) GLib.Opaque.GetOpaque (native_tag_list, typeof (Gst.TagList), true);
			return tag_list;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_toc(IntPtr raw, IntPtr toc, out bool updated);

		public void ParseToc(out Gst.Toc toc, out bool updated) {
			IntPtr native_toc = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.Toc)));
			gst_message_parse_toc(Handle, native_toc, out updated);
			toc = Gst.Toc.New (native_toc);
			Marshal.FreeHGlobal (native_toc);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_warning(IntPtr raw, out IntPtr gerror, out IntPtr debug);

		public void ParseWarning(out IntPtr gerror, out string debug) {
			IntPtr native_debug;
			gst_message_parse_warning(Handle, out gerror, out native_debug);
			debug = GLib.Marshaller.PtrToStringGFree(native_debug);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_parse_warning_details(IntPtr raw, out IntPtr structure);

		public Gst.Structure ParseWarningDetails() {
			Gst.Structure structure;
			IntPtr native_structure;
			gst_message_parse_warning_details(Handle, out native_structure);
			structure = native_structure == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (native_structure, typeof (Gst.Structure), false);
			return structure;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_set_buffering_stats(IntPtr raw, int mode, int avg_in, int avg_out, long buffering_left);

		public void SetBufferingStats(Gst.BufferingMode mode, int avg_in, int avg_out, long buffering_left) {
			gst_message_set_buffering_stats(Handle, (int) mode, avg_in, avg_out, buffering_left);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_set_group_id(IntPtr raw, uint group_id);

		public uint GroupId { 
			set {
				gst_message_set_group_id(Handle, value);
			}
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_set_qos_stats(IntPtr raw, int format, ulong processed, ulong dropped);

		public void SetQosStats(Gst.Format format, ulong processed, ulong dropped) {
			gst_message_set_qos_stats(Handle, (int) format, processed, dropped);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_set_qos_values(IntPtr raw, long jitter, double proportion, int quality);

		public void SetQosValues(long jitter, double proportion, int quality) {
			gst_message_set_qos_values(Handle, jitter, proportion, quality);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern void gst_message_streams_selected_add(IntPtr raw, IntPtr stream);

		public void StreamsSelectedAdd(Gst.Stream stream) {
			gst_message_streams_selected_add(Handle, stream == null ? IntPtr.Zero : stream.Handle);
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern uint gst_message_streams_selected_get_size(IntPtr raw);

		public uint StreamsSelectedGetSize() {
			uint raw_ret = gst_message_streams_selected_get_size(Handle);
			uint ret = raw_ret;
			return ret;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_streams_selected_get_stream(IntPtr raw, uint idx);

		public Gst.Stream StreamsSelectedGetStream(uint idx) {
			IntPtr raw_ret = gst_message_streams_selected_get_stream(Handle, idx);
			Gst.Stream ret = GLib.Object.GetObject(raw_ret, true) as Gst.Stream;
			return ret;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_writable_structure(IntPtr raw);

		public Gst.Structure WritableStructure() {
			IntPtr raw_ret = gst_message_writable_structure(Handle);
			Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false);
			return ret;
		}

		public Message(IntPtr raw) : base(raw) {}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_application(IntPtr src, IntPtr structure);

		public static Message NewApplication(Gst.Object src, Gst.Structure structure)
		{
			structure.Owned = false;
			Message result = new Message (gst_message_new_application(src == null ? IntPtr.Zero : src.Handle, structure == null ? IntPtr.Zero : structure.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_async_done(IntPtr src, ulong running_time);

		public static Message NewAsyncDone(Gst.Object src, ulong running_time)
		{
			Message result = new Message (gst_message_new_async_done(src == null ? IntPtr.Zero : src.Handle, running_time));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_async_start(IntPtr src);

		public static Message NewAsyncStart(Gst.Object src)
		{
			Message result = new Message (gst_message_new_async_start(src == null ? IntPtr.Zero : src.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_buffering(IntPtr src, int percent);

		public static Message NewBuffering(Gst.Object src, int percent)
		{
			Message result = new Message (gst_message_new_buffering(src == null ? IntPtr.Zero : src.Handle, percent));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_clock_lost(IntPtr src, IntPtr clock);

		public static Message NewClockLost(Gst.Object src, Gst.Clock clock)
		{
			Message result = new Message (gst_message_new_clock_lost(src == null ? IntPtr.Zero : src.Handle, clock == null ? IntPtr.Zero : clock.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_clock_provide(IntPtr src, IntPtr clock, bool ready);

		public static Message NewClockProvide(Gst.Object src, Gst.Clock clock, bool ready)
		{
			Message result = new Message (gst_message_new_clock_provide(src == null ? IntPtr.Zero : src.Handle, clock == null ? IntPtr.Zero : clock.Handle, ready));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_custom(int type, IntPtr src, IntPtr structure);

		public static Message NewCustom(Gst.MessageType type, Gst.Object src, Gst.Structure structure)
		{
			structure.Owned = false;
			Message result = new Message (gst_message_new_custom((int) type, src == null ? IntPtr.Zero : src.Handle, structure == null ? IntPtr.Zero : structure.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_device_added(IntPtr src, IntPtr device);

		public static Message NewDeviceAdded(Gst.Object src, Gst.Device device)
		{
			Message result = new Message (gst_message_new_device_added(src == null ? IntPtr.Zero : src.Handle, device == null ? IntPtr.Zero : device.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_device_changed(IntPtr src, IntPtr device, IntPtr changed_device);

		public static Message NewDeviceChanged(Gst.Object src, Gst.Device device, Gst.Device changed_device)
		{
			Message result = new Message (gst_message_new_device_changed(src == null ? IntPtr.Zero : src.Handle, device == null ? IntPtr.Zero : device.Handle, changed_device == null ? IntPtr.Zero : changed_device.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_device_removed(IntPtr src, IntPtr device);

		public static Message NewDeviceRemoved(Gst.Object src, Gst.Device device)
		{
			Message result = new Message (gst_message_new_device_removed(src == null ? IntPtr.Zero : src.Handle, device == null ? IntPtr.Zero : device.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_duration_changed(IntPtr src);

		public static Message NewDurationChanged(Gst.Object src)
		{
			Message result = new Message (gst_message_new_duration_changed(src == null ? IntPtr.Zero : src.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_element(IntPtr src, IntPtr structure);

		public static Message NewElement(Gst.Object src, Gst.Structure structure)
		{
			structure.Owned = false;
			Message result = new Message (gst_message_new_element(src == null ? IntPtr.Zero : src.Handle, structure == null ? IntPtr.Zero : structure.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_eos(IntPtr src);

		public static Message NewEos(Gst.Object src)
		{
			Message result = new Message (gst_message_new_eos(src == null ? IntPtr.Zero : src.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_error(IntPtr src, IntPtr error, IntPtr debug);

		public static Message NewError(Gst.Object src, IntPtr error, string debug)
		{
			IntPtr native_debug = GLib.Marshaller.StringToPtrGStrdup (debug);
			Message result = new Message (gst_message_new_error(src == null ? IntPtr.Zero : src.Handle, error, native_debug));
			GLib.Marshaller.Free (native_debug);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_error_with_details(IntPtr src, IntPtr error, IntPtr debug, IntPtr details);

		public static Message NewErrorWithDetails(Gst.Object src, IntPtr error, string debug, Gst.Structure details)
		{
			IntPtr native_debug = GLib.Marshaller.StringToPtrGStrdup (debug);
			details.Owned = false;
			Message result = new Message (gst_message_new_error_with_details(src == null ? IntPtr.Zero : src.Handle, error, native_debug, details == null ? IntPtr.Zero : details.Handle));
			GLib.Marshaller.Free (native_debug);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_have_context(IntPtr src, IntPtr context);

		public static Message NewHaveContext(Gst.Object src, Gst.Context context)
		{
			IntPtr native_context = GLib.Marshaller.StructureToPtrAlloc (context);
			Message result = new Message (gst_message_new_have_context(src == null ? IntPtr.Zero : src.Handle, native_context));
			Marshal.FreeHGlobal (native_context);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_info(IntPtr src, IntPtr error, IntPtr debug);

		public static Message NewInfo(Gst.Object src, IntPtr error, string debug)
		{
			IntPtr native_debug = GLib.Marshaller.StringToPtrGStrdup (debug);
			Message result = new Message (gst_message_new_info(src == null ? IntPtr.Zero : src.Handle, error, native_debug));
			GLib.Marshaller.Free (native_debug);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_info_with_details(IntPtr src, IntPtr error, IntPtr debug, IntPtr details);

		public static Message NewInfoWithDetails(Gst.Object src, IntPtr error, string debug, Gst.Structure details)
		{
			IntPtr native_debug = GLib.Marshaller.StringToPtrGStrdup (debug);
			details.Owned = false;
			Message result = new Message (gst_message_new_info_with_details(src == null ? IntPtr.Zero : src.Handle, error, native_debug, details == null ? IntPtr.Zero : details.Handle));
			GLib.Marshaller.Free (native_debug);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_latency(IntPtr src);

		public static Message NewLatency(Gst.Object src)
		{
			Message result = new Message (gst_message_new_latency(src == null ? IntPtr.Zero : src.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_need_context(IntPtr src, IntPtr context_type);

		public static Message NewNeedContext(Gst.Object src, string context_type)
		{
			IntPtr native_context_type = GLib.Marshaller.StringToPtrGStrdup (context_type);
			Message result = new Message (gst_message_new_need_context(src == null ? IntPtr.Zero : src.Handle, native_context_type));
			GLib.Marshaller.Free (native_context_type);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_new_clock(IntPtr src, IntPtr clock);

		public static Message NewNewClock(Gst.Object src, Gst.Clock clock)
		{
			Message result = new Message (gst_message_new_new_clock(src == null ? IntPtr.Zero : src.Handle, clock == null ? IntPtr.Zero : clock.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_progress(IntPtr src, int type, IntPtr code, IntPtr text);

		public static Message NewProgress(Gst.Object src, Gst.ProgressType type, string code, string text)
		{
			IntPtr native_code = GLib.Marshaller.StringToPtrGStrdup (code);
			IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
			Message result = new Message (gst_message_new_progress(src == null ? IntPtr.Zero : src.Handle, (int) type, native_code, native_text));
			GLib.Marshaller.Free (native_code);
			GLib.Marshaller.Free (native_text);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_property_notify(IntPtr src, IntPtr property_name, IntPtr val);

		public static Message NewPropertyNotify(Gst.Object src, string property_name, GLib.Value val)
		{
			IntPtr native_property_name = GLib.Marshaller.StringToPtrGStrdup (property_name);
			IntPtr native_val = GLib.Marshaller.StructureToPtrAlloc (val);
			Message result = new Message (gst_message_new_property_notify(src == null ? IntPtr.Zero : src.Handle, native_property_name, native_val));
			GLib.Marshaller.Free (native_property_name);
			Marshal.FreeHGlobal (native_val);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_qos(IntPtr src, bool live, ulong running_time, ulong stream_time, ulong timestamp, ulong duration);

		public static Message NewQos(Gst.Object src, bool live, ulong running_time, ulong stream_time, ulong timestamp, ulong duration)
		{
			Message result = new Message (gst_message_new_qos(src == null ? IntPtr.Zero : src.Handle, live, running_time, stream_time, timestamp, duration));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_redirect(IntPtr src, IntPtr location, IntPtr tag_list, IntPtr entry_struct);

		public static Message NewRedirect(Gst.Object src, string location, Gst.TagList tag_list, Gst.Structure entry_struct)
		{
			IntPtr native_location = GLib.Marshaller.StringToPtrGStrdup (location);
			tag_list.Owned = false;
			entry_struct.Owned = false;
			Message result = new Message (gst_message_new_redirect(src == null ? IntPtr.Zero : src.Handle, native_location, tag_list == null ? IntPtr.Zero : tag_list.Handle, entry_struct == null ? IntPtr.Zero : entry_struct.Handle));
			GLib.Marshaller.Free (native_location);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_request_state(IntPtr src, int state);

		public static Message NewRequestState(Gst.Object src, Gst.State state)
		{
			Message result = new Message (gst_message_new_request_state(src == null ? IntPtr.Zero : src.Handle, (int) state));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_reset_time(IntPtr src, ulong running_time);

		public static Message NewResetTime(Gst.Object src, ulong running_time)
		{
			Message result = new Message (gst_message_new_reset_time(src == null ? IntPtr.Zero : src.Handle, running_time));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_segment_done(IntPtr src, int format, long position);

		public static Message NewSegmentDone(Gst.Object src, Gst.Format format, long position)
		{
			Message result = new Message (gst_message_new_segment_done(src == null ? IntPtr.Zero : src.Handle, (int) format, position));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_segment_start(IntPtr src, int format, long position);

		public static Message NewSegmentStart(Gst.Object src, Gst.Format format, long position)
		{
			Message result = new Message (gst_message_new_segment_start(src == null ? IntPtr.Zero : src.Handle, (int) format, position));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_state_changed(IntPtr src, int oldstate, int newstate, int pending);

		public static Message NewStateChanged(Gst.Object src, Gst.State oldstate, Gst.State newstate, Gst.State pending)
		{
			Message result = new Message (gst_message_new_state_changed(src == null ? IntPtr.Zero : src.Handle, (int) oldstate, (int) newstate, (int) pending));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_state_dirty(IntPtr src);

		public static Message NewStateDirty(Gst.Object src)
		{
			Message result = new Message (gst_message_new_state_dirty(src == null ? IntPtr.Zero : src.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_step_done(IntPtr src, int format, ulong amount, double rate, bool flush, bool intermediate, ulong duration, bool eos);

		public static Message NewStepDone(Gst.Object src, Gst.Format format, ulong amount, double rate, bool flush, bool intermediate, ulong duration, bool eos)
		{
			Message result = new Message (gst_message_new_step_done(src == null ? IntPtr.Zero : src.Handle, (int) format, amount, rate, flush, intermediate, duration, eos));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_step_start(IntPtr src, bool active, int format, ulong amount, double rate, bool flush, bool intermediate);

		public static Message NewStepStart(Gst.Object src, bool active, Gst.Format format, ulong amount, double rate, bool flush, bool intermediate)
		{
			Message result = new Message (gst_message_new_step_start(src == null ? IntPtr.Zero : src.Handle, active, (int) format, amount, rate, flush, intermediate));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_stream_collection(IntPtr src, IntPtr collection);

		public static Message NewStreamCollection(Gst.Object src, Gst.StreamCollection collection)
		{
			Message result = new Message (gst_message_new_stream_collection(src == null ? IntPtr.Zero : src.Handle, collection == null ? IntPtr.Zero : collection.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_stream_start(IntPtr src);

		public static Message NewStreamStart(Gst.Object src)
		{
			Message result = new Message (gst_message_new_stream_start(src == null ? IntPtr.Zero : src.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_stream_status(IntPtr src, int type, IntPtr owner);

		public static Message NewStreamStatus(Gst.Object src, Gst.StreamStatusType type, Gst.Element owner)
		{
			Message result = new Message (gst_message_new_stream_status(src == null ? IntPtr.Zero : src.Handle, (int) type, owner == null ? IntPtr.Zero : owner.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_streams_selected(IntPtr src, IntPtr collection);

		public static Message NewStreamsSelected(Gst.Object src, Gst.StreamCollection collection)
		{
			Message result = new Message (gst_message_new_streams_selected(src == null ? IntPtr.Zero : src.Handle, collection == null ? IntPtr.Zero : collection.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_structure_change(IntPtr src, int type, IntPtr owner, bool busy);

		public static Message NewStructureChange(Gst.Object src, Gst.StructureChangeType type, Gst.Element owner, bool busy)
		{
			Message result = new Message (gst_message_new_structure_change(src == null ? IntPtr.Zero : src.Handle, (int) type, owner == null ? IntPtr.Zero : owner.Handle, busy));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_tag(IntPtr src, IntPtr tag_list);

		public static Message NewTag(Gst.Object src, Gst.TagList tag_list)
		{
			tag_list.Owned = false;
			Message result = new Message (gst_message_new_tag(src == null ? IntPtr.Zero : src.Handle, tag_list == null ? IntPtr.Zero : tag_list.Handle));
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_toc(IntPtr src, IntPtr toc, bool updated);

		public static Message NewToc(Gst.Object src, Gst.Toc toc, bool updated)
		{
			IntPtr native_toc = GLib.Marshaller.StructureToPtrAlloc (toc);
			Message result = new Message (gst_message_new_toc(src == null ? IntPtr.Zero : src.Handle, native_toc, updated));
			Marshal.FreeHGlobal (native_toc);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_warning(IntPtr src, IntPtr error, IntPtr debug);

		public static Message NewWarning(Gst.Object src, IntPtr error, string debug)
		{
			IntPtr native_debug = GLib.Marshaller.StringToPtrGStrdup (debug);
			Message result = new Message (gst_message_new_warning(src == null ? IntPtr.Zero : src.Handle, error, native_debug));
			GLib.Marshaller.Free (native_debug);
			return result;
		}

		[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_message_new_warning_with_details(IntPtr src, IntPtr error, IntPtr debug, IntPtr details);

		public static Message NewWarningWithDetails(Gst.Object src, IntPtr error, string debug, Gst.Structure details)
		{
			IntPtr native_debug = GLib.Marshaller.StringToPtrGStrdup (debug);
			details.Owned = false;
			Message result = new Message (gst_message_new_warning_with_details(src == null ? IntPtr.Zero : src.Handle, error, native_debug, details == null ? IntPtr.Zero : details.Handle));
			GLib.Marshaller.Free (native_debug);
			return result;
		}


		// Internal representation of the wrapped structure ABI.
		static GLib.AbiStruct _abi_info = null;
		static public new GLib.AbiStruct abi_info {
			get {
				if (_abi_info == null)
					_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ 
						new GLib.AbiField("type"
							, Gst.MiniObject.abi_info.Fields
							, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.MessageType))) // type
							, null
							, "timestamp"
							, (long) Marshal.OffsetOf(typeof(GstMessage_typeAlign), "type")
							, 0
							),
						new GLib.AbiField("timestamp"
							, -1
							, (uint) Marshal.SizeOf(typeof(ulong)) // timestamp
							, "type"
							, "src"
							, (long) Marshal.OffsetOf(typeof(GstMessage_timestampAlign), "timestamp")
							, 0
							),
						new GLib.AbiField("src"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // src
							, "timestamp"
							, "seqnum"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("seqnum"
							, -1
							, (uint) Marshal.SizeOf(typeof(uint)) // seqnum
							, "src"
							, "lock"
							, (long) Marshal.OffsetOf(typeof(GstMessage_seqnumAlign), "seqnum")
							, 0
							),
						new GLib.AbiField("lock"
							, -1
							, (uint) Marshal.SizeOf(typeof(IntPtr)) // lock
							, "seqnum"
							, "cond"
							, (uint) Marshal.SizeOf(typeof(IntPtr))
							, 0
							),
						new GLib.AbiField("cond"
							, -1
							, (uint) Marshal.SizeOf(typeof(GLib.Cond.ABI)) // cond
							, "lock"
							, null
							, (long) Marshal.OffsetOf(typeof(GstMessage_condAlign), "cond")
							, 0
							),
					});

				return _abi_info;
			}
		}

		[StructLayout(LayoutKind.Sequential)]
		public struct GstMessage_typeAlign
		{
			sbyte f1;
			private Gst.MessageType type;
		}

		[StructLayout(LayoutKind.Sequential)]
		public struct GstMessage_timestampAlign
		{
			sbyte f1;
			private ulong timestamp;
		}

		[StructLayout(LayoutKind.Sequential)]
		public struct GstMessage_seqnumAlign
		{
			sbyte f1;
			private uint seqnum;
		}

		[StructLayout(LayoutKind.Sequential)]
		public struct GstMessage_condAlign
		{
			sbyte f1;
			private GLib.Cond.ABI cond;
		}


		// End of the ABI representation.

#endregion
	}
}