// 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 TraceFormatBuilder : GLib.Opaque {

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

		public Gst.TraceFormatBuilder AddField(string name, Gst.TracerFieldType type) {
			IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
			IntPtr raw_ret = gst_trace_format_builder_add_field(Handle, native_name, (int) type);
			Gst.TraceFormatBuilder ret = raw_ret == IntPtr.Zero ? null : (Gst.TraceFormatBuilder) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.TraceFormatBuilder), false);
			GLib.Marshaller.Free (native_name);
			return ret;
		}

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

		public Gst.TraceFormatBuilder AddFieldFull(Gst.TraceField field) {
			field.Owned = false;
			IntPtr raw_ret = gst_trace_format_builder_add_field_full(Handle, field == null ? IntPtr.Zero : field.Handle);
			Gst.TraceFormatBuilder ret = raw_ret == IntPtr.Zero ? null : (Gst.TraceFormatBuilder) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.TraceFormatBuilder), false);
			return ret;
		}

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

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

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

		public Gst.TraceFormatBuilder SetDescription(string description) {
			IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup (description);
			IntPtr raw_ret = gst_trace_format_builder_set_description(Handle, native_description);
			Gst.TraceFormatBuilder ret = raw_ret == IntPtr.Zero ? null : (Gst.TraceFormatBuilder) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.TraceFormatBuilder), false);
			GLib.Marshaller.Free (native_description);
			return ret;
		}

		public Gst.TraceFormatBuilder SetDescription() {
			return SetDescription (null);
		}

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

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

		protected override void Free (IntPtr raw)
		{
			gst_trace_format_builder_free (raw);
		}

		protected override Action<IntPtr> DisposeUnmanagedFunc {
			get {
				return gst_trace_format_builder_free;
			}
		}


		// Internal representation of the wrapped structure ABI.
		static GLib.AbiStruct _abi_info = null;
		static public GLib.AbiStruct abi_info {
			get {
				if (_abi_info == null)
					_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{ 
					});

				return _abi_info;
			}
		}


		// End of the ABI representation.

#endregion
	}
}
