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

#line 1 "xs/GnomeVFSMime.xs"
/*
 * Copyright (C) 2003-2005, 2013 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * $Id$
 */

#include "vfs2perl.h"

/* So we get those functions that were deprecated after we bound them. */
#undef GNOME_VFS_DISABLE_DEPRECATED

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

#if 0

struct Bonobo_ServerInfo_type
{
   Bonobo_ImplementationID iid;
   CORBA_string server_type;
   CORBA_string location_info;
   CORBA_string username;
   CORBA_string hostname;
   CORBA_string domain;
   CORBA_sequence_Bonobo_ActivationProperty props;
};

typedef struct {
        GnomeVFSMimeActionType action_type;
        union {
                Bonobo_ServerInfo *component;
                void *dummy_component;
                GnomeVFSMimeApplication *application;
        } action;
} GnomeVFSMimeAction;

SV *
newSVGnomeVFSMimeAction (GnomeVFSMimeAction *action)
{
	...
}

#endif

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

#line 70 "xs/GnomeVFSMime.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 212 "xs/GnomeVFSMime.c"

XS_EUPXS(XS_Gnome2__VFS__Mime_id_in_application_list); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime_id_in_application_list)
{
    dVAR; dXSARGS;
    if (items < 2)
       croak_xs_usage(cv,  "class, id, ...");
    {
	const char *	id = (const char *)SvPV_nolen(ST(1))
;
#line 73 "xs/GnomeVFSMime.xs"
	int i;
	GList *applications = NULL;
#line 226 "xs/GnomeVFSMime.c"
	gboolean	RETVAL;
#line 76 "xs/GnomeVFSMime.xs"
	for (i = 2; i < items; i++)
		applications = g_list_append (applications, SvGnomeVFSMimeApplication (ST (i)));

	RETVAL = gnome_vfs_mime_id_in_application_list (id, applications);

	/* gnome_vfs_mime_application_list_free (applications); */
	g_list_free (applications);
#line 236 "xs/GnomeVFSMime.c"
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime_remove_application_from_list); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime_remove_application_from_list)
{
    dVAR; dXSARGS;
    if (items < 2)
       croak_xs_usage(cv,  "class, application_id, ...");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	const char *	application_id = (const char *)SvPV_nolen(ST(1))
;
#line 100 "xs/GnomeVFSMime.xs"
	int i;
	GList *applications = NULL, *result, *j;
	gboolean did_remove;
#line 258 "xs/GnomeVFSMime.c"
#line 104 "xs/GnomeVFSMime.xs"
	for (i = 2; i < items; i++)
		applications = g_list_append (applications, SvGnomeVFSMimeApplication (ST (i)));

	result = gnome_vfs_mime_remove_application_from_list (applications, application_id, &did_remove);

	EXTEND (sp, 1);
	PUSHs (sv_2mortal (newSVuv (did_remove)));

	for (j = result; j != NULL; j = j->next) {
		XPUSHs (sv_2mortal (newSVGnomeVFSMimeApplication (j->data)));
		/* gnome_vfs_mime_application_free (j->data); */
	}

	g_list_free (result);
#line 274 "xs/GnomeVFSMime.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gnome2__VFS__Mime_id_list_from_application_list); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime_id_list_from_application_list)
{
    dVAR; dXSARGS;
    if (items < 1)
       croak_xs_usage(cv,  "class, ...");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
#line 131 "xs/GnomeVFSMime.xs"
	int i;
	GList *applications = NULL, *ids, *j;
#line 293 "xs/GnomeVFSMime.c"
#line 134 "xs/GnomeVFSMime.xs"
	for (i = 1; i < items; i++)
		applications = g_list_append (applications, SvGnomeVFSMimeApplication (ST (i)));

	ids = gnome_vfs_mime_id_list_from_application_list (applications);

	for (j = ids; j != NULL; j = j->next) {
		XPUSHs (sv_2mortal (newSVpv (j->data, 0)));
		/* g_free (j->data); */
	}

	g_list_free (applications);
	g_list_free (ids);
#line 307 "xs/GnomeVFSMime.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_new)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, mime_type");
    {
	const char *	mime_type = (const char *)SvPV_nolen(ST(1))
;
	SV *	RETVAL;
#line 176 "xs/GnomeVFSMime.xs"
	RETVAL = newSVGnomeVFSMimeType (mime_type);
#line 326 "xs/GnomeVFSMime.c"
	ST(0) = RETVAL;
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_default_action_type); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_default_action_type)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "mime_type");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	GnomeVFSMimeActionType	RETVAL;

	RETVAL = gnome_vfs_mime_get_default_action_type(mime_type);
	ST(0) = newSVGnomeVFSMimeActionType (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_default_application); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_default_application)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "mime_type");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	GnomeVFSMimeApplication *	RETVAL;

	RETVAL = gnome_vfs_mime_get_default_application(mime_type);
	ST(0) = newSVGnomeVFSMimeApplication (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#if VFS_CHECK_VERSION (2, 10, 0)
#define XSubPPtmpAAAA 1


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_default_application_for_uri); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_default_application_for_uri)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, uri");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	uri = (const char *)SvPV_nolen(ST(1))
;
	GnomeVFSMimeApplication *	RETVAL;

	RETVAL = gnome_vfs_mime_get_default_application_for_uri(uri, mime_type);
	ST(0) = newSVGnomeVFSMimeApplication (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_short_list_applications); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_short_list_applications)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "mime_type");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
#line 224 "xs/GnomeVFSMime.xs"
	GList *i, *applications;
#line 410 "xs/GnomeVFSMime.c"
#line 226 "xs/GnomeVFSMime.xs"
	applications = gnome_vfs_mime_get_short_list_applications (mime_type);

	for (i = applications; i != NULL; i = i->next)
		XPUSHs (sv_2mortal (newSVGnomeVFSMimeApplication (i->data)));

	/* gnome_vfs_mime_application_list_free (applications); */
	g_list_free (applications);
#line 419 "xs/GnomeVFSMime.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_all_applications); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_all_applications)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "mime_type");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
#line 250 "xs/GnomeVFSMime.xs"
	GList *i, *applications;
#line 439 "xs/GnomeVFSMime.c"
#line 252 "xs/GnomeVFSMime.xs"
	applications = gnome_vfs_mime_get_all_applications (mime_type);

	for (i = applications; i != NULL; i = i->next)
		XPUSHs (sv_2mortal (newSVGnomeVFSMimeApplication (i->data)));

	/* gnome_vfs_mime_application_list_free (applications); */
	g_list_free (applications);
#line 448 "xs/GnomeVFSMime.c"
	PUTBACK;
	return;
    }
}

#if VFS_CHECK_VERSION (2, 10, 0)
#define XSubPPtmpAAAB 1


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_all_applications_for_uri); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_all_applications_for_uri)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, uri");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	uri = (const char *)SvPV_nolen(ST(1))
;
#line 268 "xs/GnomeVFSMime.xs"
	GList *i, *applications;
#line 473 "xs/GnomeVFSMime.c"
#line 270 "xs/GnomeVFSMime.xs"
	applications = gnome_vfs_mime_get_all_applications_for_uri (uri, mime_type);

	for (i = applications; i != NULL; i = i->next)
		XPUSHs (sv_2mortal (newSVGnomeVFSMimeApplication (i->data)));

	/* gnome_vfs_mime_application_list_free (applications); */
	g_list_free (applications);
#line 482 "xs/GnomeVFSMime.c"
	PUTBACK;
	return;
    }
}

#endif

XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_default_action_type); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_default_action_type)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, action_type");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	GnomeVFSMimeActionType	action_type = SvGnomeVFSMimeActionType (ST(1))
;
	GnomeVFSResult	RETVAL;

	RETVAL = gnome_vfs_mime_set_default_action_type(mime_type, action_type);
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_default_application); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_default_application)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, application_id");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	application_id = (const char *)SvPV_nolen(ST(1))
;
	GnomeVFSResult	RETVAL;

	RETVAL = gnome_vfs_mime_set_default_application(mime_type, application_id);
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_icon); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_icon)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "mime_type");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	RETVAL;
	dXSTARG;

	RETVAL = gnome_vfs_mime_get_icon(mime_type);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_icon); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_icon)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, filename");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	filename = (const char *)SvPV_nolen(ST(1))
;
	GnomeVFSResult	RETVAL;

	RETVAL = gnome_vfs_mime_set_icon(mime_type, filename);
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_description); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_description)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "mime_type");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	RETVAL;
	dXSTARG;

	RETVAL = gnome_vfs_mime_get_description(mime_type);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_description); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_description)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, description");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	description = (const char *)SvPV_nolen(ST(1))
;
	GnomeVFSResult	RETVAL;

	RETVAL = gnome_vfs_mime_set_description(mime_type, description);
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_can_be_executable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_can_be_executable)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "mime_type");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	gboolean	RETVAL;

	RETVAL = gnome_vfs_mime_can_be_executable(mime_type);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_can_be_executable); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_can_be_executable)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, new_value");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	gboolean	new_value = (bool)SvTRUE(ST(1))
;
	GnomeVFSResult	RETVAL;

	RETVAL = gnome_vfs_mime_set_can_be_executable(mime_type, new_value);
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_short_list_applications); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_set_short_list_applications)
{
    dVAR; dXSARGS;
    if (items < 1)
       croak_xs_usage(cv,  "mime_type, ...");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
#line 349 "xs/GnomeVFSMime.xs"
	GList *application_ids = NULL;
	int i;
#line 663 "xs/GnomeVFSMime.c"
	GnomeVFSResult	RETVAL;
#line 352 "xs/GnomeVFSMime.xs"
	for (i = 1; i < items; i++)
		application_ids = g_list_append (application_ids, SvPV_nolen (ST (i)));

	RETVAL = gnome_vfs_mime_set_short_list_applications (mime_type, application_ids);

	g_list_free (application_ids);
#line 672 "xs/GnomeVFSMime.c"
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_add_application_to_short_list); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_add_application_to_short_list)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, application_id");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	application_id = (const char *)SvPV_nolen(ST(1))
;
	GnomeVFSResult	RETVAL;

	RETVAL = gnome_vfs_mime_add_application_to_short_list(mime_type, application_id);
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_remove_application_from_short_list); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_remove_application_from_short_list)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, application_id");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	application_id = (const char *)SvPV_nolen(ST(1))
;
	GnomeVFSResult	RETVAL;

	RETVAL = gnome_vfs_mime_remove_application_from_short_list(mime_type, application_id);
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_add_extension); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_add_extension)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, extension");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	extension = (const char *)SvPV_nolen(ST(1))
;
	GnomeVFSResult	RETVAL;

	RETVAL = gnome_vfs_mime_add_extension(mime_type, extension);
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_remove_extension); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_remove_extension)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, extension");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	const char *	extension = (const char *)SvPV_nolen(ST(1))
;
	GnomeVFSResult	RETVAL;

	RETVAL = gnome_vfs_mime_remove_extension(mime_type, extension);
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_extend_all_applications); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_extend_all_applications)
{
    dVAR; dXSARGS;
    if (items < 1)
       croak_xs_usage(cv,  "mime_type, ...");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
#line 417 "xs/GnomeVFSMime.xs"
	GList *application_ids = NULL;
	int i;
#line 776 "xs/GnomeVFSMime.c"
	GnomeVFSResult	RETVAL;
#line 420 "xs/GnomeVFSMime.xs"
	for (i = 1; i < items; i++)
		application_ids = g_list_append (application_ids, SvPV_nolen (ST (i)));

	RETVAL = gnome_vfs_mime_extend_all_applications (mime_type, application_ids);

	g_list_free (application_ids);
#line 785 "xs/GnomeVFSMime.c"
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_remove_from_all_applications); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_remove_from_all_applications)
{
    dVAR; dXSARGS;
    if (items < 1)
       croak_xs_usage(cv,  "mime_type, ...");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
#line 440 "xs/GnomeVFSMime.xs"
	GList *application_ids = NULL;
	int i;
#line 805 "xs/GnomeVFSMime.c"
	GnomeVFSResult	RETVAL;
#line 443 "xs/GnomeVFSMime.xs"
	for (i = 1; i < items; i++)
		application_ids = g_list_append (application_ids, SvPV_nolen (ST (i)));

	RETVAL = gnome_vfs_mime_remove_from_all_applications (mime_type, application_ids);

	g_list_free (application_ids);
#line 814 "xs/GnomeVFSMime.c"
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#if VFS_CHECK_VERSION (2, 8, 0)
#define XSubPPtmpAAAC 1


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_all_desktop_entries); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_all_desktop_entries)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "mime_type");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
#line 459 "xs/GnomeVFSMime.xs"
	GList *result = NULL, *i;
#line 838 "xs/GnomeVFSMime.c"
#line 461 "xs/GnomeVFSMime.xs"
	result = gnome_vfs_mime_get_all_desktop_entries (mime_type);

	for (i = result; i; i = i->next) {
		if (i->data) {
			XPUSHs (sv_2mortal (newSVpv (i->data, 0)));
			g_free (i->data);
		}
	}

	g_list_free (result);
#line 850 "xs/GnomeVFSMime.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_default_desktop_entry); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_default_desktop_entry)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "mime_type");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	gchar_own *	RETVAL;

	RETVAL = gnome_vfs_mime_get_default_desktop_entry(mime_type);
	ST(0) = sv_newmortal();
	/* used when we can directly own the returned string. */
	/* we have to copy in the case when perl's malloc != gtk's malloc,
         * so best copy all the time. */
	sv_setpv ((SV*)ST(0), RETVAL);
	SvUTF8_on (ST(0));
        g_free (RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_equivalence); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_get_equivalence)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "mime_type, base_mime_type");
    {
	GnomeVFSMimeType *	mime_type = SvGnomeVFSMimeType (ST(0))
;
	GnomeVFSMimeType *	base_mime_type = SvGnomeVFSMimeType (ST(1))
;
	GnomeVFSMimeEquivalence	RETVAL;
#line 483 "xs/GnomeVFSMime.xs"
	RETVAL = gnome_vfs_mime_type_get_equivalence (mime_type, base_mime_type);
#line 895 "xs/GnomeVFSMime.c"
	ST(0) = newSVGnomeVFSMimeEquivalence (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Type_is_equal); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Type_is_equal)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "a, b");
    {
	GnomeVFSMimeType *	a = SvGnomeVFSMimeType (ST(0))
;
	GnomeVFSMimeType *	b = SvGnomeVFSMimeType (ST(1))
;
	gboolean	RETVAL;
#line 493 "xs/GnomeVFSMime.xs"
	RETVAL = gnome_vfs_mime_type_is_equal (a, b);
#line 917 "xs/GnomeVFSMime.c"
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gnome2__VFS__Mime__Application_DESTROY); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_DESTROY)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "application");
    {
	GnomeVFSMimeApplication *	application = SvGnomeVFSMimeApplication (ST(0))
;
#line 506 "xs/GnomeVFSMime.xs"
	gnome_vfs_mime_application_free (application);
#line 936 "xs/GnomeVFSMime.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_new_from_id); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_new_from_id)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, id");
    {
	const char *	id = (const char *)SvPV_nolen(ST(1))
;
	GnomeVFSMimeApplication *	RETVAL;

	RETVAL = gnome_vfs_mime_application_new_from_id(id);
	ST(0) = newSVGnomeVFSMimeApplication (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#if VFS_CHECK_VERSION (2, 10, 0)
#define XSubPPtmpAAAD 1


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_new_from_desktop_id); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_new_from_desktop_id)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, id");
    {
	const char *	id = (const char *)SvPV_nolen(ST(1))
;
	GnomeVFSMimeApplication *	RETVAL;

	RETVAL = gnome_vfs_mime_application_new_from_desktop_id(id);
	ST(0) = newSVGnomeVFSMimeApplication (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#endif
#if VFS_CHECK_VERSION (2, 4, 0)
#define XSubPPtmpAAAE 1


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_launch); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_launch)
{
    dVAR; dXSARGS;
    if (items < 1)
       croak_xs_usage(cv,  "app, ...");
    {
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;
#line 538 "xs/GnomeVFSMime.xs"
	GList *uris = NULL;
	int i;
#line 999 "xs/GnomeVFSMime.c"
	GnomeVFSResult	RETVAL;
#line 541 "xs/GnomeVFSMime.xs"
	for (i = 1; i < items; i++)
		uris = g_list_append (uris, SvPV_nolen (ST (i)));

	RETVAL = gnome_vfs_mime_application_launch (app, uris);

	g_list_free (uris);
#line 1008 "xs/GnomeVFSMime.c"
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_launch_with_env); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_launch_with_env)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "app, uri_ref, env_ref");
    {
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;
	SV *	uri_ref = ST(1)
;
	SV *	env_ref = ST(2)
;
#line 558 "xs/GnomeVFSMime.xs"
	char **envp;
	GList *uris;
#line 1032 "xs/GnomeVFSMime.c"
	GnomeVFSResult	RETVAL;
#line 561 "xs/GnomeVFSMime.xs"
	envp = SvEnvArray (env_ref);
	uris = SvPVGList (uri_ref);

	RETVAL = gnome_vfs_mime_application_launch_with_env (app, uris, envp);

	g_free (envp);
	g_list_free (uris);
#line 1042 "xs/GnomeVFSMime.c"
	ST(0) = newSVGnomeVFSResult (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

#endif
#if VFS_CHECK_VERSION (2, 10, 0)
#define XSubPPtmpAAAF 1


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_desktop_id); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_desktop_id)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	const char *	RETVAL;
	dXSTARG;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_get_desktop_id(app);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_desktop_file_path); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_desktop_file_path)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	const char *	RETVAL;
	dXSTARG;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_get_desktop_file_path(app);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_name)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	const char *	RETVAL;
	dXSTARG;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_get_name(app);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_generic_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_generic_name)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	const char *	RETVAL;
	dXSTARG;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_get_generic_name(app);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_icon); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_icon)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	const char *	RETVAL;
	dXSTARG;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_get_icon(app);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_exec); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_exec)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	const char *	RETVAL;
	dXSTARG;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_get_exec(app);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_binary_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_binary_name)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	const char *	RETVAL;
	dXSTARG;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_get_binary_name(app);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_supports_uris); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_supports_uris)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	gboolean	RETVAL;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_supports_uris(app);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_requires_terminal); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_requires_terminal)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	gboolean	RETVAL;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_requires_terminal(app);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_supports_startup_notification); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_supports_startup_notification)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	gboolean	RETVAL;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_supports_startup_notification(app);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_startup_wm_class); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Application_get_startup_wm_class)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "app");
    {
	const char *	RETVAL;
	dXSTARG;
	GnomeVFSMimeApplication *	app = SvGnomeVFSMimeApplication (ST(0))
;

	RETVAL = gnome_vfs_mime_application_get_startup_wm_class(app);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gnome2__VFS__Mime__Monitor_get); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS__Mime__Monitor_get)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	GnomeVFSMIMEMonitor *	RETVAL;

	RETVAL = gnome_vfs_mime_monitor_get(/* void */);
	ST(0) = newSVGnomeVFSMIMEMonitor (RETVAL);
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS_get_mime_type); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS_get_mime_type)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, text_uri");
    {
	const char *	text_uri = (const char *)SvPV_nolen(ST(1))
;
	char_own *	RETVAL;

	RETVAL = gnome_vfs_get_mime_type(text_uri);
	ST(0) = sv_newmortal();
	sv_setpv ((SV*)ST(0), RETVAL);
        g_free (RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS_get_mime_type_for_data); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS_get_mime_type_for_data)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, data");
    {
	SV *	data = ST(1)
;
#line 648 "xs/GnomeVFSMime.xs"
	STRLEN data_size;
	gconstpointer real_data;
#line 1310 "xs/GnomeVFSMime.c"
	const char *	RETVAL;
	dXSTARG;
#line 651 "xs/GnomeVFSMime.xs"
	real_data = SvPV (data, data_size);
	RETVAL = gnome_vfs_get_mime_type_for_data (real_data, data_size);
#line 1316 "xs/GnomeVFSMime.c"
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}

#if VFS_CHECK_VERSION (2, 14, 0)
#define XSubPPtmpAAAG 1


XS_EUPXS(XS_Gnome2__VFS_get_slow_mime_type); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS_get_slow_mime_type)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, text_uri");
    {
	char_own *	RETVAL;
	const char *	text_uri = (const char *)SvPV_nolen(ST(1))
;

	RETVAL = gnome_vfs_get_slow_mime_type(text_uri);
	ST(0) = sv_newmortal();
	sv_setpv ((SV*)ST(0), RETVAL);
        g_free (RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS_get_mime_type_for_name); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS_get_mime_type_for_name)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, filename");
    {
	const char *	RETVAL;
	dXSTARG;
	const char *	filename = (const char *)SvPV_nolen(ST(1))
;

	RETVAL = gnome_vfs_get_mime_type_for_name(filename);
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gnome2__VFS_get_mime_type_for_name_and_data); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__VFS_get_mime_type_for_name_and_data)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, filename, data");
    {
	const char *	filename = (const char *)SvPV_nolen(ST(1))
;
	SV *	data = ST(2)
;
#line 675 "xs/GnomeVFSMime.xs"
	STRLEN data_size;
	gconstpointer real_data;
#line 1379 "xs/GnomeVFSMime.c"
	const char *	RETVAL;
	dXSTARG;
#line 678 "xs/GnomeVFSMime.xs"
	real_data = SvPV (data, data_size);
	RETVAL = gnome_vfs_get_mime_type_for_name_and_data (filename, real_data, data_size);
#line 1385 "xs/GnomeVFSMime.c"
	sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
    }
    XSRETURN(1);
}

#endif
#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gnome2__VFS__Mime); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gnome2__VFS__Mime)
{
    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("Gnome2::VFS::Mime::id_in_application_list", XS_Gnome2__VFS__Mime_id_in_application_list, file);
        newXS("Gnome2::VFS::Mime::remove_application_from_list", XS_Gnome2__VFS__Mime_remove_application_from_list, file);
        newXS("Gnome2::VFS::Mime::id_list_from_application_list", XS_Gnome2__VFS__Mime_id_list_from_application_list, file);
        newXS("Gnome2::VFS::Mime::Type::new", XS_Gnome2__VFS__Mime__Type_new, file);
        newXS("Gnome2::VFS::Mime::Type::get_default_action_type", XS_Gnome2__VFS__Mime__Type_get_default_action_type, file);
        newXS("Gnome2::VFS::Mime::Type::get_default_application", XS_Gnome2__VFS__Mime__Type_get_default_application, file);
#if XSubPPtmpAAAA
        newXS("Gnome2::VFS::Mime::Type::get_default_application_for_uri", XS_Gnome2__VFS__Mime__Type_get_default_application_for_uri, file);
#endif
        newXS("Gnome2::VFS::Mime::Type::get_short_list_applications", XS_Gnome2__VFS__Mime__Type_get_short_list_applications, file);
        newXS("Gnome2::VFS::Mime::Type::get_all_applications", XS_Gnome2__VFS__Mime__Type_get_all_applications, file);
#if XSubPPtmpAAAB
        newXS("Gnome2::VFS::Mime::Type::get_all_applications_for_uri", XS_Gnome2__VFS__Mime__Type_get_all_applications_for_uri, file);
#endif
        newXS("Gnome2::VFS::Mime::Type::set_default_action_type", XS_Gnome2__VFS__Mime__Type_set_default_action_type, file);
        newXS("Gnome2::VFS::Mime::Type::set_default_application", XS_Gnome2__VFS__Mime__Type_set_default_application, file);
        newXS("Gnome2::VFS::Mime::Type::get_icon", XS_Gnome2__VFS__Mime__Type_get_icon, file);
        newXS("Gnome2::VFS::Mime::Type::set_icon", XS_Gnome2__VFS__Mime__Type_set_icon, file);
        newXS("Gnome2::VFS::Mime::Type::get_description", XS_Gnome2__VFS__Mime__Type_get_description, file);
        newXS("Gnome2::VFS::Mime::Type::set_description", XS_Gnome2__VFS__Mime__Type_set_description, file);
        newXS("Gnome2::VFS::Mime::Type::can_be_executable", XS_Gnome2__VFS__Mime__Type_can_be_executable, file);
        newXS("Gnome2::VFS::Mime::Type::set_can_be_executable", XS_Gnome2__VFS__Mime__Type_set_can_be_executable, file);
        newXS("Gnome2::VFS::Mime::Type::set_short_list_applications", XS_Gnome2__VFS__Mime__Type_set_short_list_applications, file);
        newXS("Gnome2::VFS::Mime::Type::add_application_to_short_list", XS_Gnome2__VFS__Mime__Type_add_application_to_short_list, file);
        newXS("Gnome2::VFS::Mime::Type::remove_application_from_short_list", XS_Gnome2__VFS__Mime__Type_remove_application_from_short_list, file);
        newXS("Gnome2::VFS::Mime::Type::add_extension", XS_Gnome2__VFS__Mime__Type_add_extension, file);
        newXS("Gnome2::VFS::Mime::Type::remove_extension", XS_Gnome2__VFS__Mime__Type_remove_extension, file);
        newXS("Gnome2::VFS::Mime::Type::extend_all_applications", XS_Gnome2__VFS__Mime__Type_extend_all_applications, file);
        newXS("Gnome2::VFS::Mime::Type::remove_from_all_applications", XS_Gnome2__VFS__Mime__Type_remove_from_all_applications, file);
#if XSubPPtmpAAAC
        newXS("Gnome2::VFS::Mime::Type::get_all_desktop_entries", XS_Gnome2__VFS__Mime__Type_get_all_desktop_entries, file);
        newXS("Gnome2::VFS::Mime::Type::get_default_desktop_entry", XS_Gnome2__VFS__Mime__Type_get_default_desktop_entry, file);
        newXS("Gnome2::VFS::Mime::Type::get_equivalence", XS_Gnome2__VFS__Mime__Type_get_equivalence, file);
        newXS("Gnome2::VFS::Mime::Type::is_equal", XS_Gnome2__VFS__Mime__Type_is_equal, file);
#endif
        newXS("Gnome2::VFS::Mime::Application::DESTROY", XS_Gnome2__VFS__Mime__Application_DESTROY, file);
        newXS("Gnome2::VFS::Mime::Application::new_from_id", XS_Gnome2__VFS__Mime__Application_new_from_id, file);
#if XSubPPtmpAAAD
        newXS("Gnome2::VFS::Mime::Application::new_from_desktop_id", XS_Gnome2__VFS__Mime__Application_new_from_desktop_id, file);
#endif
#if XSubPPtmpAAAE
        newXS("Gnome2::VFS::Mime::Application::launch", XS_Gnome2__VFS__Mime__Application_launch, file);
        newXS("Gnome2::VFS::Mime::Application::launch_with_env", XS_Gnome2__VFS__Mime__Application_launch_with_env, file);
#endif
#if XSubPPtmpAAAF
        newXS("Gnome2::VFS::Mime::Application::get_desktop_id", XS_Gnome2__VFS__Mime__Application_get_desktop_id, file);
        newXS("Gnome2::VFS::Mime::Application::get_desktop_file_path", XS_Gnome2__VFS__Mime__Application_get_desktop_file_path, file);
        newXS("Gnome2::VFS::Mime::Application::get_name", XS_Gnome2__VFS__Mime__Application_get_name, file);
        newXS("Gnome2::VFS::Mime::Application::get_generic_name", XS_Gnome2__VFS__Mime__Application_get_generic_name, file);
        newXS("Gnome2::VFS::Mime::Application::get_icon", XS_Gnome2__VFS__Mime__Application_get_icon, file);
        newXS("Gnome2::VFS::Mime::Application::get_exec", XS_Gnome2__VFS__Mime__Application_get_exec, file);
        newXS("Gnome2::VFS::Mime::Application::get_binary_name", XS_Gnome2__VFS__Mime__Application_get_binary_name, file);
        newXS("Gnome2::VFS::Mime::Application::supports_uris", XS_Gnome2__VFS__Mime__Application_supports_uris, file);
        newXS("Gnome2::VFS::Mime::Application::requires_terminal", XS_Gnome2__VFS__Mime__Application_requires_terminal, file);
        newXS("Gnome2::VFS::Mime::Application::supports_startup_notification", XS_Gnome2__VFS__Mime__Application_supports_startup_notification, file);
        newXS("Gnome2::VFS::Mime::Application::get_startup_wm_class", XS_Gnome2__VFS__Mime__Application_get_startup_wm_class, file);
#endif
        newXS("Gnome2::VFS::Mime::Monitor::get", XS_Gnome2__VFS__Mime__Monitor_get, file);
        newXS("Gnome2::VFS::get_mime_type", XS_Gnome2__VFS_get_mime_type, file);
        newXS("Gnome2::VFS::get_mime_type_for_data", XS_Gnome2__VFS_get_mime_type_for_data, file);
#if XSubPPtmpAAAG
        newXS("Gnome2::VFS::get_slow_mime_type", XS_Gnome2__VFS_get_slow_mime_type, file);
        newXS("Gnome2::VFS::get_mime_type_for_name", XS_Gnome2__VFS_get_mime_type_for_name, file);
        newXS("Gnome2::VFS::get_mime_type_for_name_and_data", XS_Gnome2__VFS_get_mime_type_for_name_and_data, file);
#endif

    /* Initialisation Section */

#if XSubPPtmpAAAA
#endif
#if XSubPPtmpAAAB
#endif
#if XSubPPtmpAAAC
#endif
#if XSubPPtmpAAAD
#endif
#if XSubPPtmpAAAE
#endif
#if XSubPPtmpAAAF
#endif
#if XSubPPtmpAAAG
#endif
#line 1494 "xs/GnomeVFSMime.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;
}

