/*
 * This file was generated automatically by ExtUtils::ParseXS version 3.24 from the
 * contents of GstEvent.xs. Do not edit this file, edit GstEvent.xs instead.
 *
 *    ANY CHANGES MADE HERE WILL BE LOST!
 *
 */

#line 1 "xs/GstEvent.xs"
/*
 * Copyright (C) 2005 by the gtk2-perl team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 * $Id$
 */

#include "gst2perl.h"

/* ------------------------------------------------------------------------- */

static const char *
get_package (GstEvent *event)
{
	switch (event->type) {
	    case GST_EVENT_FLUSH_START:
		return "GStreamer::Event::FlushStart";

	    case GST_EVENT_FLUSH_STOP:
		return "GStreamer::Event::FlushStop";

	    case GST_EVENT_EOS:
		return "GStreamer::Event::EOS";

	    case GST_EVENT_NEWSEGMENT:
		return "GStreamer::Event::NewSegment";

	    case GST_EVENT_TAG:
		return "GStreamer::Event::Tag";

	    case GST_EVENT_BUFFERSIZE:
		return "GStreamer::Event::BufferSize";

	    case GST_EVENT_QOS:
		return "GStreamer::Event::QOS";

	    case GST_EVENT_SEEK:
		return "GStreamer::Event::Seek";

	    case GST_EVENT_NAVIGATION:
		return "GStreamer::Event::Navigation";

	    case GST_EVENT_CUSTOM_UPSTREAM:
		return "GStreamer::Event::Custom::Upstream";

	    case GST_EVENT_CUSTOM_DOWNSTREAM:
		return "GStreamer::Event::Custom::Downstream";

	    case GST_EVENT_CUSTOM_BOTH:
		return "GStreamer::Event::Custom::Both";

	    case GST_EVENT_CUSTOM_BOTH_OOB:
		return "GStreamer::Event::Custom::Both::OOB";

	    case GST_EVENT_UNKNOWN:
		return "GStreamer::Event";

	    default:
		croak ("Unknown GstEvent type encountered: %d", event->type);
	}
}

/* ------------------------------------------------------------------------- */

#line 89 "xs/GstEvent.c"
#ifndef PERL_UNUSED_VAR
#  define PERL_UNUSED_VAR(var) if (0) var = var
#endif

#ifndef dVAR
#  define dVAR		dNOOP
#endif


/* This stuff is not part of the API! You have been warned. */
#ifndef PERL_VERSION_DECIMAL
#  define PERL_VERSION_DECIMAL(r,v,s) (r*1000000 + v*1000 + s)
#endif
#ifndef PERL_DECIMAL_VERSION
#  define PERL_DECIMAL_VERSION \
	  PERL_VERSION_DECIMAL(PERL_REVISION,PERL_VERSION,PERL_SUBVERSION)
#endif
#ifndef PERL_VERSION_GE
#  define PERL_VERSION_GE(r,v,s) \
	  (PERL_DECIMAL_VERSION >= PERL_VERSION_DECIMAL(r,v,s))
#endif
#ifndef PERL_VERSION_LE
#  define PERL_VERSION_LE(r,v,s) \
	  (PERL_DECIMAL_VERSION <= PERL_VERSION_DECIMAL(r,v,s))
#endif

/* XS_INTERNAL is the explicit static-linkage variant of the default
 * XS macro.
 *
 * XS_EXTERNAL is the same as XS_INTERNAL except it does not include
 * "STATIC", ie. it exports XSUB symbols. You probably don't want that
 * for anything but the BOOT XSUB.
 *
 * See XSUB.h in core!
 */


/* TODO: This might be compatible further back than 5.10.0. */
#if PERL_VERSION_GE(5, 10, 0) && PERL_VERSION_LE(5, 15, 1)
#  undef XS_EXTERNAL
#  undef XS_INTERNAL
#  if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
#    define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name)
#    define XS_INTERNAL(name) STATIC XSPROTO(name)
#  endif
#  if defined(__SYMBIAN32__)
#    define XS_EXTERNAL(name) EXPORT_C XSPROTO(name)
#    define XS_INTERNAL(name) EXPORT_C STATIC XSPROTO(name)
#  endif
#  ifndef XS_EXTERNAL
#    if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
#      define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
#      define XS_INTERNAL(name) STATIC void name(pTHX_ CV* cv __attribute__unused__)
#    else
#      ifdef __cplusplus
#        define XS_EXTERNAL(name) extern "C" XSPROTO(name)
#        define XS_INTERNAL(name) static XSPROTO(name)
#      else
#        define XS_EXTERNAL(name) XSPROTO(name)
#        define XS_INTERNAL(name) STATIC XSPROTO(name)
#      endif
#    endif
#  endif
#endif

/* perl >= 5.10.0 && perl <= 5.15.1 */


/* The XS_EXTERNAL macro is used for functions that must not be static
 * like the boot XSUB of a module. If perl didn't have an XS_EXTERNAL
 * macro defined, the best we can do is assume XS is the same.
 * Dito for XS_INTERNAL.
 */
#ifndef XS_EXTERNAL
#  define XS_EXTERNAL(name) XS(name)
#endif
#ifndef XS_INTERNAL
#  define XS_INTERNAL(name) XS(name)
#endif

/* Now, finally, after all this mess, we want an ExtUtils::ParseXS
 * internal macro that we're free to redefine for varying linkage due
 * to the EXPORT_XSUB_SYMBOLS XS keyword. This is internal, use
 * XS_EXTERNAL(name) or XS_INTERNAL(name) in your code if you need to!
 */

#undef XS_EUPXS
#if defined(PERL_EUPXS_ALWAYS_EXPORT)
#  define XS_EUPXS(name) XS_EXTERNAL(name)
#else
   /* default to internal */
#  define XS_EUPXS(name) XS_INTERNAL(name)
#endif

#ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
#define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)

/* prototype to pass -Wmissing-prototypes */
STATIC void
S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);

STATIC void
S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
{
    const GV *const gv = CvGV(cv);

    PERL_ARGS_ASSERT_CROAK_XS_USAGE;

    if (gv) {
        const char *const gvname = GvNAME(gv);
        const HV *const stash = GvSTASH(gv);
        const char *const hvname = stash ? HvNAME(stash) : NULL;

        if (hvname)
            Perl_croak(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
        else
            Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
    } else {
        /* Pants. I don't think that it should be possible to get here. */
        Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
    }
}
#undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE

#ifdef PERL_IMPLICIT_CONTEXT
#define croak_xs_usage(a,b)    S_croak_xs_usage(aTHX_ a,b)
#else
#define croak_xs_usage        S_croak_xs_usage
#endif

#endif

/* NOTE: the prototype of newXSproto() is different in versions of perls,
 * so we define a portable version of newXSproto()
 */
#ifdef newXS_flags
#define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
#else
#define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
#endif /* !defined(newXS_flags) */

#line 231 "xs/GstEvent.c"

XS_EUPXS(XS_GStreamer__Event_get_structure); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event_get_structure)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "event");
    {
	const GstStructure *	RETVAL;
	GstEvent *	event = SvGstEvent (ST(0))
;

	RETVAL = gst_event_get_structure(event);
	ST(0) = newSVGstStructure (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event_type); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event_type)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "event");
    {
	GstEventType	RETVAL;
	GstEvent *	event = SvGstEvent (ST(0))
;
#line 176 "xs/GstEvent.xs"
	RETVAL = GST_EVENT_TYPE (event);
#line 264 "xs/GstEvent.c"
	ST(0) = newSVGstEventType (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__Custom_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__Custom_new)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, type, structure");
    {
	GstEvent_noinc *	RETVAL;
	GstEventType	type = SvGstEventType (ST(1))
;
	GstStructure *	structure = SvGstStructure (ST(2))
;
#line 188 "xs/GstEvent.xs"
	/* The event will own structure. */
	RETVAL = gst_event_new_custom (type, structure);
#line 287 "xs/GstEvent.c"
	ST(0) = newSVGstEvent_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__FlushStart_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__FlushStart_new)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	GstEvent_noinc *	RETVAL;
#line 201 "xs/GstEvent.xs"
	RETVAL = gst_event_new_flush_start ();
#line 305 "xs/GstEvent.c"
	ST(0) = newSVGstEvent_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__FlushStop_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__FlushStop_new)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	GstEvent_noinc *	RETVAL;
#line 213 "xs/GstEvent.xs"
	RETVAL = gst_event_new_flush_stop ();
#line 323 "xs/GstEvent.c"
	ST(0) = newSVGstEvent_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__EOS_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__EOS_new)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	GstEvent_noinc *	RETVAL;
#line 225 "xs/GstEvent.xs"
	RETVAL = gst_event_new_eos ();
#line 341 "xs/GstEvent.c"
	ST(0) = newSVGstEvent_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__NewSegment_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__NewSegment_new)
{
    dVAR; dXSARGS;
    if (items != 7)
       croak_xs_usage(cv,  "class, update, rate, format, start_value, stop_value, stream_time");
    {
	GstEvent_noinc *	RETVAL;
	gboolean	update = (bool)SvTRUE(ST(1))
;
	gdouble	rate = (double)SvNV(ST(2))
;
	GstFormat	format = SvGstFormat (ST(3))
;
	gint64	start_value = SvGInt64 (ST(4))
;
	gint64	stop_value = SvGInt64 (ST(5))
;
	gint64	stream_time = SvGInt64 (ST(6))
;
#line 237 "xs/GstEvent.xs"
	RETVAL = gst_event_new_new_segment (update, rate, format, start_value, stop_value, stream_time);
#line 371 "xs/GstEvent.c"
	ST(0) = newSVGstEvent_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__NewSegment_update); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__NewSegment_update)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items != 1)
       croak_xs_usage(cv,  "event");
    {
#line 251 "xs/GstEvent.xs"
	gboolean update;
	gdouble rate;
	GstFormat format;
	gint64 start_value;
	gint64 stop_value;
	gint64 stream_time;
#line 394 "xs/GstEvent.c"
	SV *	RETVAL;
	GstEvent *	event = SvGstEvent (ST(0))
;
#line 258 "xs/GstEvent.xs"
	gst_event_parse_new_segment (event, &update, &rate, &format, &start_value, &stop_value, &stream_time);
	switch (ix) {
	    case 0:
		RETVAL = newSVuv (update);
		break;

	    case 1:
		RETVAL = newSVnv (rate);
		break;

	    case 2:
		RETVAL = newSVGstFormat (format);
		break;

	    case 3:
		RETVAL = newSVGInt64 (start_value);
		break;

	    case 4:
		RETVAL = newSVGInt64 (stop_value);
		break;

	    case 5:
		RETVAL = newSVGInt64 (stream_time);
		break;

	    default:
		RETVAL = &PL_sv_undef;
	}
#line 428 "xs/GstEvent.c"
	ST(0) = RETVAL;
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__Tag_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__Tag_new)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, taglist");
    {
	GstEvent_noinc *	RETVAL;
	GstTagList *	taglist = SvGstTagList (ST(1))
;
#line 298 "xs/GstEvent.xs"
	/* The event will own taglist. */
	RETVAL = gst_event_new_tag (taglist);
#line 449 "xs/GstEvent.c"
	ST(0) = newSVGstEvent_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__Tag_tag); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__Tag_tag)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "event");
    {
	GstTagList *	RETVAL;
	GstEvent *	event = SvGstEvent (ST(0))
;
#line 307 "xs/GstEvent.xs"
	gst_event_parse_tag (event, &RETVAL);
#line 469 "xs/GstEvent.c"
	ST(0) = newSVGstTagList (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__BufferSize_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__BufferSize_new)
{
    dVAR; dXSARGS;
    if (items != 5)
       croak_xs_usage(cv,  "class, format, minsize, maxsize, async");
    {
	GstEvent_noinc *	RETVAL;
	GstFormat	format = SvGstFormat (ST(1))
;
	gint64	minsize = SvGInt64 (ST(2))
;
	gint64	maxsize = SvGInt64 (ST(3))
;
	gboolean	async = (bool)SvTRUE(ST(4))
;
#line 319 "xs/GstEvent.xs"
	RETVAL = gst_event_new_buffer_size (format, minsize, maxsize, async);
#line 495 "xs/GstEvent.c"
	ST(0) = newSVGstEvent_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__BufferSize_format); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__BufferSize_format)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items != 1)
       croak_xs_usage(cv,  "event");
    {
#line 331 "xs/GstEvent.xs"
	GstFormat format;
	gint64 minsize;
	gint64 maxsize;
	gboolean async;
#line 516 "xs/GstEvent.c"
	SV *	RETVAL;
	GstEvent *	event = SvGstEvent (ST(0))
;
#line 336 "xs/GstEvent.xs"
	gst_event_parse_buffer_size (event, &format, &minsize, &maxsize, &async);
	switch (ix) {
	    case 0:
		RETVAL = newSVGstFormat (format);
		break;

	    case 1:
		RETVAL = newSVGInt64 (minsize);
		break;

	    case 2:
		RETVAL = newSVGInt64 (maxsize);
		break;

	    case 3:
		RETVAL = newSVuv (async);
		break;

	    default:
		RETVAL = &PL_sv_undef;
	}
#line 542 "xs/GstEvent.c"
	ST(0) = RETVAL;
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__QOS_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__QOS_new)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "class, proportion, diff, timestamp");
    {
	GstEvent_noinc *	RETVAL;
	gdouble	proportion = (double)SvNV(ST(1))
;
	GstClockTimeDiff	diff = SvGstClockTimeDiff (ST(2))
;
	GstClockTime	timestamp = SvGstClockTime (ST(3))
;
#line 368 "xs/GstEvent.xs"
	RETVAL = gst_event_new_qos (proportion, diff, timestamp);
#line 566 "xs/GstEvent.c"
	ST(0) = newSVGstEvent_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__QOS_proportion); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__QOS_proportion)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items != 1)
       croak_xs_usage(cv,  "event");
    {
#line 379 "xs/GstEvent.xs"
	gdouble proportion;
	GstClockTimeDiff diff;
	GstClockTime timestamp;
#line 586 "xs/GstEvent.c"
	SV *	RETVAL;
	GstEvent *	event = SvGstEvent (ST(0))
;
#line 383 "xs/GstEvent.xs"
	gst_event_parse_qos (event, &proportion, &diff, &timestamp);
	switch (ix) {
	    case 0:
		RETVAL = newSVnv (proportion);
		break;

	    case 1:
		RETVAL = newSVGstClockTimeDiff (diff);
		break;

	    case 2:
		RETVAL = newSVGstClockTime (timestamp);
		break;

	    default:
		RETVAL = &PL_sv_undef;
	}
#line 608 "xs/GstEvent.c"
	ST(0) = RETVAL;
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__Seek_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__Seek_new)
{
    dVAR; dXSARGS;
    if (items != 8)
       croak_xs_usage(cv,  "class, rate, format, flags, cur_type, cur, stop_type, stop");
    {
	GstEvent_noinc *	RETVAL;
	gdouble	rate = (double)SvNV(ST(1))
;
	GstFormat	format = SvGstFormat (ST(2))
;
	GstSeekFlags	flags = SvGstSeekFlags (ST(3))
;
	GstSeekType	cur_type = SvGstSeekType (ST(4))
;
	gint64	cur = SvGInt64 (ST(5))
;
	GstSeekType	stop_type = SvGstSeekType (ST(6))
;
	gint64	stop = SvGInt64 (ST(7))
;
#line 411 "xs/GstEvent.xs"
	RETVAL = gst_event_new_seek (rate, format, flags, cur_type, cur, stop_type, stop);
#line 640 "xs/GstEvent.c"
	ST(0) = newSVGstEvent_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__Seek_rate); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__Seek_rate)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items != 1)
       croak_xs_usage(cv,  "event");
    {
#line 426 "xs/GstEvent.xs"
	gdouble rate;
	GstFormat format;
	GstSeekFlags flags;
	GstSeekType cur_type;
	gint64 cur;
	GstSeekType stop_type;
	gint64 stop;
#line 664 "xs/GstEvent.c"
	SV *	RETVAL;
	GstEvent *	event = SvGstEvent (ST(0))
;
#line 434 "xs/GstEvent.xs"
	gst_event_parse_seek (event, &rate, &format, &flags, &cur_type, &cur, &stop_type, &stop);
	switch (ix) {
	    case 0:
		RETVAL = newSVnv (rate);
		break;

	    case 1:
		RETVAL = newSVGstFormat (format);
		break;

	    case 2:
		RETVAL = newSVGstSeekFlags (flags);
		break;

	    case 3:
		RETVAL = newSVGstSeekType (cur_type);
		break;

	    case 4:
		RETVAL = newSVGInt64 (cur);
		break;

	    case 5:
		RETVAL = newSVGstSeekType (stop_type);
		break;

	    default:
		RETVAL = newSVGInt64 (stop);
		break;
	}
#line 699 "xs/GstEvent.c"
	ST(0) = RETVAL;
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Event__Navigation_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Event__Navigation_new)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, structure");
    {
	GstEvent_noinc *	RETVAL;
	GstStructure *	structure = SvGstStructure (ST(1))
;
#line 475 "xs/GstEvent.xs"
	/* The event will own structure. */
	RETVAL = gst_event_new_navigation (structure);
#line 720 "xs/GstEvent.c"
	ST(0) = newSVGstEvent_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_GStreamer__Event); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_GStreamer__Event)
{
    dVAR; dXSARGS;
#if (PERL_REVISION == 5 && PERL_VERSION < 9)
    char* file = __FILE__;
#else
    const char* file = __FILE__;
#endif

    PERL_UNUSED_VAR(cv); /* -W */
    PERL_UNUSED_VAR(items); /* -W */
#ifdef XS_APIVERSION_BOOTCHECK
    XS_APIVERSION_BOOTCHECK;
#endif
    XS_VERSION_BOOTCHECK;

        newXS("GStreamer::Event::get_structure", XS_GStreamer__Event_get_structure, file);
        newXS("GStreamer::Event::type", XS_GStreamer__Event_type, file);
        newXS("GStreamer::Event::Custom::new", XS_GStreamer__Event__Custom_new, file);
        newXS("GStreamer::Event::FlushStart::new", XS_GStreamer__Event__FlushStart_new, file);
        newXS("GStreamer::Event::FlushStop::new", XS_GStreamer__Event__FlushStop_new, file);
        newXS("GStreamer::Event::EOS::new", XS_GStreamer__Event__EOS_new, file);
        newXS("GStreamer::Event::NewSegment::new", XS_GStreamer__Event__NewSegment_new, file);
        cv = newXS("GStreamer::Event::NewSegment::format", XS_GStreamer__Event__NewSegment_update, file);
        XSANY.any_i32 = 2;
        cv = newXS("GStreamer::Event::NewSegment::rate", XS_GStreamer__Event__NewSegment_update, file);
        XSANY.any_i32 = 1;
        cv = newXS("GStreamer::Event::NewSegment::start_value", XS_GStreamer__Event__NewSegment_update, file);
        XSANY.any_i32 = 3;
        cv = newXS("GStreamer::Event::NewSegment::stop_value", XS_GStreamer__Event__NewSegment_update, file);
        XSANY.any_i32 = 4;
        cv = newXS("GStreamer::Event::NewSegment::stream_time", XS_GStreamer__Event__NewSegment_update, file);
        XSANY.any_i32 = 5;
        cv = newXS("GStreamer::Event::NewSegment::update", XS_GStreamer__Event__NewSegment_update, file);
        XSANY.any_i32 = 0;
        newXS("GStreamer::Event::Tag::new", XS_GStreamer__Event__Tag_new, file);
        newXS("GStreamer::Event::Tag::tag", XS_GStreamer__Event__Tag_tag, file);
        newXS("GStreamer::Event::BufferSize::new", XS_GStreamer__Event__BufferSize_new, file);
        cv = newXS("GStreamer::Event::BufferSize::async", XS_GStreamer__Event__BufferSize_format, file);
        XSANY.any_i32 = 3;
        cv = newXS("GStreamer::Event::BufferSize::format", XS_GStreamer__Event__BufferSize_format, file);
        XSANY.any_i32 = 0;
        cv = newXS("GStreamer::Event::BufferSize::maxsize", XS_GStreamer__Event__BufferSize_format, file);
        XSANY.any_i32 = 2;
        cv = newXS("GStreamer::Event::BufferSize::minsize", XS_GStreamer__Event__BufferSize_format, file);
        XSANY.any_i32 = 1;
        newXS("GStreamer::Event::QOS::new", XS_GStreamer__Event__QOS_new, file);
        cv = newXS("GStreamer::Event::QOS::diff", XS_GStreamer__Event__QOS_proportion, file);
        XSANY.any_i32 = 1;
        cv = newXS("GStreamer::Event::QOS::proportion", XS_GStreamer__Event__QOS_proportion, file);
        XSANY.any_i32 = 0;
        cv = newXS("GStreamer::Event::QOS::timestamp", XS_GStreamer__Event__QOS_proportion, file);
        XSANY.any_i32 = 2;
        newXS("GStreamer::Event::Seek::new", XS_GStreamer__Event__Seek_new, file);
        cv = newXS("GStreamer::Event::Seek::cur", XS_GStreamer__Event__Seek_rate, file);
        XSANY.any_i32 = 4;
        cv = newXS("GStreamer::Event::Seek::cur_type", XS_GStreamer__Event__Seek_rate, file);
        XSANY.any_i32 = 3;
        cv = newXS("GStreamer::Event::Seek::flags", XS_GStreamer__Event__Seek_rate, file);
        XSANY.any_i32 = 2;
        cv = newXS("GStreamer::Event::Seek::format", XS_GStreamer__Event__Seek_rate, file);
        XSANY.any_i32 = 1;
        cv = newXS("GStreamer::Event::Seek::rate", XS_GStreamer__Event__Seek_rate, file);
        XSANY.any_i32 = 0;
        cv = newXS("GStreamer::Event::Seek::stop", XS_GStreamer__Event__Seek_rate, file);
        XSANY.any_i32 = 6;
        cv = newXS("GStreamer::Event::Seek::stop_type", XS_GStreamer__Event__Seek_rate, file);
        XSANY.any_i32 = 5;
        newXS("GStreamer::Event::Navigation::new", XS_GStreamer__Event__Navigation_new, file);

    /* Initialisation Section */

#line 82 "xs/GstEvent.xs"
	gperl_set_isa ("GStreamer::Event::FlushStart", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::FlushStop", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::EOS", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::NewSegment", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::Tag", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::BufferSize", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::QOS", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::Seek", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::Navigation", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::Custom::UP", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::Custom::DS", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::Custom::DS::OOB", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::Custom::Both", "GStreamer::Event");
	gperl_set_isa ("GStreamer::Event::Custom::Both::OOB", "GStreamer::Event");
	gst2perl_register_mini_object_package_lookup_func (
		GST_TYPE_EVENT,
		(Gst2PerlMiniObjectPackageLookupFunc) get_package);

#line 822 "xs/GstEvent.c"

    /* End of Initialisation Section */

#if (PERL_REVISION == 5 && PERL_VERSION >= 9)
  if (PL_unitcheckav)
       call_list(PL_scopestack_ix, PL_unitcheckav);
#endif
    XSRETURN_YES;
}

