/* ovirt-broker.c generated by valac 0.32.0.6-ea53, the Vala compiler
 * generated from ovirt-broker.vala, do not modify */

/* This file is part of GNOME Boxes. License: LGPLv2+*/

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <libcommon.h>
#include <stdlib.h>
#include <string.h>
#include <govirt/govirt.h>
#include <gtk/gtk.h>
#include <libxml/uri.h>
#include <rest/rest-proxy.h>
#include <rest/oauth-proxy-call.h>
#include <rest/oauth-proxy.h>
#include <rest/oauth2-proxy-call.h>
#include <rest/oauth2-proxy.h>
#include <rest/rest-enum-types.h>
#include <rest/rest-param.h>
#include <rest/rest-params.h>
#include <rest/rest-proxy-auth.h>
#include <rest/rest-proxy-call.h>
#include <rest/rest-xml-node.h>
#include <rest/rest-xml-parser.h>
#include <libgd/gd.h>
#include <glib/gi18n-lib.h>


#define BOXES_TYPE_BROKER (boxes_broker_get_type ())
#define BOXES_BROKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_BROKER, BoxesBroker))
#define BOXES_BROKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_BROKER, BoxesBrokerClass))
#define BOXES_IS_BROKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_BROKER))
#define BOXES_IS_BROKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_BROKER))
#define BOXES_BROKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_BROKER, BoxesBrokerClass))

typedef struct _BoxesBroker BoxesBroker;
typedef struct _BoxesBrokerClass BoxesBrokerClass;
typedef struct _BoxesBrokerPrivate BoxesBrokerPrivate;

#define BOXES_TYPE_OVIRT_BROKER (boxes_ovirt_broker_get_type ())
#define BOXES_OVIRT_BROKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_OVIRT_BROKER, BoxesOvirtBroker))
#define BOXES_OVIRT_BROKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_OVIRT_BROKER, BoxesOvirtBrokerClass))
#define BOXES_IS_OVIRT_BROKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_OVIRT_BROKER))
#define BOXES_IS_OVIRT_BROKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_OVIRT_BROKER))
#define BOXES_OVIRT_BROKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_OVIRT_BROKER, BoxesOvirtBrokerClass))

typedef struct _BoxesOvirtBroker BoxesOvirtBroker;
typedef struct _BoxesOvirtBrokerClass BoxesOvirtBrokerClass;
typedef struct _BoxesOvirtBrokerPrivate BoxesOvirtBrokerPrivate;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define BOXES_TYPE_COLLECTION_ITEM (boxes_collection_item_get_type ())
#define BOXES_COLLECTION_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItem))
#define BOXES_COLLECTION_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItemClass))
#define BOXES_IS_COLLECTION_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_ITEM))
#define BOXES_IS_COLLECTION_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_ITEM))
#define BOXES_COLLECTION_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItemClass))

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;

#define BOXES_TYPE_MACHINE (boxes_machine_get_type ())
#define BOXES_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MACHINE, BoxesMachine))
#define BOXES_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MACHINE, BoxesMachineClass))
#define BOXES_IS_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MACHINE))
#define BOXES_IS_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MACHINE))
#define BOXES_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MACHINE, BoxesMachineClass))

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;

#define BOXES_TYPE_OVIRT_MACHINE (boxes_ovirt_machine_get_type ())
#define BOXES_OVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachine))
#define BOXES_OVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachineClass))
#define BOXES_IS_OVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_OVIRT_MACHINE))
#define BOXES_IS_OVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_OVIRT_MACHINE))
#define BOXES_OVIRT_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachineClass))

typedef struct _BoxesOvirtMachine BoxesOvirtMachine;
typedef struct _BoxesOvirtMachineClass BoxesOvirtMachineClass;

#define BOXES_TYPE_APP (boxes_app_get_type ())
#define BOXES_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP, BoxesApp))
#define BOXES_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP, BoxesAppClass))
#define BOXES_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP))
#define BOXES_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP))
#define BOXES_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP, BoxesAppClass))

typedef struct _BoxesApp BoxesApp;
typedef struct _BoxesAppClass BoxesAppClass;
typedef struct _BoxesAppPrivate BoxesAppPrivate;

#define BOXES_TYPE_COLLECTION (boxes_collection_get_type ())
#define BOXES_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION, BoxesCollection))
#define BOXES_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION, BoxesCollectionClass))
#define BOXES_IS_COLLECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION))
#define BOXES_IS_COLLECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION))
#define BOXES_COLLECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION, BoxesCollectionClass))

typedef struct _BoxesCollection BoxesCollection;
typedef struct _BoxesCollectionClass BoxesCollectionClass;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block106Data Block106Data;

#define BOXES_TYPE_APP_WINDOW (boxes_app_window_get_type ())
#define BOXES_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP_WINDOW, BoxesAppWindow))
#define BOXES_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP_WINDOW, BoxesAppWindowClass))
#define BOXES_IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP_WINDOW))
#define BOXES_IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP_WINDOW))
#define BOXES_APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP_WINDOW, BoxesAppWindowClass))

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;

#define BOXES_TYPE_NOTIFICATIONBAR (boxes_notificationbar_get_type ())
#define BOXES_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbar))
#define BOXES_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))
#define BOXES_IS_NOTIFICATIONBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_IS_NOTIFICATIONBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_NOTIFICATIONBAR))
#define BOXES_NOTIFICATIONBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_NOTIFICATIONBAR, BoxesNotificationbarClass))

typedef struct _BoxesNotificationbar BoxesNotificationbar;
typedef struct _BoxesNotificationbarClass BoxesNotificationbarClass;
#define _g_byte_array_unref0(var) ((var == NULL) ? NULL : (var = (g_byte_array_unref (var), NULL)))
#define _xmlFreeURI0(var) ((var == NULL) ? NULL : (var = (xmlFreeURI (var), NULL)))
typedef struct _BoxesOvirtBrokerAddSourceData BoxesOvirtBrokerAddSourceData;

struct _BoxesBroker {
	GObject parent_instance;
	BoxesBrokerPrivate * priv;
};

struct _BoxesBrokerClass {
	GObjectClass parent_class;
	void (*add_source) (BoxesBroker* self, BoxesCollectionSource* source, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*add_source_finish) (BoxesBroker* self, GAsyncResult* _res_, GError** error);
};

struct _BoxesOvirtBroker {
	BoxesBroker parent_instance;
	BoxesOvirtBrokerPrivate * priv;
};

struct _BoxesOvirtBrokerClass {
	BoxesBrokerClass parent_class;
};

struct _BoxesOvirtBrokerPrivate {
	GHashTable* proxies;
};

struct _BoxesApp {
	GtkApplication parent_instance;
	BoxesAppPrivate * priv;
	BoxesCollection* collection;
	BoxesAsyncLauncher* async_launcher;
};

struct _BoxesAppClass {
	GtkApplicationClass parent_class;
};

struct _Block106Data {
	int _ref_count_;
	BoxesOvirtBroker* self;
	RestProxy* proxy;
	RestProxyAuth* auth;
};

typedef void (*BoxesAuthNotificationAuthFunc) (const gchar* username, const gchar* password, void* user_data);
typedef void (*BoxesNotificationDismissFunc) (void* user_data);
struct _BoxesOvirtBrokerAddSourceData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesOvirtBroker* self;
	BoxesCollectionSource* source;
	GHashTable* _tmp0_;
	BoxesCollectionSource* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gconstpointer _tmp5_;
	gboolean _tmp6_;
	xmlURI* uri;
	BoxesCollectionSource* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	xmlURI* _tmp11_;
	xmlURI* _tmp12_;
	xmlURI* _tmp13_;
	const gchar* _tmp14_;
	xmlURI* _tmp15_;
	gchar* _tmp16_;
	xmlURI* _tmp17_;
	const gchar* _tmp18_;
	xmlURI* _tmp19_;
	gchar* _tmp20_;
	xmlURI* _tmp21_;
	xmlURI* _tmp22_;
	const gchar* _tmp23_;
	gchar* _tmp24_;
	OvirtProxy* proxy;
	xmlURI* _tmp25_;
	gchar* _tmp26_;
	gchar* _tmp27_;
	OvirtProxy* _tmp28_;
	OvirtProxy* _tmp29_;
	OvirtProxy* _tmp30_;
	OvirtProxy* _tmp31_;
	GByteArray* _tmp32_;
	GByteArray* _tmp33_;
	OvirtProxy* _tmp34_;
	GError* _error_;
	GError* _tmp35_;
	const gchar* _tmp36_;
	BoxesApp* _tmp37_;
	BoxesAppWindow* _tmp38_;
	BoxesAppWindow* _tmp39_;
	BoxesNotificationbar* _tmp40_;
	BoxesNotificationbar* _tmp41_;
	const gchar* _tmp42_;
	GdNotification* _tmp43_;
	GdNotification* _tmp44_;
	GHashTable* _tmp45_;
	BoxesCollectionSource* _tmp46_;
	gchar* _tmp47_;
	gchar* _tmp48_;
	OvirtProxy* _tmp49_;
	OvirtProxy* _tmp50_;
	OvirtProxy* _tmp51_;
	GList* _tmp52_;
	GList* vm_collection;
	GList* vm_it;
	OvirtVm* _tmp53_;
	OvirtVm* vm;
	BoxesCollectionSource* _tmp54_;
	OvirtProxy* _tmp55_;
	OvirtVm* _tmp56_;
	BoxesCollectionSource* _tmp57_;
	GError * _inner_error_;
};


static gpointer boxes_ovirt_broker_parent_class = NULL;
static BoxesOvirtBroker* boxes_ovirt_broker_broker;
static BoxesOvirtBroker* boxes_ovirt_broker_broker = NULL;
extern BoxesApp* boxes_app_app;

GType boxes_broker_get_type (void) G_GNUC_CONST;
GType boxes_ovirt_broker_get_type (void) G_GNUC_CONST;
#define BOXES_OVIRT_BROKER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_OVIRT_BROKER, BoxesOvirtBrokerPrivate))
enum  {
	BOXES_OVIRT_BROKER_DUMMY_PROPERTY
};
BoxesOvirtBroker* boxes_ovirt_broker_get_default (void);
static BoxesOvirtBroker* boxes_ovirt_broker_new (void);
static BoxesOvirtBroker* boxes_ovirt_broker_construct (GType object_type);
BoxesBroker* boxes_broker_construct (GType object_type);
static void _g_free0_ (gpointer var);
static void _g_object_unref0_ (gpointer var);
static void boxes_ovirt_broker_add_vm (BoxesOvirtBroker* self, BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm);
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
GType boxes_ovirt_machine_get_type (void) G_GNUC_CONST;
BoxesOvirtMachine* boxes_ovirt_machine_new (BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm, GError** error);
BoxesOvirtMachine* boxes_ovirt_machine_construct (GType object_type, BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm, GError** error);
GType boxes_app_get_type (void) G_GNUC_CONST;
GType boxes_collection_get_type (void) G_GNUC_CONST;
void boxes_collection_add_item (BoxesCollection* self, BoxesCollectionItem* item);
static void boxes_ovirt_broker_real_add_source_data_free (gpointer _data);
static void boxes_ovirt_broker_real_add_source (BoxesBroker* base, BoxesCollectionSource* source, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_ovirt_broker_real_add_source_co (BoxesOvirtBrokerAddSourceData* _data_);
static gboolean __lambda239_ (BoxesOvirtBroker* self, RestProxy* proxy, RestProxyAuth* auth, gboolean retrying);
static Block106Data* block106_data_ref (Block106Data* _data106_);
static void block106_data_unref (void * _userdata_);
static void __lambda240_ (Block106Data* _data106_, const gchar* username, const gchar* password);
static void ___lambda240__boxes_auth_notification_auth_func (const gchar* username, const gchar* password, gpointer self);
static void __lambda241_ (Block106Data* _data106_);
static void ___lambda241__boxes_notification_dismiss_func (gpointer self);
GType boxes_app_window_get_type (void) G_GNUC_CONST;
BoxesAppWindow* boxes_app_get_main_window (BoxesApp* self);
GType boxes_notificationbar_get_type (void) G_GNUC_CONST;
BoxesNotificationbar* boxes_app_window_get_notificationbar (BoxesAppWindow* self);
GdNotification* boxes_notificationbar_display_for_optional_auth (BoxesNotificationbar* self, const gchar* broker_name, BoxesAuthNotificationAuthFunc auth_func, void* auth_func_target, GDestroyNotify auth_func_target_destroy_notify, BoxesNotificationDismissFunc dismiss_func, void* dismiss_func_target, GDestroyNotify dismiss_func_target_destroy_notify);
static gboolean ___lambda239__rest_proxy_authenticate (RestProxy* _sender, RestProxyAuth* auth, gboolean retrying, gpointer self);
static void boxes_ovirt_broker_add_source_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
GdNotification* boxes_notificationbar_display_error (BoxesNotificationbar* self, const gchar* message, gint timeout);
#define BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT 6
void boxes_broker_add_source (BoxesBroker* self, BoxesCollectionSource* source, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_broker_add_source_finish (BoxesBroker* self, GAsyncResult* _res_, GError** error);
static void boxes_ovirt_broker_finalize (GObject* obj);


static gpointer _g_object_ref0 (gpointer self) {
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	return self ? g_object_ref (self) : NULL;
#line 305 "ovirt-broker.c"
}


BoxesOvirtBroker* boxes_ovirt_broker_get_default (void) {
	BoxesOvirtBroker* result = NULL;
	BoxesOvirtBroker* _tmp0_ = NULL;
	BoxesOvirtBroker* _tmp2_ = NULL;
	BoxesOvirtBroker* _tmp3_ = NULL;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp0_ = boxes_ovirt_broker_broker;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	if (_tmp0_ == NULL) {
#line 318 "ovirt-broker.c"
		BoxesOvirtBroker* _tmp1_ = NULL;
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp1_ = boxes_ovirt_broker_new ();
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_object_unref0 (boxes_ovirt_broker_broker);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		boxes_ovirt_broker_broker = _tmp1_;
#line 326 "ovirt-broker.c"
	}
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp2_ = boxes_ovirt_broker_broker;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	result = _tmp3_;
#line 12 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	return result;
#line 336 "ovirt-broker.c"
}


static void _g_free0_ (gpointer var) {
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	var = (g_free (var), NULL);
#line 343 "ovirt-broker.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 350 "ovirt-broker.c"
}


static BoxesOvirtBroker* boxes_ovirt_broker_construct (GType object_type) {
	BoxesOvirtBroker * self = NULL;
	GHashFunc _tmp0_ = NULL;
	GEqualFunc _tmp1_ = NULL;
	GHashTable* _tmp2_ = NULL;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	self = (BoxesOvirtBroker*) boxes_broker_construct (object_type);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp0_ = g_str_hash;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp1_ = g_str_equal;
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_object_unref0_);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_hash_table_unref0 (self->priv->proxies);
#line 16 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	self->priv->proxies = _tmp2_;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	return self;
#line 373 "ovirt-broker.c"
}


static BoxesOvirtBroker* boxes_ovirt_broker_new (void) {
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	return boxes_ovirt_broker_construct (BOXES_TYPE_OVIRT_BROKER);
#line 380 "ovirt-broker.c"
}


static void boxes_ovirt_broker_add_vm (BoxesOvirtBroker* self, BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm) {
	GError * _inner_error_ = NULL;
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_return_if_fail (self != NULL);
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_return_if_fail (source != NULL);
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_return_if_fail (proxy != NULL);
#line 19 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_return_if_fail (vm != NULL);
#line 394 "ovirt-broker.c"
	{
		BoxesOvirtMachine* machine = NULL;
		BoxesCollectionSource* _tmp0_ = NULL;
		OvirtProxy* _tmp1_ = NULL;
		OvirtVm* _tmp2_ = NULL;
		BoxesOvirtMachine* _tmp3_ = NULL;
		BoxesApp* _tmp4_ = NULL;
		BoxesCollection* _tmp5_ = NULL;
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp0_ = source;
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp1_ = proxy;
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp2_ = vm;
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp3_ = boxes_ovirt_machine_new (_tmp0_, _tmp1_, _tmp2_, &_inner_error_);
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		machine = _tmp3_;
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 415 "ovirt-broker.c"
			goto __catch151_g_error;
		}
#line 22 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp4_ = boxes_app_app;
#line 22 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp5_ = _tmp4_->collection;
#line 22 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		boxes_collection_add_item (_tmp5_, (BoxesCollectionItem*) machine);
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_object_unref0 (machine);
#line 426 "ovirt-broker.c"
	}
	goto __finally151;
	__catch151_g_error:
	{
		GError* _error_ = NULL;
		BoxesCollectionSource* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		GError* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_error_ = _inner_error_;
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_inner_error_ = NULL;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp6_ = source;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp7_ = boxes_collection_source_get_name (_tmp6_);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp8_ = _tmp7_;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp9_ = _tmp8_;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp10_ = _error_;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_tmp11_ = _tmp10_->message;
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_warning ("ovirt-broker.vala:24: Failed to create source '%s': %s", _tmp9_, _tmp11_);
#line 24 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_free0 (_tmp9_);
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_error_free0 (_error_);
#line 460 "ovirt-broker.c"
	}
	__finally151:
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_clear_error (&_inner_error_);
#line 20 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		return;
#line 471 "ovirt-broker.c"
	}
}


static void boxes_ovirt_broker_real_add_source_data_free (gpointer _data) {
	BoxesOvirtBrokerAddSourceData* _data_;
	_data_ = _data;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_object_unref0 (_data_->source);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_slice_free (BoxesOvirtBrokerAddSourceData, _data_);
#line 485 "ovirt-broker.c"
}


static void boxes_ovirt_broker_real_add_source (BoxesBroker* base, BoxesCollectionSource* source, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesOvirtBroker * self;
	BoxesOvirtBrokerAddSourceData* _data_;
	BoxesOvirtBroker* _tmp0_ = NULL;
	BoxesCollectionSource* _tmp1_ = NULL;
	BoxesCollectionSource* _tmp2_ = NULL;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	self = (BoxesOvirtBroker*) base;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_ = g_slice_new0 (BoxesOvirtBrokerAddSourceData);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_ovirt_broker_real_add_source);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_ovirt_broker_real_add_source_data_free);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->self = _tmp0_;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp1_ = source;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_object_unref0 (_data_->source);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->source = _tmp2_;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	boxes_ovirt_broker_real_add_source_co (_data_);
#line 517 "ovirt-broker.c"
}


static void boxes_ovirt_broker_real_add_source_finish (BoxesBroker* base, GAsyncResult* _res_, GError** error) {
	BoxesOvirtBrokerAddSourceData* _data_;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		return;
#line 527 "ovirt-broker.c"
	}
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 531 "ovirt-broker.c"
}


static Block106Data* block106_data_ref (Block106Data* _data106_) {
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_atomic_int_inc (&_data106_->_ref_count_);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	return _data106_;
#line 540 "ovirt-broker.c"
}


static void block106_data_unref (void * _userdata_) {
	Block106Data* _data106_;
	_data106_ = (Block106Data*) _userdata_;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	if (g_atomic_int_dec_and_test (&_data106_->_ref_count_)) {
#line 549 "ovirt-broker.c"
		BoxesOvirtBroker* self;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		self = _data106_->self;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_object_unref0 (_data106_->proxy);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_object_unref0 (_data106_->auth);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_object_unref0 (self);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_slice_free (Block106Data, _data106_);
#line 561 "ovirt-broker.c"
	}
}


static void __lambda240_ (Block106Data* _data106_, const gchar* username, const gchar* password) {
	BoxesOvirtBroker* self;
	RestProxy* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	RestProxy* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	RestProxyAuth* _tmp4_ = NULL;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	self = _data106_->self;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_return_if_fail (username != NULL);
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_return_if_fail (password != NULL);
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp0_ = _data106_->proxy;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp1_ = username;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_object_set (_tmp0_, "username", _tmp1_, NULL);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp2_ = _data106_->proxy;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp3_ = password;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_object_set (_tmp2_, "password", _tmp3_, NULL);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp4_ = _data106_->auth;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	rest_proxy_auth_unpause (_tmp4_);
#line 595 "ovirt-broker.c"
}


static void ___lambda240__boxes_auth_notification_auth_func (const gchar* username, const gchar* password, gpointer self) {
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	__lambda240_ (self, username, password);
#line 602 "ovirt-broker.c"
}


static void __lambda241_ (Block106Data* _data106_) {
	BoxesOvirtBroker* self;
	RestProxyAuth* _tmp0_ = NULL;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	self = _data106_->self;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp0_ = _data106_->auth;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	rest_proxy_auth_unpause (_tmp0_);
#line 615 "ovirt-broker.c"
}


static void ___lambda241__boxes_notification_dismiss_func (gpointer self) {
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	__lambda241_ (self);
#line 622 "ovirt-broker.c"
}


static gboolean __lambda239_ (BoxesOvirtBroker* self, RestProxy* proxy, RestProxyAuth* auth, gboolean retrying) {
	gboolean result = FALSE;
	Block106Data* _data106_;
	RestProxy* _tmp0_ = NULL;
	RestProxy* _tmp1_ = NULL;
	RestProxyAuth* _tmp2_ = NULL;
	RestProxyAuth* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
	BoxesAuthNotificationAuthFunc auth_cb = NULL;
	void* auth_cb_target = NULL;
	GDestroyNotify auth_cb_target_destroy_notify = NULL;
	BoxesNotificationDismissFunc cancel_cb = NULL;
	void* cancel_cb_target = NULL;
	GDestroyNotify cancel_cb_target_destroy_notify = NULL;
	BoxesApp* _tmp5_ = NULL;
	BoxesAppWindow* _tmp6_ = NULL;
	BoxesAppWindow* _tmp7_ = NULL;
	BoxesNotificationbar* _tmp8_ = NULL;
	BoxesNotificationbar* _tmp9_ = NULL;
	BoxesAuthNotificationAuthFunc _tmp10_ = NULL;
	void* _tmp10__target = NULL;
	GDestroyNotify _tmp10__target_destroy_notify = NULL;
	BoxesNotificationDismissFunc _tmp11_ = NULL;
	void* _tmp11__target = NULL;
	GDestroyNotify _tmp11__target_destroy_notify = NULL;
	GdNotification* _tmp12_ = NULL;
	GdNotification* _tmp13_ = NULL;
	RestProxyAuth* _tmp14_ = NULL;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_return_val_if_fail (proxy != NULL, FALSE);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_return_val_if_fail (auth != NULL, FALSE);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data106_ = g_slice_new0 (Block106Data);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data106_->_ref_count_ = 1;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data106_->self = g_object_ref (self);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp0_ = proxy;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_object_unref0 (_data106_->proxy);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data106_->proxy = _tmp1_;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp2_ = auth;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_object_unref0 (_data106_->auth);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data106_->auth = _tmp3_;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp4_ = retrying;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	if (_tmp4_) {
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		result = FALSE;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		block106_data_unref (_data106_);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data106_ = NULL;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		return result;
#line 692 "ovirt-broker.c"
	}
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	auth_cb = ___lambda240__boxes_auth_notification_auth_func;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	auth_cb_target = block106_data_ref (_data106_);
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	auth_cb_target_destroy_notify = block106_data_unref;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	cancel_cb = ___lambda241__boxes_notification_dismiss_func;
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	cancel_cb_target = block106_data_ref (_data106_);
#line 53 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	cancel_cb_target_destroy_notify = block106_data_unref;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp5_ = boxes_app_app;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp6_ = boxes_app_get_main_window (_tmp5_);
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp7_ = _tmp6_;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp8_ = boxes_app_window_get_notificationbar (_tmp7_);
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp9_ = _tmp8_;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp10_ = auth_cb;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp10__target = auth_cb_target;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp10__target_destroy_notify = auth_cb_target_destroy_notify;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	auth_cb_target_destroy_notify = NULL;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp11_ = cancel_cb;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp11__target = cancel_cb_target;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp11__target_destroy_notify = cancel_cb_target_destroy_notify;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	cancel_cb_target_destroy_notify = NULL;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp12_ = boxes_notificationbar_display_for_optional_auth (_tmp9_, "oVirt broker", _tmp10_, _tmp10__target, _tmp10__target_destroy_notify, _tmp11_, _tmp11__target, _tmp11__target_destroy_notify);
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp13_ = _tmp12_;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_object_unref0 (_tmp13_);
#line 59 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_tmp14_ = _data106_->auth;
#line 59 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	rest_proxy_auth_pause (_tmp14_);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	result = FALSE;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	(cancel_cb_target_destroy_notify == NULL) ? NULL : (cancel_cb_target_destroy_notify (cancel_cb_target), NULL);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	cancel_cb = NULL;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	cancel_cb_target = NULL;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	cancel_cb_target_destroy_notify = NULL;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	(auth_cb_target_destroy_notify == NULL) ? NULL : (auth_cb_target_destroy_notify (auth_cb_target), NULL);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	auth_cb = NULL;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	auth_cb_target = NULL;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	auth_cb_target_destroy_notify = NULL;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	block106_data_unref (_data106_);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data106_ = NULL;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	return result;
#line 766 "ovirt-broker.c"
}


static gboolean ___lambda239__rest_proxy_authenticate (RestProxy* _sender, RestProxyAuth* auth, gboolean retrying, gpointer self) {
	gboolean result;
	result = __lambda239_ ((BoxesOvirtBroker*) self, _sender, auth, retrying);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	return result;
#line 775 "ovirt-broker.c"
}


static void boxes_ovirt_broker_add_source_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesOvirtBrokerAddSourceData* _data_;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_ = _user_data_;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_source_object_ = source_object;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_res_ = _res_;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	boxes_ovirt_broker_real_add_source_co (_data_);
#line 789 "ovirt-broker.c"
}


static gboolean boxes_ovirt_broker_real_add_source_co (BoxesOvirtBrokerAddSourceData* _data_) {
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	switch (_data_->_state_) {
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		case 0:
#line 798 "ovirt-broker.c"
		goto _state_0;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		case 1:
#line 802 "ovirt-broker.c"
		goto _state_1;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		case 2:
#line 806 "ovirt-broker.c"
		goto _state_2;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		case 3:
#line 810 "ovirt-broker.c"
		goto _state_3;
		default:
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_assert_not_reached ();
#line 815 "ovirt-broker.c"
	}
	_state_0:
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp0_ = NULL;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp0_ = _data_->self->priv->proxies;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp1_ = NULL;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp1_ = _data_->source;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp2_ = NULL;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp2_ = boxes_collection_source_get_name (_data_->_tmp1_);
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp3_ = NULL;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp4_ = NULL;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp5_ = NULL;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp5_ = g_hash_table_lookup (_data_->_tmp0_, _data_->_tmp4_);
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp6_ = FALSE;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp6_ = ((OvirtProxy*) _data_->_tmp5_) != NULL;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_free0 (_data_->_tmp4_);
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	if (_data_->_tmp6_) {
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		if (_data_->_state_ == 0) {
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 854 "ovirt-broker.c"
		} else {
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 858 "ovirt-broker.c"
		}
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_object_unref (_data_->_async_result);
#line 30 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		return FALSE;
#line 864 "ovirt-broker.c"
	}
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp7_ = NULL;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp7_ = _data_->source;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp8_ = NULL;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp8_ = boxes_collection_source_get_uri (_data_->_tmp7_);
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp9_ = NULL;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp9_ = _data_->_tmp8_;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp10_ = NULL;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp10_ = _data_->_tmp9_;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp11_ = NULL;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp11_ = xmlParseURI (_data_->_tmp10_);
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp12_ = NULL;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_free0 (_data_->_tmp10_);
#line 34 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->uri = _data_->_tmp12_;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp13_ = NULL;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp13_ = _data_->uri;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp14_ = NULL;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp14_ = _data_->_tmp13_->scheme;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_return_if_fail (g_strcmp0 (_data_->_tmp14_, "ovirt") == 0);
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp15_ = NULL;
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp15_ = _data_->uri;
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp16_ = NULL;
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp16_ = g_strdup ("https");
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_free0 (_data_->_tmp15_->scheme);
#line 36 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp15_->scheme = _data_->_tmp16_;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp17_ = NULL;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp17_ = _data_->uri;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp18_ = NULL;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp18_ = _data_->_tmp17_->path;
#line 37 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	if (_data_->_tmp18_ == NULL) {
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp19_ = NULL;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp19_ = _data_->uri;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp20_ = NULL;
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp20_ = g_strdup ("/api");
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_free0 (_data_->_tmp19_->path);
#line 38 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp19_->path = _data_->_tmp20_;
#line 938 "ovirt-broker.c"
	} else {
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp21_ = NULL;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp21_ = _data_->uri;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp22_ = NULL;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp22_ = _data_->uri;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp23_ = NULL;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp23_ = _data_->_tmp22_->path;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp24_ = NULL;
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp24_ = g_build_filename (_data_->_tmp23_, "api", NULL);
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_free0 (_data_->_tmp21_->path);
#line 40 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp21_->path = _data_->_tmp24_;
#line 960 "ovirt-broker.c"
	}
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp25_ = NULL;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp25_ = _data_->uri;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp26_ = NULL;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp26_ = (gchar*) xmlSaveUri (_data_->_tmp25_);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp27_ = NULL;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp27_ = _data_->_tmp26_;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp28_ = NULL;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp28_ = ovirt_proxy_new (_data_->_tmp27_);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp29_ = NULL;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp29_ = _data_->_tmp28_;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_free0 (_data_->_tmp27_);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->proxy = _data_->_tmp29_;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp30_ = NULL;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp30_ = _data_->proxy;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_signal_connect_object ((RestProxy*) _data_->_tmp30_, "authenticate", (GCallback) ___lambda239__rest_proxy_authenticate, _data_->self, 0);
#line 992 "ovirt-broker.c"
	{
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp31_ = NULL;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp31_ = _data_->proxy;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_state_ = 1;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		ovirt_proxy_fetch_ca_certificate_async (_data_->_tmp31_, NULL, boxes_ovirt_broker_add_source_ready, _data_);
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		return FALSE;
#line 1004 "ovirt-broker.c"
		_state_1:
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp32_ = NULL;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp32_ = ovirt_proxy_fetch_ca_certificate_finish (_data_->_tmp31_, _data_->_res_, &_data_->_inner_error_);
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp33_ = NULL;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp33_ = _data_->_tmp32_;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_byte_array_unref0 (_data_->_tmp33_);
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1018 "ovirt-broker.c"
			goto __catch152_g_error;
		}
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp34_ = NULL;
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp34_ = _data_->proxy;
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_state_ = 2;
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		ovirt_proxy_fetch_vms_async (_data_->_tmp34_, NULL, boxes_ovirt_broker_add_source_ready, _data_);
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		return FALSE;
#line 1031 "ovirt-broker.c"
		_state_2:
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		ovirt_proxy_fetch_vms_finish (_data_->_tmp34_, _data_->_res_, &_data_->_inner_error_);
#line 66 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1037 "ovirt-broker.c"
			goto __catch152_g_error;
		}
	}
	goto __finally152;
	__catch152_g_error:
	{
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_inner_error_ = NULL;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp35_ = NULL;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp35_ = _data_->_error_;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp36_ = NULL;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp36_ = _data_->_tmp35_->message;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_debug ("ovirt-broker.vala:68: Failed to connect to broker: %s", _data_->_tmp36_);
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp37_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp37_ = boxes_app_app;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp38_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp38_ = boxes_app_get_main_window (_data_->_tmp37_);
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp39_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp39_ = _data_->_tmp38_;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp40_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp40_ = boxes_app_window_get_notificationbar (_data_->_tmp39_);
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp41_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp41_ = _data_->_tmp40_;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp42_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp42_ = _ ("Connection to oVirt broker failed");
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp43_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp43_ = boxes_notificationbar_display_error (_data_->_tmp41_, _data_->_tmp42_, BOXES_NOTIFICATIONBAR_DEFAULT_TIMEOUT);
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp44_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->_tmp44_ = _data_->_tmp43_;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_object_unref0 (_data_->_tmp44_);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_error_free0 (_data_->_error_);
#line 1094 "ovirt-broker.c"
	}
	__finally152:
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_error_free (_data_->_inner_error_);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_object_unref0 (_data_->proxy);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_xmlFreeURI0 (_data_->uri);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		if (_data_->_state_ == 0) {
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1111 "ovirt-broker.c"
		} else {
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1115 "ovirt-broker.c"
		}
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_object_unref (_data_->_async_result);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		return FALSE;
#line 1121 "ovirt-broker.c"
	}
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp45_ = NULL;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp45_ = _data_->self->priv->proxies;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp46_ = NULL;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp46_ = _data_->source;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp47_ = NULL;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp47_ = boxes_collection_source_get_name (_data_->_tmp46_);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp48_ = NULL;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp48_ = _data_->_tmp47_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp49_ = NULL;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp49_ = _data_->proxy;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp50_ = NULL;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp50_ = _g_object_ref0 (_data_->_tmp49_);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_hash_table_insert (_data_->_tmp45_, _data_->_tmp48_, _data_->_tmp50_);
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp51_ = NULL;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp51_ = _data_->proxy;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp52_ = NULL;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp52_ = ovirt_proxy_get_vms (_data_->_tmp51_);
#line 1157 "ovirt-broker.c"
	{
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_data_->vm_collection = _data_->_tmp52_;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		for (_data_->vm_it = _data_->vm_collection; _data_->vm_it != NULL; _data_->vm_it = _data_->vm_it->next) {
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
			_data_->_tmp53_ = NULL;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
			_data_->_tmp53_ = _g_object_ref0 ((OvirtVm*) _data_->vm_it->data);
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
			_data_->vm = _data_->_tmp53_;
#line 1169 "ovirt-broker.c"
			{
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
				_data_->_tmp54_ = NULL;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
				_data_->_tmp54_ = _data_->source;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
				_data_->_tmp55_ = NULL;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
				_data_->_tmp55_ = _data_->proxy;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
				_data_->_tmp56_ = NULL;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
				_data_->_tmp56_ = _data_->vm;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
				boxes_ovirt_broker_add_vm (_data_->self, _data_->_tmp54_, _data_->_tmp55_, _data_->_tmp56_);
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
				_g_object_unref0 (_data_->vm);
#line 1187 "ovirt-broker.c"
			}
		}
	}
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp57_ = NULL;
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_tmp57_ = _data_->source;
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_data_->_state_ = 3;
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	BOXES_BROKER_CLASS (boxes_ovirt_broker_parent_class)->add_source (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, BOXES_TYPE_BROKER, BoxesBroker), _data_->_tmp57_, boxes_ovirt_broker_add_source_ready, _data_);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	return FALSE;
#line 1201 "ovirt-broker.c"
	_state_3:
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	BOXES_BROKER_CLASS (boxes_ovirt_broker_parent_class)->add_source_finish (G_TYPE_CHECK_INSTANCE_CAST (_data_->self, BOXES_TYPE_BROKER, BoxesBroker), _data_->_res_, &_data_->_inner_error_);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_error_free (_data_->_inner_error_);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_g_object_unref0 (_data_->proxy);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		_xmlFreeURI0 (_data_->uri);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		if (_data_->_state_ == 0) {
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1219 "ovirt-broker.c"
		} else {
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1223 "ovirt-broker.c"
		}
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_object_unref (_data_->_async_result);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		return FALSE;
#line 1229 "ovirt-broker.c"
	}
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_object_unref0 (_data_->proxy);
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_xmlFreeURI0 (_data_->uri);
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	if (_data_->_state_ == 0) {
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1239 "ovirt-broker.c"
	} else {
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1243 "ovirt-broker.c"
	}
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_object_unref (_data_->_async_result);
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	return FALSE;
#line 1249 "ovirt-broker.c"
}


static void boxes_ovirt_broker_class_init (BoxesOvirtBrokerClass * klass) {
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	boxes_ovirt_broker_parent_class = g_type_class_peek_parent (klass);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	g_type_class_add_private (klass, sizeof (BoxesOvirtBrokerPrivate));
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	((BoxesBrokerClass *) klass)->add_source = boxes_ovirt_broker_real_add_source;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	((BoxesBrokerClass *) klass)->add_source_finish = boxes_ovirt_broker_real_add_source_finish;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_ovirt_broker_finalize;
#line 1264 "ovirt-broker.c"
}


static void boxes_ovirt_broker_instance_init (BoxesOvirtBroker * self) {
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	self->priv = BOXES_OVIRT_BROKER_GET_PRIVATE (self);
#line 1271 "ovirt-broker.c"
}


static void boxes_ovirt_broker_finalize (GObject* obj) {
	BoxesOvirtBroker * self;
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_OVIRT_BROKER, BoxesOvirtBroker);
#line 6 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	_g_hash_table_unref0 (self->priv->proxies);
#line 4 "/home/zeenix/checkout/gnome/gnome-boxes/src/ovirt-broker.vala"
	G_OBJECT_CLASS (boxes_ovirt_broker_parent_class)->finalize (obj);
#line 1283 "ovirt-broker.c"
}


GType boxes_ovirt_broker_get_type (void) {
	static volatile gsize boxes_ovirt_broker_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_ovirt_broker_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesOvirtBrokerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_ovirt_broker_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesOvirtBroker), 0, (GInstanceInitFunc) boxes_ovirt_broker_instance_init, NULL };
		GType boxes_ovirt_broker_type_id;
		boxes_ovirt_broker_type_id = g_type_register_static (BOXES_TYPE_BROKER, "BoxesOvirtBroker", &g_define_type_info, 0);
		g_once_init_leave (&boxes_ovirt_broker_type_id__volatile, boxes_ovirt_broker_type_id);
	}
	return boxes_ovirt_broker_type_id__volatile;
}



