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

#line 1 "xs/GstQuery.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"

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

SV *
newSVGstQueryType (GstQueryType type)
{
	SV *sv = gperl_convert_back_enum_pass_unknown (GST_TYPE_QUERY_TYPE, type);

	if (looks_like_number (sv)) {
		const GstQueryTypeDefinition *details;
		details = gst_query_type_get_details (type);
		if (details)
			sv_setpv (sv, details->nick);
	}
	return sv;
}

GstQueryType
SvGstQueryType (SV *sv)
{
	GstQueryType format;

	if (gperl_try_convert_enum (GST_TYPE_QUERY_TYPE, sv, (gint *) &format))
		return format;

	return gst_query_type_get_by_nick (SvPV_nolen (sv));
}

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

static const char *
get_package (GstQuery *query)
{
	const char *package = "GStreamer::Query";

	switch (GST_QUERY_TYPE (query)) {
	    case GST_QUERY_POSITION:
		package = "GStreamer::Query::Position";
		break;

	    case GST_QUERY_DURATION:
		package = "GStreamer::Query::Duration";
		break;

	    case GST_QUERY_LATENCY:
		package = "GStreamer::Query::Latency";
		break;

	    case GST_QUERY_JITTER:
		package = "GStreamer::Query::Jitter";
		break;

	    case GST_QUERY_RATE:
		package = "GStreamer::Query::Rate";
		break;

	    case GST_QUERY_SEEKING:
		package = "GStreamer::Query::Seeking";
		break;

	    case GST_QUERY_SEGMENT:
		package = "GStreamer::Query::Segment";
		break;

	    case GST_QUERY_CONVERT:
		package = "GStreamer::Query::Convert";
		break;

	    case GST_QUERY_FORMATS:
		package = "GStreamer::Query::Formats";
		break;

	    case GST_QUERY_NONE:
		break;

	    default:
		/* Happens for dynamically registered types, for example.  Use
		 * the standard package. */
		break;
	}

	return package;
}

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

#line 119 "xs/GstQuery.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 261 "xs/GstQuery.c"

XS_EUPXS(XS_GStreamer__QueryType_register); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__QueryType_register)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "nick, description");
    {
	const gchar *	nick;
	const gchar *	description;
	GstQueryType	RETVAL;

	/* same as SvGChar(), but not in a function */
	sv_utf8_upgrade (ST(0));
	nick = (const gchar *)SvPV_nolen (ST(0))
;

	/* same as SvGChar(), but not in a function */
	sv_utf8_upgrade (ST(1));
	description = (const gchar *)SvPV_nolen (ST(1))
;

	RETVAL = gst_query_type_register(nick, description);
	ST(0) = newSVGstQueryType (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__QueryType_get_by_nick); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__QueryType_get_by_nick)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "nick");
    {
	const gchar *	nick;
	GstQueryType	RETVAL;

	/* same as SvGChar(), but not in a function */
	sv_utf8_upgrade (ST(0));
	nick = (const gchar *)SvPV_nolen (ST(0))
;

	RETVAL = gst_query_type_get_by_nick(nick);
	ST(0) = newSVGstQueryType (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__QueryType_get_details); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__QueryType_get_details)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "type");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GstQueryType	type = SvGstQueryType (ST(0))
;
#line 141 "xs/GstQuery.xs"
	const GstQueryTypeDefinition *details;
#line 328 "xs/GstQuery.c"
#line 143 "xs/GstQuery.xs"
	details = gst_query_type_get_details (type);
	if (details) {
		EXTEND (sp, 3);
		PUSHs (sv_2mortal (newSVGstQueryType (details->value)));
		PUSHs (sv_2mortal (newSVGChar (details->nick)));
		PUSHs (sv_2mortal (newSVGChar (details->description)));
	}
#line 337 "xs/GstQuery.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_GStreamer__Query_get_structure); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Query_get_structure)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "query");
    {
	GstStructure *	RETVAL;
	GstQuery *	query = SvGstQuery (ST(0))
;

	RETVAL = gst_query_get_structure(query);
	ST(0) = newSVGstStructure (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Query__Position_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Query__Position_new)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, format");
    {
	GstQuery_noinc *	RETVAL;
	GstFormat	format = SvGstFormat (ST(1))
;
#line 224 "xs/GstQuery.xs"
	RETVAL = gst_query_new_position (format);
#line 375 "xs/GstQuery.c"
	ST(0) = newSVGstQuery_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Query__Position_position); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Query__Position_position)
{
    dVAR; dXSARGS;
    if (items < 1 || items > 3)
       croak_xs_usage(cv,  "query, format=0, cur=0");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 233 "xs/GstQuery.xs"
	GstFormat old_format;
	gint64 old_cur;
#line 395 "xs/GstQuery.c"
	GstQuery *	query = SvGstQuery (ST(0))
;
	GstFormat	format;
	gint64	cur;

	if (items < 2)
	    format = 0;
	else {
	    format = SvGstFormat (ST(1))
;
	}

	if (items < 3)
	    cur = 0;
	else {
	    cur = SvGInt64 (ST(2))
;
	}
#line 236 "xs/GstQuery.xs"
	gst_query_parse_position (query, &old_format, &old_cur);
	if (items == 3)
		gst_query_set_position (query, format, cur);
	EXTEND (sp, 2);
	PUSHs (sv_2mortal (newSVGstFormat (old_format)));
	PUSHs (sv_2mortal (newSVGInt64 (old_cur)));
#line 421 "xs/GstQuery.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_GStreamer__Query__Duration_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Query__Duration_new)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, format");
    {
	GstQuery_noinc *	RETVAL;
	GstFormat	format = SvGstFormat (ST(1))
;
#line 251 "xs/GstQuery.xs"
	RETVAL = gst_query_new_duration (format);
#line 440 "xs/GstQuery.c"
	ST(0) = newSVGstQuery_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Query__Duration_duration); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Query__Duration_duration)
{
    dVAR; dXSARGS;
    if (items < 1 || items > 3)
       croak_xs_usage(cv,  "query, format=0, duration=0");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 260 "xs/GstQuery.xs"
	GstFormat old_format;
	gint64 old_duration;
#line 460 "xs/GstQuery.c"
	GstQuery *	query = SvGstQuery (ST(0))
;
	GstFormat	format;
	gint64	duration;

	if (items < 2)
	    format = 0;
	else {
	    format = SvGstFormat (ST(1))
;
	}

	if (items < 3)
	    duration = 0;
	else {
	    duration = SvGInt64 (ST(2))
;
	}
#line 263 "xs/GstQuery.xs"
	gst_query_parse_duration (query, &old_format, &old_duration);
	if (items == 3)
		gst_query_set_duration (query, format, duration);
	EXTEND (sp, 2);
	PUSHs (sv_2mortal (newSVGstFormat (old_format)));
	PUSHs (sv_2mortal (newSVGInt64 (old_duration)));
#line 486 "xs/GstQuery.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_GStreamer__Query__Convert_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Query__Convert_new)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "class, src_format, value, dest_format");
    {
	GstQuery_noinc *	RETVAL;
	GstFormat	src_format = SvGstFormat (ST(1))
;
	gint64	value = SvGInt64 (ST(2))
;
	GstFormat	dest_format = SvGstFormat (ST(3))
;
#line 278 "xs/GstQuery.xs"
	RETVAL = gst_query_new_convert (src_format, value, dest_format);
#line 509 "xs/GstQuery.c"
	ST(0) = newSVGstQuery_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Query__Convert_convert); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Query__Convert_convert)
{
    dVAR; dXSARGS;
    if (items < 1 || items > 5)
       croak_xs_usage(cv,  "query, src_format=0, src_value=0, dest_format=0, dest_value=0");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 287 "xs/GstQuery.xs"
	GstFormat old_src_format;
	gint64 old_src_value;
	GstFormat old_dest_format;
	gint64 old_dest_value;
#line 531 "xs/GstQuery.c"
	GstQuery *	query = SvGstQuery (ST(0))
;
	GstFormat	src_format;
	gint64	src_value;
	GstFormat	dest_format;
	gint64	dest_value;

	if (items < 2)
	    src_format = 0;
	else {
	    src_format = SvGstFormat (ST(1))
;
	}

	if (items < 3)
	    src_value = 0;
	else {
	    src_value = SvGInt64 (ST(2))
;
	}

	if (items < 4)
	    dest_format = 0;
	else {
	    dest_format = SvGstFormat (ST(3))
;
	}

	if (items < 5)
	    dest_value = 0;
	else {
	    dest_value = SvGInt64 (ST(4))
;
	}
#line 292 "xs/GstQuery.xs"
	gst_query_parse_convert (query, &old_src_format, &old_src_value, &old_dest_format, &old_dest_value);
	if (items == 5)
		gst_query_set_convert (query, src_format, src_value, dest_format, dest_value);
	EXTEND (sp, 4);
	PUSHs (sv_2mortal (newSVGstFormat (old_src_format)));
	PUSHs (sv_2mortal (newSVGInt64 (old_src_value)));
	PUSHs (sv_2mortal (newSVGstFormat (old_dest_format)));
	PUSHs (sv_2mortal (newSVGInt64 (old_dest_value)));
#line 575 "xs/GstQuery.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_GStreamer__Query__Segment_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Query__Segment_new)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, format");
    {
	GstQuery_noinc *	RETVAL;
	GstFormat	format = SvGstFormat (ST(1))
;
#line 309 "xs/GstQuery.xs"
	RETVAL = gst_query_new_segment (format);
#line 594 "xs/GstQuery.c"
	ST(0) = newSVGstQuery_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_GStreamer__Query__Segment_segment); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Query__Segment_segment)
{
    dVAR; dXSARGS;
    if (items < 1 || items > 5)
       croak_xs_usage(cv,  "query, rate=0.0, format=0, start_value=0, stop_value=0");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 318 "xs/GstQuery.xs"
	gdouble old_rate;
	GstFormat old_format;
	gint64 old_start_value;
	gint64 old_stop_value;
#line 616 "xs/GstQuery.c"
	GstQuery *	query = SvGstQuery (ST(0))
;
	gdouble	rate;
	GstFormat	format;
	gint64	start_value;
	gint64	stop_value;

	if (items < 2)
	    rate = 0.0;
	else {
	    rate = (double)SvNV(ST(1))
;
	}

	if (items < 3)
	    format = 0;
	else {
	    format = SvGstFormat (ST(2))
;
	}

	if (items < 4)
	    start_value = 0;
	else {
	    start_value = SvGInt64 (ST(3))
;
	}

	if (items < 5)
	    stop_value = 0;
	else {
	    stop_value = SvGInt64 (ST(4))
;
	}
#line 323 "xs/GstQuery.xs"
	gst_query_parse_segment (query, &old_rate, &old_format, &old_start_value, &old_stop_value);
	if (items == 5)
		gst_query_set_segment (query, rate, format, start_value, stop_value);
	EXTEND (sp, 4);
	PUSHs (sv_2mortal (newSVnv (old_rate)));
	PUSHs (sv_2mortal (newSVGstFormat (old_format)));
	PUSHs (sv_2mortal (newSVGInt64 (old_start_value)));
	PUSHs (sv_2mortal (newSVGInt64 (old_stop_value)));
#line 660 "xs/GstQuery.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_GStreamer__Query__Application_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_GStreamer__Query__Application_new)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, type, structure");
    {
	GstQuery_noinc *	RETVAL;
	GstQueryType	type = SvGstQueryType (ST(1))
;
	GstStructure *	structure = SvGstStructure (ST(2))
;
#line 340 "xs/GstQuery.xs"
	/* RETVAL owns structure. */
	RETVAL = gst_query_new_application (type, structure);
#line 682 "xs/GstQuery.c"
	ST(0) = newSVGstQuery_noinc (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_GStreamer__Query); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_GStreamer__Query)
{
    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::QueryType::register", XS_GStreamer__QueryType_register, file);
        newXS("GStreamer::QueryType::get_by_nick", XS_GStreamer__QueryType_get_by_nick, file);
        newXS("GStreamer::QueryType::get_details", XS_GStreamer__QueryType_get_details, file);
        newXS("GStreamer::Query::get_structure", XS_GStreamer__Query_get_structure, file);
        newXS("GStreamer::Query::Position::new", XS_GStreamer__Query__Position_new, file);
        newXS("GStreamer::Query::Position::position", XS_GStreamer__Query__Position_position, file);
        newXS("GStreamer::Query::Duration::new", XS_GStreamer__Query__Duration_new, file);
        newXS("GStreamer::Query::Duration::duration", XS_GStreamer__Query__Duration_duration, file);
        newXS("GStreamer::Query::Convert::new", XS_GStreamer__Query__Convert_new, file);
        newXS("GStreamer::Query::Convert::convert", XS_GStreamer__Query__Convert_convert, file);
        newXS("GStreamer::Query::Segment::new", XS_GStreamer__Query__Segment_new, file);
        newXS("GStreamer::Query::Segment::segment", XS_GStreamer__Query__Segment_segment, file);
        newXS("GStreamer::Query::Application::new", XS_GStreamer__Query__Application_new, file);

    /* Initialisation Section */

#line 112 "xs/GstQuery.xs"
	gst2perl_register_mini_object_package_lookup_func (
		GST_TYPE_QUERY,
		(Gst2PerlMiniObjectPackageLookupFunc) get_package);

#line 159 "xs/GstQuery.xs"
	gperl_set_isa ("GStreamer::Query::Position", "GStreamer::Query");
	gperl_set_isa ("GStreamer::Query::Duration", "GStreamer::Query");
	gperl_set_isa ("GStreamer::Query::Latency", "GStreamer::Query");
	gperl_set_isa ("GStreamer::Query::Jitter", "GStreamer::Query");
	gperl_set_isa ("GStreamer::Query::Rate", "GStreamer::Query");
	gperl_set_isa ("GStreamer::Query::Seeking", "GStreamer::Query");
	gperl_set_isa ("GStreamer::Query::Segment", "GStreamer::Query");
	gperl_set_isa ("GStreamer::Query::Convert", "GStreamer::Query");
	gperl_set_isa ("GStreamer::Query::Formats", "GStreamer::Query");

#line 741 "xs/GstQuery.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;
}

