// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Gst.PbUtils {

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

#region Autogenerated code
	public partial class DiscovererInfoBuilder : GLib.Opaque {

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

		public Gst.PbUtils.DiscovererInfo Build() {
			IntPtr raw_ret = gst_discoverer_info_builder_build(Handle);
			Gst.PbUtils.DiscovererInfo ret = GLib.Object.GetObject(raw_ret, true) as Gst.PbUtils.DiscovererInfo;
			return ret;
		}

		[DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_discoverer_info_builder_set_duration(IntPtr raw, ulong duration);

		public Gst.PbUtils.DiscovererInfoBuilder SetDuration(ulong duration) {
			IntPtr raw_ret = gst_discoverer_info_builder_set_duration(Handle, duration);
			Gst.PbUtils.DiscovererInfoBuilder ret = raw_ret == IntPtr.Zero ? null : (Gst.PbUtils.DiscovererInfoBuilder) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.PbUtils.DiscovererInfoBuilder), false);
			return ret;
		}

		[DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_discoverer_info_builder_set_live(IntPtr raw, bool live);

		public Gst.PbUtils.DiscovererInfoBuilder SetLive(bool live) {
			IntPtr raw_ret = gst_discoverer_info_builder_set_live(Handle, live);
			Gst.PbUtils.DiscovererInfoBuilder ret = raw_ret == IntPtr.Zero ? null : (Gst.PbUtils.DiscovererInfoBuilder) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.PbUtils.DiscovererInfoBuilder), false);
			return ret;
		}

		[DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_discoverer_info_builder_set_result(IntPtr raw, int _result);

		public Gst.PbUtils.DiscovererInfoBuilder SetResult(Gst.PbUtils.DiscovererResult _result) {
			IntPtr raw_ret = gst_discoverer_info_builder_set_result(Handle, (int) _result);
			Gst.PbUtils.DiscovererInfoBuilder ret = raw_ret == IntPtr.Zero ? null : (Gst.PbUtils.DiscovererInfoBuilder) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.PbUtils.DiscovererInfoBuilder), false);
			return ret;
		}

		[DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_discoverer_info_builder_set_seekable(IntPtr raw, bool seekable);

		public Gst.PbUtils.DiscovererInfoBuilder SetSeekable(bool seekable) {
			IntPtr raw_ret = gst_discoverer_info_builder_set_seekable(Handle, seekable);
			Gst.PbUtils.DiscovererInfoBuilder ret = raw_ret == IntPtr.Zero ? null : (Gst.PbUtils.DiscovererInfoBuilder) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.PbUtils.DiscovererInfoBuilder), false);
			return ret;
		}

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

		public Gst.PbUtils.DiscovererInfoBuilder SetTags(Gst.TagList tags) {
			IntPtr raw_ret = gst_discoverer_info_builder_set_tags(Handle, tags == null ? IntPtr.Zero : tags.Handle);
			Gst.PbUtils.DiscovererInfoBuilder ret = raw_ret == IntPtr.Zero ? null : (Gst.PbUtils.DiscovererInfoBuilder) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.PbUtils.DiscovererInfoBuilder), false);
			return ret;
		}

		public Gst.PbUtils.DiscovererInfoBuilder SetTags() {
			return SetTags (null);
		}

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

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

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

		protected override Action<IntPtr> DisposeUnmanagedFunc {
			get {
				return gst_discoverer_info_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
	}
}
