/* Generated by GOB (v2.0.15)   (do not edit directly) */

/* End world hunger, donate to the World Food Programme, http://www.wfp.org */

#define GOB_VERSION_MAJOR 2
#define GOB_VERSION_MINOR 0
#define GOB_VERSION_PATCHLEVEL 15

#define selfp (self->_priv)

#include <string.h> /* memset() */

#include "giobridge-mount-operation.h"

#ifdef G_LIKELY
#define ___GOB_LIKELY(expr) G_LIKELY(expr)
#define ___GOB_UNLIKELY(expr) G_UNLIKELY(expr)
#else /* ! G_LIKELY */
#define ___GOB_LIKELY(expr) (expr)
#define ___GOB_UNLIKELY(expr) (expr)
#endif /* G_LIKELY */
/* self casting macros */
#define SELF(x) GIOBRIDGE_MOUNT_OPERATION(x)
#define SELF_CONST(x) GIOBRIDGE_MOUNT_OPERATION_CONST(x)
#define IS_SELF(x) GIOBRIDGE_IS_MOUNT_OPERATION(x)
#define TYPE_SELF GIOBRIDGE_TYPE_MOUNT_OPERATION
#define SELF_CLASS(x) GIOBRIDGE_MOUNT_OPERATION_CLASS(x)

#define SELF_GET_CLASS(x) GIOBRIDGE_MOUNT_OPERATION_GET_CLASS(x)

/* self typedefs */
typedef GIOBridgeMountOperation Self;
typedef GIOBridgeMountOperationClass SelfClass;

/* here are local prototypes */
static void giobridge_mount_operation_init (GIOBridgeMountOperation * o) G_GNUC_UNUSED;
static void giobridge_mount_operation_class_init (GIOBridgeMountOperationClass * c) G_GNUC_UNUSED;

/* pointer to the class of our parent */
static GMountOperationClass *parent_class = NULL;

/* Short form macros */
#define self_new giobridge_mount_operation_new
#define self_run giobridge_mount_operation_run
GType
giobridge_mount_operation_get_type (void)
{
	static GType type = 0;

	if ___GOB_UNLIKELY(type == 0) {
		static const GTypeInfo info = {
			sizeof (GIOBridgeMountOperationClass),
			(GBaseInitFunc) NULL,
			(GBaseFinalizeFunc) NULL,
			(GClassInitFunc) giobridge_mount_operation_class_init,
			(GClassFinalizeFunc) NULL,
			NULL /* class_data */,
			sizeof (GIOBridgeMountOperation),
			0 /* n_preallocs */,
			(GInstanceInitFunc) giobridge_mount_operation_init,
			NULL
		};

		type = g_type_register_static (G_TYPE_MOUNT_OPERATION, "GIOBridgeMountOperation", &info, (GTypeFlags)0);
	}

	return type;
}

/* a macro for creating a new object of our type */
#define GET_NEW ((GIOBridgeMountOperation *)g_object_new(giobridge_mount_operation_get_type(), NULL))

/* a function for creating a new object of our type */
#include <stdarg.h>
static GIOBridgeMountOperation * GET_NEW_VARG (const char *first, ...) G_GNUC_UNUSED;
static GIOBridgeMountOperation *
GET_NEW_VARG (const char *first, ...)
{
	GIOBridgeMountOperation *ret;
	va_list ap;
	va_start (ap, first);
	ret = (GIOBridgeMountOperation *)g_object_new_valist (giobridge_mount_operation_get_type (), first, ap);
	va_end (ap);
	return ret;
}


static void
___dispose (GObject *obj_self)
{
#define __GOB_FUNCTION__ "GIOBridge:Mount:Operation::dispose"
	GIOBridgeMountOperation *self G_GNUC_UNUSED = GIOBRIDGE_MOUNT_OPERATION (obj_self);
	if (G_OBJECT_CLASS (parent_class)->dispose) \
		(* G_OBJECT_CLASS (parent_class)->dispose) (obj_self);
#define mainLoop (self->mainLoop)
#define VAR mainLoop
	{
#line 43 "giobridge-mount-operation.gob"
	
        g_main_loop_unref(mainLoop);
    }
#line 103 "giobridge-mount-operation.cc"
	memset(&mainLoop, 0, sizeof(mainLoop));
#undef VAR
#undef mainLoop
}
#undef __GOB_FUNCTION__


static void
___finalize(GObject *obj_self)
{
#define __GOB_FUNCTION__ "GIOBridge:Mount:Operation::finalize"
	GIOBridgeMountOperation *self G_GNUC_UNUSED = GIOBRIDGE_MOUNT_OPERATION (obj_self);
	if(G_OBJECT_CLASS(parent_class)->finalize) \
		(* G_OBJECT_CLASS(parent_class)->finalize)(obj_self);
#define url (self->url)
#define VAR url
	{
#line 37 "giobridge-mount-operation.gob"
	
        delete url;
    }
#line 125 "giobridge-mount-operation.cc"
	memset(&url, 0, sizeof(url));
#undef VAR
#undef url
}
#undef __GOB_FUNCTION__

static void 
giobridge_mount_operation_init (GIOBridgeMountOperation * o)
{
#define __GOB_FUNCTION__ "GIOBridge:Mount:Operation::init"
#line 27 "giobridge-mount-operation.gob"
	o->url = NULL;
#line 138 "giobridge-mount-operation.cc"
#line 37 "giobridge-mount-operation.gob"
	o->gioBridge = NULL;
#line 141 "giobridge-mount-operation.cc"
#line 42 "giobridge-mount-operation.gob"
	o->mainLoop = g_main_loop_new (NULL, FALSE);
#line 144 "giobridge-mount-operation.cc"
#line 43 "giobridge-mount-operation.gob"
	o->mountErr = NULL;
#line 147 "giobridge-mount-operation.cc"
}
#undef __GOB_FUNCTION__
static void 
giobridge_mount_operation_class_init (GIOBridgeMountOperationClass * c)
{
#define __GOB_FUNCTION__ "GIOBridge:Mount:Operation::class_init"
	GObjectClass *g_object_class G_GNUC_UNUSED = (GObjectClass*) c;

	parent_class = (GMountOperationClass *)g_type_class_ref (G_TYPE_MOUNT_OPERATION);

	g_object_class->dispose = ___dispose;
	g_object_class->finalize = ___finalize;
}
#undef __GOB_FUNCTION__



#line 49 "giobridge-mount-operation.gob"
GIOBridgeMountOperation * 
giobridge_mount_operation_new (GioBridge * _gioBridge, KUrl * _url, GError ** _mountErr)
#line 168 "giobridge-mount-operation.cc"
{
#define __GOB_FUNCTION__ "GIOBridge:Mount:Operation::new"
{
#line 50 "giobridge-mount-operation.gob"
	
        GIOBridgeMountOperation * newOp = GET_NEW;
        newOp->gioBridge = _gioBridge;
        newOp->url = _url;
        newOp->mountErr = _mountErr;
        return newOp;
    }}
#line 180 "giobridge-mount-operation.cc"
#undef __GOB_FUNCTION__

#line 58 "giobridge-mount-operation.gob"
void 
giobridge_mount_operation_run (GIOBridgeMountOperation * self)
#line 186 "giobridge-mount-operation.cc"
{
#define __GOB_FUNCTION__ "GIOBridge:Mount:Operation::run"
#line 58 "giobridge-mount-operation.gob"
	g_return_if_fail (self != NULL);
#line 58 "giobridge-mount-operation.gob"
	g_return_if_fail (GIOBRIDGE_IS_MOUNT_OPERATION (self));
#line 193 "giobridge-mount-operation.cc"
{
#line 59 "giobridge-mount-operation.gob"
	
        g_main_loop_run (self->mainLoop);
    }}
#line 199 "giobridge-mount-operation.cc"
#undef __GOB_FUNCTION__
