/* libvirt-system-importer.c generated by valac 0.26.0.19-b2255, the Vala compiler
 * generated from libvirt-system-importer.vala, do not modify */

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

#include <glib.h>
#include <glib-object.h>
#include <libvirt-gobject/libvirt-gobject.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>
#include <libvirt-gconfig/libvirt-gconfig.h>
#include <stdlib.h>
#include <string.h>
#include <libcommon.h>


#define BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER (boxes_libvirt_system_importer_get_type ())
#define BOXES_LIBVIRT_SYSTEM_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, BoxesLibvirtSystemImporter))
#define BOXES_LIBVIRT_SYSTEM_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, BoxesLibvirtSystemImporterClass))
#define BOXES_IS_LIBVIRT_SYSTEM_IMPORTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER))
#define BOXES_IS_LIBVIRT_SYSTEM_IMPORTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER))
#define BOXES_LIBVIRT_SYSTEM_IMPORTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, BoxesLibvirtSystemImporterClass))

typedef struct _BoxesLibvirtSystemImporter BoxesLibvirtSystemImporter;
typedef struct _BoxesLibvirtSystemImporterClass BoxesLibvirtSystemImporterClass;
typedef struct _BoxesLibvirtSystemImporterPrivate BoxesLibvirtSystemImporterPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
typedef struct _BoxesLibvirtSystemImporterNewData BoxesLibvirtSystemImporterNewData;
typedef struct _Block81Data Block81Data;
#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 _Block82Data Block82Data;
typedef struct _BoxesLibvirtSystemImporterImportData BoxesLibvirtSystemImporterImportData;

#define BOXES_TYPE_INSTALLER_MEDIA (boxes_installer_media_get_type ())
#define BOXES_INSTALLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMedia))
#define BOXES_INSTALLER_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMediaClass))
#define BOXES_IS_INSTALLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_INSTALLER_MEDIA))
#define BOXES_IS_INSTALLER_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_INSTALLER_MEDIA))
#define BOXES_INSTALLER_MEDIA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_INSTALLER_MEDIA, BoxesInstallerMediaClass))

typedef struct _BoxesInstallerMedia BoxesInstallerMedia;
typedef struct _BoxesInstallerMediaClass BoxesInstallerMediaClass;

#define BOXES_TYPE_INSTALLED_MEDIA (boxes_installed_media_get_type ())
#define BOXES_INSTALLED_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_INSTALLED_MEDIA, BoxesInstalledMedia))
#define BOXES_INSTALLED_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_INSTALLED_MEDIA, BoxesInstalledMediaClass))
#define BOXES_IS_INSTALLED_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_INSTALLED_MEDIA))
#define BOXES_IS_INSTALLED_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_INSTALLED_MEDIA))
#define BOXES_INSTALLED_MEDIA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_INSTALLED_MEDIA, BoxesInstalledMediaClass))

typedef struct _BoxesInstalledMedia BoxesInstalledMedia;
typedef struct _BoxesInstalledMediaClass BoxesInstalledMediaClass;

#define BOXES_TYPE_LIBVIRT_SYSTEM_MEDIA (boxes_libvirt_system_media_get_type ())
#define BOXES_LIBVIRT_SYSTEM_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_SYSTEM_MEDIA, BoxesLibvirtSystemMedia))
#define BOXES_LIBVIRT_SYSTEM_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_SYSTEM_MEDIA, BoxesLibvirtSystemMediaClass))
#define BOXES_IS_LIBVIRT_SYSTEM_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_SYSTEM_MEDIA))
#define BOXES_IS_LIBVIRT_SYSTEM_MEDIA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_SYSTEM_MEDIA))
#define BOXES_LIBVIRT_SYSTEM_MEDIA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_SYSTEM_MEDIA, BoxesLibvirtSystemMediaClass))

typedef struct _BoxesLibvirtSystemMedia BoxesLibvirtSystemMedia;
typedef struct _BoxesLibvirtSystemMediaClass BoxesLibvirtSystemMediaClass;

#define BOXES_TYPE_VM_CREATOR (boxes_vm_creator_get_type ())
#define BOXES_VM_CREATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_VM_CREATOR, BoxesVMCreator))
#define BOXES_VM_CREATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_VM_CREATOR, BoxesVMCreatorClass))
#define BOXES_IS_VM_CREATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_VM_CREATOR))
#define BOXES_IS_VM_CREATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_VM_CREATOR))
#define BOXES_VM_CREATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_VM_CREATOR, BoxesVMCreatorClass))

typedef struct _BoxesVMCreator BoxesVMCreator;
typedef struct _BoxesVMCreatorClass BoxesVMCreatorClass;

#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_LIBVIRT_MACHINE (boxes_libvirt_machine_get_type ())
#define BOXES_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachine))
#define BOXES_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))
#define BOXES_IS_LIBVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_IS_LIBVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_LIBVIRT_MACHINE))
#define BOXES_LIBVIRT_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_LIBVIRT_MACHINE, BoxesLibvirtMachineClass))

typedef struct _BoxesLibvirtMachine BoxesLibvirtMachine;
typedef struct _BoxesLibvirtMachineClass BoxesLibvirtMachineClass;
#define _boxes_vm_creator_unref0(var) ((var == NULL) ? NULL : (var = (boxes_vm_creator_unref (var), NULL)))
typedef struct _BoxesLibvirtSystemImporterImportDomainData BoxesLibvirtSystemImporterImportDomainData;
typedef struct _BoxesLibvirtSystemImporterEnsureDisksReadableData BoxesLibvirtSystemImporterEnsureDisksReadableData;

typedef enum  {
	BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR_NO_IMPORTS,
	BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR_NO_SUITABLE_DISK
} BoxesLibvirtSystemImporterError;
#define BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR boxes_libvirt_system_importer_error_quark ()
struct _BoxesLibvirtSystemImporter {
	GObject parent_instance;
	BoxesLibvirtSystemImporterPrivate * priv;
};

struct _BoxesLibvirtSystemImporterClass {
	GObjectClass parent_class;
};

struct _BoxesLibvirtSystemImporterPrivate {
	GVirConnection* connection;
	GList* domains;
};

struct _BoxesLibvirtSystemImporterNewData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GType object_type;
	BoxesLibvirtSystemImporter* self;
	GVirConnection* _tmp0_;
	GVirConnection* _tmp1_;
	GVirConnection* _tmp2_;
	GVirConnection* _tmp3_;
	GList* _tmp4_;
	GList* _tmp5_;
	guint _tmp6_;
	GList* _tmp7_;
	guint _tmp8_;
	const gchar* _tmp9_;
	GError* _tmp10_;
	GError * _inner_error_;
};

struct _Block81Data {
	int _ref_count_;
	BoxesLibvirtSystemImporter* self;
	GVirConfigDomain** configs;
	gint configs_length1;
	gint _configs_size_;
	gpointer _async_data_;
};

struct _Block82Data {
	int _ref_count_;
	Block81Data * _data81_;
	gint i;
};

struct _BoxesLibvirtSystemImporterImportData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtSystemImporter* self;
	Block81Data* _data81_;
	GVirConfigDomain** _tmp0_;
	gchar** disk_paths;
	gchar** _tmp1_;
	gint disk_paths_length1;
	gint _disk_paths_size_;
	GList* _tmp2_;
	GList* domain_collection;
	GList* domain_it;
	GVirDomain* _tmp3_;
	GVirDomain* domain;
	GVirConfigDomain* config;
	gchar* disk_path;
	GVirDomain* _tmp4_;
	GVirConfigDomain* _tmp5_;
	gchar* _tmp6_;
	GVirConfigDomain** _tmp7_;
	gint _tmp7__length1;
	GVirConfigDomain* _tmp8_;
	GVirConfigDomain* _tmp9_;
	gchar** _tmp10_;
	gint _tmp10__length1;
	const gchar* _tmp11_;
	gchar* _tmp12_;
	GError* _error_;
	GError* _tmp13_;
	const gchar* _tmp14_;
	gchar** _tmp15_;
	gint _tmp15__length1;
	GError* _vala1__error_;
	GError* _tmp16_;
	const gchar* _tmp17_;
	Block82Data* _data82_;
	gboolean _tmp18_;
	gint _tmp19_;
	gint _tmp20_;
	GVirConfigDomain** _tmp21_;
	gint _tmp21__length1;
	GVirConfigDomain** _tmp22_;
	gint _tmp22__length1;
	gint _tmp23_;
	GVirConfigDomain* _tmp24_;
	gchar** _tmp25_;
	gint _tmp25__length1;
	gint _tmp26_;
	const gchar* _tmp27_;
	GError * _inner_error_;
};

struct _BoxesLibvirtSystemImporterImportDomainData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtSystemImporter* self;
	GVirConfigDomain* config;
	gchar* disk_path;
	GCancellable* cancellable;
	GVirConfigDomain* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	BoxesLibvirtSystemMedia* media;
	const gchar* _tmp3_;
	GVirConfigDomain* _tmp4_;
	BoxesLibvirtSystemMedia* _tmp5_;
	BoxesVMCreator* vm_importer;
	BoxesLibvirtSystemMedia* _tmp6_;
	BoxesVMCreator* _tmp7_;
	BoxesLibvirtMachine* machine;
	BoxesVMCreator* _tmp8_;
	GCancellable* _tmp9_;
	BoxesLibvirtMachine* _tmp10_;
	BoxesVMCreator* _tmp11_;
	BoxesLibvirtMachine* _tmp12_;
	GError * _inner_error_;
};

struct _BoxesLibvirtSystemImporterEnsureDisksReadableData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtSystemImporter* self;
	gchar** disk_paths;
	gint disk_paths_length1;
	gchar** argv;
	gchar** _tmp0_;
	gint argv_length1;
	gint _argv_size_;
	gchar** _tmp1_;
	gint _tmp1__length1;
	gchar* _tmp2_;
	gchar** _tmp3_;
	gint _tmp3__length1;
	gchar* _tmp4_;
	gchar** _tmp5_;
	gint _tmp5__length1;
	gchar* _tmp6_;
	gchar** _tmp7_;
	gint _tmp7__length1;
	gchar** disk_path_collection;
	gint disk_path_collection_length1;
	gint _disk_path_collection_size_;
	gint disk_path_it;
	gchar* _tmp8_;
	gchar* disk_path;
	gchar** _tmp9_;
	gint _tmp9__length1;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	gchar** _tmp12_;
	gint _tmp12__length1;
	GError * _inner_error_;
};


static gpointer boxes_libvirt_system_importer_parent_class = NULL;

GQuark boxes_libvirt_system_importer_error_quark (void);
GType boxes_libvirt_system_importer_get_type (void) G_GNUC_CONST;
#define BOXES_LIBVIRT_SYSTEM_IMPORTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, BoxesLibvirtSystemImporterPrivate))
enum  {
	BOXES_LIBVIRT_SYSTEM_IMPORTER_DUMMY_PROPERTY,
	BOXES_LIBVIRT_SYSTEM_IMPORTER_WIZARD_MENU_LABEL,
	BOXES_LIBVIRT_SYSTEM_IMPORTER_WIZARD_REVIEW_LABEL
};
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
static void boxes_libvirt_system_importer_construct_data_free (gpointer _data);
void boxes_libvirt_system_importer_new (GAsyncReadyCallback _callback_, gpointer _user_data_);
BoxesLibvirtSystemImporter* boxes_libvirt_system_importer_new_finish (GAsyncResult* _res_, GError** error);
void boxes_libvirt_system_importer_construct (GType object_type, GAsyncReadyCallback _callback_, gpointer _user_data_);
BoxesLibvirtSystemImporter* boxes_libvirt_system_importer_construct_finish (GAsyncResult* _res_, GError** error);
static gboolean boxes_libvirt_system_importer_construct_co (BoxesLibvirtSystemImporterNewData* _data_);
static void boxes_libvirt_system_importer_new_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void boxes_libvirt_system_importer_import_data_free (gpointer _data);
void boxes_libvirt_system_importer_import (BoxesLibvirtSystemImporter* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_libvirt_system_importer_import_finish (BoxesLibvirtSystemImporter* self, GAsyncResult* _res_);
static gboolean boxes_libvirt_system_importer_import_co (BoxesLibvirtSystemImporterImportData* _data_);
static Block81Data* block81_data_ref (Block81Data* _data81_);
static void block81_data_unref (void * _userdata_);
static void boxes_libvirt_system_importer_get_domain_info (BoxesLibvirtSystemImporter* self, GVirDomain* domain, GVirConfigDomain** config, gchar** disk_path, GError** error);
static void _vala_array_add16 (GVirConfigDomain*** array, int* length, int* size, GVirConfigDomain* value);
static void _vala_array_add17 (gchar*** array, int* length, int* size, gchar* value);
static void boxes_libvirt_system_importer_ensure_disks_readable (BoxesLibvirtSystemImporter* self, gchar** disk_paths, int disk_paths_length1, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_system_importer_ensure_disks_readable_finish (BoxesLibvirtSystemImporter* self, GAsyncResult* _res_, GError** error);
static void boxes_libvirt_system_importer_import_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static Block82Data* block82_data_ref (Block82Data* _data82_);
static void block82_data_unref (void * _userdata_);
static void boxes_libvirt_system_importer_import_domain (BoxesLibvirtSystemImporter* self, GVirConfigDomain* config, const gchar* disk_path, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void boxes_libvirt_system_importer_import_domain_finish (BoxesLibvirtSystemImporter* self, GAsyncResult* _res_, GError** error);
static void _____lambda162_ (Block82Data* _data82_, GObject* obj, GAsyncResult* _result_);
static void ______lambda162__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static gchar* boxes_libvirt_system_importer_get_disk_path (BoxesLibvirtSystemImporter* self, GVirConfigDomain* config, GError** error);
static void boxes_libvirt_system_importer_import_domain_data_free (gpointer _data);
static gboolean boxes_libvirt_system_importer_import_domain_co (BoxesLibvirtSystemImporterImportDomainData* _data_);
GType boxes_installer_media_get_type (void) G_GNUC_CONST;
GType boxes_installed_media_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_system_media_get_type (void) G_GNUC_CONST;
BoxesLibvirtSystemMedia* boxes_libvirt_system_media_new (const gchar* path, GVirConfigDomain* domain_config, GError** error);
BoxesLibvirtSystemMedia* boxes_libvirt_system_media_construct (GType object_type, const gchar* path, GVirConfigDomain* domain_config, GError** error);
gpointer boxes_vm_creator_ref (gpointer instance);
void boxes_vm_creator_unref (gpointer instance);
GParamSpec* boxes_param_spec_vm_creator (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void boxes_value_set_vm_creator (GValue* value, gpointer v_object);
void boxes_value_take_vm_creator (GValue* value, gpointer v_object);
gpointer boxes_value_get_vm_creator (const GValue* value);
GType boxes_vm_creator_get_type (void) G_GNUC_CONST;
BoxesVMCreator* boxes_installer_media_get_vm_creator (BoxesInstallerMedia* self);
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
GType boxes_libvirt_machine_get_type (void) G_GNUC_CONST;
void boxes_vm_creator_create_vm (BoxesVMCreator* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
BoxesLibvirtMachine* boxes_vm_creator_create_vm_finish (BoxesVMCreator* self, GAsyncResult* _res_, GError** error);
static void boxes_libvirt_system_importer_import_domain_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void boxes_vm_creator_launch_vm (BoxesVMCreator* self, BoxesLibvirtMachine* machine, GError** error);
static void boxes_libvirt_system_importer_ensure_disks_readable_data_free (gpointer _data);
static gboolean boxes_libvirt_system_importer_ensure_disks_readable_co (BoxesLibvirtSystemImporterEnsureDisksReadableData* _data_);
static void _vala_array_add18 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add19 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add20 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add21 (gchar*** array, int* length, int* size, gchar* value);
static void boxes_libvirt_system_importer_ensure_disks_readable_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
gchar* boxes_libvirt_system_importer_get_wizard_menu_label (BoxesLibvirtSystemImporter* self);
gchar* boxes_libvirt_system_importer_get_wizard_review_label (BoxesLibvirtSystemImporter* self);
static void boxes_libvirt_system_importer_finalize (GObject* obj);
static void _vala_boxes_libvirt_system_importer_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


GQuark boxes_libvirt_system_importer_error_quark (void) {
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return g_quark_from_static_string ("boxes_libvirt_system_importer_error-quark");
#line 365 "libvirt-system-importer.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 372 "libvirt-system-importer.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_list_free (self);
#line 381 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_construct_data_free (gpointer _data) {
	BoxesLibvirtSystemImporterNewData* _data_;
	_data_ = _data;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->self);
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_slice_free (BoxesLibvirtSystemImporterNewData, _data_);
#line 392 "libvirt-system-importer.c"
}


void boxes_libvirt_system_importer_construct (GType object_type, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtSystemImporterNewData* _data_;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = g_slice_new0 (BoxesLibvirtSystemImporterNewData);
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_async_result = g_simple_async_result_new (NULL, _callback_, _user_data_, boxes_libvirt_system_importer_construct);
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_system_importer_construct_data_free);
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->object_type = object_type;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_construct_co (_data_);
#line 408 "libvirt-system-importer.c"
}


BoxesLibvirtSystemImporter* boxes_libvirt_system_importer_construct_finish (GAsyncResult* _res_, GError** error) {
	BoxesLibvirtSystemImporter* result;
	BoxesLibvirtSystemImporterNewData* _data_;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return;
#line 419 "libvirt-system-importer.c"
	}
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	result = _data_->self;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->self = NULL;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return result;
#line 429 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_new_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtSystemImporterNewData* _data_;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = _user_data_;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_source_object_ = source_object;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_res_ = _res_;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_construct_co (_data_);
#line 443 "libvirt-system-importer.c"
}


static gboolean boxes_libvirt_system_importer_construct_co (BoxesLibvirtSystemImporterNewData* _data_) {
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	switch (_data_->_state_) {
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 0:
#line 452 "libvirt-system-importer.c"
		goto _state_0;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 1:
#line 456 "libvirt-system-importer.c"
		goto _state_1;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 2:
#line 460 "libvirt-system-importer.c"
		goto _state_2;
		default:
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_assert_not_reached ();
#line 465 "libvirt-system-importer.c"
	}
	_state_0:
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->self = (BoxesLibvirtSystemImporter*) g_object_new (_data_->object_type, NULL);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = NULL;
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = gvir_connection_new ("qemu+unix:///system");
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->self->priv->connection);
#line 42 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->self->priv->connection = _data_->_tmp0_;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = NULL;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = _data_->self->priv->connection;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_state_ = 1;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	gvir_connection_open_read_only_async (_data_->_tmp1_, NULL, boxes_libvirt_system_importer_new_ready, _data_);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 488 "libvirt-system-importer.c"
	_state_1:
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	gvir_connection_open_read_only_finish (_data_->_tmp1_, _data_->_res_, &_data_->_inner_error_);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 502 "libvirt-system-importer.c"
		} else {
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 506 "libvirt-system-importer.c"
		}
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 512 "libvirt-system-importer.c"
	}
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:45: Connected to system libvirt, now fetc" \
"hing domains..");
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = NULL;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = _data_->self->priv->connection;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_state_ = 2;
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	gvir_connection_fetch_domains_async (_data_->_tmp2_, NULL, boxes_libvirt_system_importer_new_ready, _data_);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 526 "libvirt-system-importer.c"
	_state_2:
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	gvir_connection_fetch_domains_finish (_data_->_tmp2_, _data_->_res_, &_data_->_inner_error_);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 540 "libvirt-system-importer.c"
		} else {
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 544 "libvirt-system-importer.c"
		}
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 550 "libvirt-system-importer.c"
	}
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3_ = NULL;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3_ = _data_->self->priv->connection;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp4_ = NULL;
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp4_ = gvir_connection_get_domains (_data_->_tmp3_);
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	__g_list_free__g_object_unref0_0 (_data_->self->priv->domains);
#line 48 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->self->priv->domains = _data_->_tmp4_;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = NULL;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = _data_->self->priv->domains;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = 0U;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = g_list_length (_data_->_tmp5_);
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:49: Fetched %u domains from system libvir" \
"t.", _data_->_tmp6_);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = NULL;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = _data_->self->priv->domains;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp8_ = 0U;
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp8_ = g_list_length (_data_->_tmp7_);
#line 50 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_tmp8_ == ((guint) 0)) {
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp9_ = NULL;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp9_ = _ ("No boxes to import");
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp10_ = NULL;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp10_ = g_error_new_literal (BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR, BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR_NO_IMPORTS, _data_->_tmp9_);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_inner_error_ = _data_->_tmp10_;
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 602 "libvirt-system-importer.c"
		} else {
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 606 "libvirt-system-importer.c"
		}
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 612 "libvirt-system-importer.c"
	}
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_state_ == 0) {
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 618 "libvirt-system-importer.c"
	} else {
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 622 "libvirt-system-importer.c"
	}
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_object_unref (_data_->_async_result);
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 628 "libvirt-system-importer.c"
}


void boxes_libvirt_system_importer_new (GAsyncReadyCallback _callback_, gpointer _user_data_) {
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_construct (BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, _callback_, _user_data_);
#line 635 "libvirt-system-importer.c"
}


BoxesLibvirtSystemImporter* boxes_libvirt_system_importer_new_finish (GAsyncResult* _res_, GError** error) {
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return boxes_libvirt_system_importer_construct_finish (_res_, error);
#line 642 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_import_data_free (gpointer _data) {
	BoxesLibvirtSystemImporterImportData* _data_;
	_data_ = _data;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->self);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_slice_free (BoxesLibvirtSystemImporterImportData, _data_);
#line 653 "libvirt-system-importer.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return self ? g_object_ref (self) : NULL;
#line 660 "libvirt-system-importer.c"
}


void boxes_libvirt_system_importer_import (BoxesLibvirtSystemImporter* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtSystemImporterImportData* _data_;
	BoxesLibvirtSystemImporter* _tmp0_ = NULL;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = g_slice_new0 (BoxesLibvirtSystemImporterImportData);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_system_importer_import);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_system_importer_import_data_free);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->self = _tmp0_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_import_co (_data_);
#line 679 "libvirt-system-importer.c"
}


void boxes_libvirt_system_importer_import_finish (BoxesLibvirtSystemImporter* self, GAsyncResult* _res_) {
	BoxesLibvirtSystemImporterImportData* _data_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 687 "libvirt-system-importer.c"
}


static Block81Data* block81_data_ref (Block81Data* _data81_) {
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_atomic_int_inc (&_data81_->_ref_count_);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return _data81_;
#line 696 "libvirt-system-importer.c"
}


static void block81_data_unref (void * _userdata_) {
	Block81Data* _data81_;
	_data81_ = (Block81Data*) _userdata_;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (g_atomic_int_dec_and_test (&_data81_->_ref_count_)) {
#line 705 "libvirt-system-importer.c"
		BoxesLibvirtSystemImporter* self;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		self = _data81_->self;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data81_->configs = (_vala_array_free (_data81_->configs, _data81_->configs_length1, (GDestroyNotify) g_object_unref), NULL);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (self);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_slice_free (Block81Data, _data81_);
#line 715 "libvirt-system-importer.c"
	}
}


static void _vala_array_add16 (GVirConfigDomain*** array, int* length, int* size, GVirConfigDomain* value) {
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if ((*length) == (*size)) {
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*array = g_renew (GVirConfigDomain*, *array, (*size) + 1);
#line 727 "libvirt-system-importer.c"
	}
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[(*length)++] = value;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[*length] = NULL;
#line 733 "libvirt-system-importer.c"
}


static void _vala_array_add17 (gchar*** array, int* length, int* size, gchar* value) {
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if ((*length) == (*size)) {
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 744 "libvirt-system-importer.c"
	}
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[(*length)++] = value;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[*length] = NULL;
#line 750 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_import_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtSystemImporterImportData* _data_;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = _user_data_;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_source_object_ = source_object;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_res_ = _res_;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_import_co (_data_);
#line 764 "libvirt-system-importer.c"
}


static Block82Data* block82_data_ref (Block82Data* _data82_) {
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_atomic_int_inc (&_data82_->_ref_count_);
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return _data82_;
#line 773 "libvirt-system-importer.c"
}


static void block82_data_unref (void * _userdata_) {
	Block82Data* _data82_;
	_data82_ = (Block82Data*) _userdata_;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (g_atomic_int_dec_and_test (&_data82_->_ref_count_)) {
#line 782 "libvirt-system-importer.c"
		BoxesLibvirtSystemImporter* self;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		self = _data82_->_data81_->self;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		block81_data_unref (_data82_->_data81_);
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data82_->_data81_ = NULL;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_slice_free (Block82Data, _data82_);
#line 792 "libvirt-system-importer.c"
	}
}


static void _____lambda162_ (Block82Data* _data82_, GObject* obj, GAsyncResult* _result_) {
	Block81Data* _data81_;
	BoxesLibvirtSystemImporter* self;
	GError * _inner_error_ = NULL;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data81_ = _data82_->_data81_;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	self = _data81_->self;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_if_fail (_result_ != NULL);
#line 807 "libvirt-system-importer.c"
	{
		GAsyncResult* _tmp0_ = NULL;
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp0_ = _result_;
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		boxes_libvirt_system_importer_import_domain_finish (self, _tmp0_, &_inner_error_);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 816 "libvirt-system-importer.c"
			goto __catch112_g_error;
		}
	}
	goto __finally112;
	__catch112_g_error:
	{
		GError* _error_ = NULL;
		GVirConfigDomain** _tmp1_ = NULL;
		gint _tmp1__length1 = 0;
		gint _tmp2_ = 0;
		GVirConfigDomain* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		GError* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
#line 81 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_error_ = _inner_error_;
#line 81 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_inner_error_ = NULL;
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp1_ = _data81_->configs;
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp1__length1 = _data81_->configs_length1;
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp2_ = _data82_->i;
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp3_ = _tmp1_[_tmp2_];
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp4_ = gvir_config_domain_get_name (_tmp3_);
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp5_ = _tmp4_;
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp6_ = _error_;
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp7_ = _tmp6_->message;
#line 84 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_warning ("libvirt-system-importer.vala:84: Failed to import '%s': %s", _tmp5_, _tmp7_);
#line 81 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_error_free0 (_error_);
#line 856 "libvirt-system-importer.c"
	}
	__finally112:
#line 81 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 81 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.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 81 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_clear_error (&_inner_error_);
#line 81 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return;
#line 867 "libvirt-system-importer.c"
	}
}


static void ______lambda162__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_____lambda162_ (self, source_object, res);
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	block82_data_unref (self);
#line 877 "libvirt-system-importer.c"
}


static gboolean boxes_libvirt_system_importer_import_co (BoxesLibvirtSystemImporterImportData* _data_) {
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	switch (_data_->_state_) {
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 0:
#line 886 "libvirt-system-importer.c"
		goto _state_0;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 1:
#line 890 "libvirt-system-importer.c"
		goto _state_1;
		default:
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_assert_not_reached ();
#line 895 "libvirt-system-importer.c"
	}
	_state_0:
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data81_ = g_slice_new0 (Block81Data);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data81_->_ref_count_ = 1;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data81_->self = g_object_ref (_data_->self);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data81_->_async_data_ = _data_;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = NULL;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = g_new0 (GVirConfigDomain*, 0 + 1);
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data81_->configs = _data_->_tmp0_;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data81_->configs_length1 = 0;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data81_->_configs_size_ = _data_->_data81_->configs_length1;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = NULL;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = g_new0 (gchar*, 0 + 1);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->disk_paths_length1 = 0;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_disk_paths_size_ = 0;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->disk_paths = _data_->_tmp1_;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->disk_paths_length1 = 0;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_disk_paths_size_ = _data_->disk_paths_length1;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = NULL;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = _data_->self->priv->domains;
#line 934 "libvirt-system-importer.c"
	{
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->domain_collection = _data_->_tmp2_;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		for (_data_->domain_it = _data_->domain_collection; _data_->domain_it != NULL; _data_->domain_it = _data_->domain_it->next) {
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->_tmp3_ = NULL;
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->_tmp3_ = _g_object_ref0 ((GVirDomain*) _data_->domain_it->data);
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->domain = _data_->_tmp3_;
#line 946 "libvirt-system-importer.c"
			{
				{
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp4_ = NULL;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp4_ = _data_->domain;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp5_ = NULL;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp6_ = NULL;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					boxes_libvirt_system_importer_get_domain_info (_data_->self, _data_->_tmp4_, &_data_->_tmp5_, &_data_->_tmp6_, &_data_->_inner_error_);
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (_data_->config);
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->config = _data_->_tmp5_;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_free0 (_data_->disk_path);
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->disk_path = _data_->_tmp6_;
#line 63 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 969 "libvirt-system-importer.c"
						goto __catch110_g_error;
					}
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp7_ = NULL;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp7__length1 = 0;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp7_ = _data_->_data81_->configs;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp7__length1 = _data_->_data81_->configs_length1;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp8_ = NULL;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp8_ = _data_->config;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp9_ = NULL;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp9_ = _g_object_ref0 (_data_->_tmp8_);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_vala_array_add16 (&_data_->_data81_->configs, &_data_->_data81_->configs_length1, &_data_->_data81_->_configs_size_, _data_->_tmp9_);
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp10_ = NULL;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp10__length1 = 0;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp10_ = _data_->disk_paths;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp10__length1 = _data_->disk_paths_length1;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp11_ = NULL;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp11_ = _data_->disk_path;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp12_ = NULL;
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp12_ = g_strdup (_data_->_tmp11_);
#line 65 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_vala_array_add17 (&_data_->disk_paths, &_data_->disk_paths_length1, &_data_->_disk_paths_size_, _data_->_tmp12_);
#line 1008 "libvirt-system-importer.c"
				}
				goto __finally110;
				__catch110_g_error:
				{
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_error_ = _data_->_inner_error_;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_inner_error_ = NULL;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp13_ = NULL;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp13_ = _data_->_error_;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp14_ = NULL;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp14_ = _data_->_tmp13_->message;
#line 67 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					g_warning ("libvirt-system-importer.vala:67: %s", _data_->_tmp14_);
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_error_free0 (_data_->_error_);
#line 1029 "libvirt-system-importer.c"
				}
				__finally110:
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_free0 (_data_->disk_path);
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (_data_->config);
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (_data_->domain);
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->disk_paths = (_vala_array_free (_data_->disk_paths, _data_->disk_paths_length1, (GDestroyNotify) g_free), NULL);
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					block81_data_unref (_data_->_data81_);
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_data81_ = NULL;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					g_clear_error (&_data_->_inner_error_);
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					return FALSE;
#line 1052 "libvirt-system-importer.c"
				}
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_free0 (_data_->disk_path);
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_object_unref0 (_data_->config);
#line 58 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_object_unref0 (_data_->domain);
#line 1060 "libvirt-system-importer.c"
			}
		}
	}
	{
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp15_ = NULL;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp15__length1 = 0;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp15_ = _data_->disk_paths;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp15__length1 = _data_->disk_paths_length1;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_state_ = 1;
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		boxes_libvirt_system_importer_ensure_disks_readable (_data_->self, _data_->_tmp15_, _data_->_tmp15__length1, boxes_libvirt_system_importer_import_ready, _data_);
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1079 "libvirt-system-importer.c"
		_state_1:
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		boxes_libvirt_system_importer_ensure_disks_readable_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
#line 72 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1085 "libvirt-system-importer.c"
			goto __catch111_g_error;
		}
	}
	goto __finally111;
	__catch111_g_error:
	{
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_vala1__error_ = _data_->_inner_error_;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_inner_error_ = NULL;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp16_ = NULL;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp16_ = _data_->_vala1__error_;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp17_ = NULL;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp17_ = _data_->_tmp16_->message;
#line 74 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_warning ("libvirt-system-importer.vala:74: Failed to make all libvirt system dis" \
"ks readable: %s", _data_->_tmp17_);
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_error_free0 (_data_->_vala1__error_);
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->disk_paths = (_vala_array_free (_data_->disk_paths, _data_->disk_paths_length1, (GDestroyNotify) g_free), NULL);
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		block81_data_unref (_data_->_data81_);
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data81_ = NULL;
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1118 "libvirt-system-importer.c"
		} else {
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1122 "libvirt-system-importer.c"
		}
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 76 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1128 "libvirt-system-importer.c"
	}
	__finally111:
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->disk_paths = (_vala_array_free (_data_->disk_paths, _data_->disk_paths_length1, (GDestroyNotify) g_free), NULL);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		block81_data_unref (_data_->_data81_);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data81_ = NULL;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_clear_error (&_data_->_inner_error_);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1145 "libvirt-system-importer.c"
	}
	{
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data82_ = g_slice_new0 (Block82Data);
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data82_->_ref_count_ = 1;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data82_->_data81_ = block81_data_ref (_data_->_data81_);
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data82_->i = 0;
#line 1156 "libvirt-system-importer.c"
		{
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->_tmp18_ = TRUE;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			while (TRUE) {
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				if (!_data_->_tmp18_) {
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp19_ = 0;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp19_ = _data_->_data82_->i;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_data82_->i = _data_->_tmp19_ + 1;
#line 1170 "libvirt-system-importer.c"
				}
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp18_ = FALSE;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp20_ = 0;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp20_ = _data_->_data82_->i;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp21_ = NULL;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp21__length1 = 0;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp21_ = _data_->_data81_->configs;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp21__length1 = _data_->_data81_->configs_length1;
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				if (!(_data_->_tmp20_ < _data_->_tmp21__length1)) {
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					break;
#line 1190 "libvirt-system-importer.c"
				}
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp22_ = NULL;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp22__length1 = 0;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp22_ = _data_->_data81_->configs;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp22__length1 = _data_->_data81_->configs_length1;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp23_ = 0;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp23_ = _data_->_data82_->i;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp24_ = NULL;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp24_ = _data_->_tmp22_[_data_->_tmp23_];
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp25_ = NULL;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp25__length1 = 0;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp25_ = _data_->disk_paths;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp25__length1 = _data_->disk_paths_length1;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp26_ = 0;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp26_ = _data_->_data82_->i;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp27_ = NULL;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp27_ = _data_->_tmp25_[_data_->_tmp26_];
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				boxes_libvirt_system_importer_import_domain (_data_->self, _data_->_tmp24_, _data_->_tmp27_, NULL, ______lambda162__gasync_ready_callback, block82_data_ref (_data_->_data82_));
#line 1226 "libvirt-system-importer.c"
			}
		}
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		block82_data_unref (_data_->_data82_);
#line 79 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data82_ = NULL;
#line 1233 "libvirt-system-importer.c"
	}
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->disk_paths = (_vala_array_free (_data_->disk_paths, _data_->disk_paths_length1, (GDestroyNotify) g_free), NULL);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	block81_data_unref (_data_->_data81_);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data81_ = NULL;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_state_ == 0) {
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1245 "libvirt-system-importer.c"
	} else {
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1249 "libvirt-system-importer.c"
	}
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_object_unref (_data_->_async_result);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 1255 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_get_domain_info (BoxesLibvirtSystemImporter* self, GVirDomain* domain, GVirConfigDomain** config, gchar** disk_path, GError** error) {
	GVirConfigDomain* _vala_config = NULL;
	gchar* _vala_disk_path = NULL;
	GVirDomain* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	GVirConfigDomain* _tmp2_ = NULL;
	GVirDomain* _tmp3_ = NULL;
	GVirConfigDomain* _tmp4_ = NULL;
	GVirConfigDomain* _tmp5_ = NULL;
	GVirDomain* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	GVirConfigDomain* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	GError * _inner_error_ = NULL;
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_if_fail (self != NULL);
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_if_fail (domain != NULL);
#line 92 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp0_ = domain;
#line 92 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp1_ = gvir_domain_get_name (_tmp0_);
#line 92 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:92: Fetching config for '%s' from system " \
"libvirt.", _tmp1_);
#line 93 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp3_ = domain;
#line 93 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp4_ = gvir_domain_get_config (_tmp3_, (guint) GVIR_DOMAIN_XML_INACTIVE, &_inner_error_);
#line 93 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp2_ = _tmp4_;
#line 93 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 93 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_propagate_error (error, _inner_error_);
#line 93 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return;
#line 1297 "libvirt-system-importer.c"
	}
#line 93 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp5_ = _tmp2_;
#line 93 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp2_ = NULL;
#line 93 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_vala_config);
#line 93 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_vala_config = _tmp5_;
#line 94 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp6_ = domain;
#line 94 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp7_ = gvir_domain_get_name (_tmp6_);
#line 94 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:94: Finding a suitable disk to import for" \
" '%s' from system libvirt.", _tmp7_);
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp9_ = _vala_config;
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp10_ = boxes_libvirt_system_importer_get_disk_path (self, _tmp9_, &_inner_error_);
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp8_ = _tmp10_;
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_propagate_error (error, _inner_error_);
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (_tmp2_);
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return;
#line 1327 "libvirt-system-importer.c"
	}
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp11_ = _tmp8_;
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp8_ = NULL;
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_free0 (_vala_disk_path);
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_vala_disk_path = _tmp11_;
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_free0 (_tmp8_);
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_tmp2_);
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (config) {
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*config = _vala_config;
#line 1345 "libvirt-system-importer.c"
	} else {
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (_vala_config);
#line 1349 "libvirt-system-importer.c"
	}
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (disk_path) {
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*disk_path = _vala_disk_path;
#line 1355 "libvirt-system-importer.c"
	} else {
#line 89 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_free0 (_vala_disk_path);
#line 1359 "libvirt-system-importer.c"
	}
}


static void boxes_libvirt_system_importer_import_domain_data_free (gpointer _data) {
	BoxesLibvirtSystemImporterImportDomainData* _data_;
	_data_ = _data;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->config);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_free0 (_data_->disk_path);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->cancellable);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->self);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_slice_free (BoxesLibvirtSystemImporterImportDomainData, _data_);
#line 1377 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_import_domain (BoxesLibvirtSystemImporter* self, GVirConfigDomain* config, const gchar* disk_path, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtSystemImporterImportDomainData* _data_;
	BoxesLibvirtSystemImporter* _tmp0_ = NULL;
	GVirConfigDomain* _tmp1_ = NULL;
	GVirConfigDomain* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GCancellable* _tmp5_ = NULL;
	GCancellable* _tmp6_ = NULL;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = g_slice_new0 (BoxesLibvirtSystemImporterImportDomainData);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_system_importer_import_domain);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_system_importer_import_domain_data_free);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->self = _tmp0_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp1_ = config;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->config);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->config = _tmp2_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp3_ = disk_path;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_free0 (_data_->disk_path);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->disk_path = _tmp4_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp5_ = cancellable;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp6_ = _g_object_ref0 (_tmp5_);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->cancellable);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->cancellable = _tmp6_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_import_domain_co (_data_);
#line 1426 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_import_domain_finish (BoxesLibvirtSystemImporter* self, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtSystemImporterImportDomainData* _data_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return;
#line 1436 "libvirt-system-importer.c"
	}
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1440 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_import_domain_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtSystemImporterImportDomainData* _data_;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = _user_data_;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_source_object_ = source_object;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_res_ = _res_;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_import_domain_co (_data_);
#line 1454 "libvirt-system-importer.c"
}


static gboolean boxes_libvirt_system_importer_import_domain_co (BoxesLibvirtSystemImporterImportDomainData* _data_) {
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	switch (_data_->_state_) {
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 0:
#line 1463 "libvirt-system-importer.c"
		goto _state_0;
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 1:
#line 1467 "libvirt-system-importer.c"
		goto _state_1;
		default:
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_assert_not_reached ();
#line 1472 "libvirt-system-importer.c"
	}
	_state_0:
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = NULL;
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = _data_->config;
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = NULL;
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = gvir_config_domain_get_name (_data_->_tmp0_);
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = NULL;
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 101 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:101: Importing '%s' from system libvirt..", _data_->_tmp2_);
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3_ = NULL;
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3_ = _data_->disk_path;
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp4_ = NULL;
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp4_ = _data_->config;
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = NULL;
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = boxes_libvirt_system_media_new (_data_->_tmp3_, _data_->_tmp4_, &_data_->_inner_error_);
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->media = _data_->_tmp5_;
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1513 "libvirt-system-importer.c"
		} else {
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1517 "libvirt-system-importer.c"
		}
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 103 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1523 "libvirt-system-importer.c"
	}
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = NULL;
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = _data_->media;
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = NULL;
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = boxes_installer_media_get_vm_creator ((BoxesInstallerMedia*) _data_->_tmp6_);
#line 104 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->vm_importer = _data_->_tmp7_;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp8_ = NULL;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp8_ = _data_->vm_importer;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp9_ = NULL;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp9_ = _data_->cancellable;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_state_ = 1;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_vm_creator_create_vm (_data_->_tmp8_, _data_->_tmp9_, boxes_libvirt_system_importer_import_domain_ready, _data_);
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 1549 "libvirt-system-importer.c"
	_state_1:
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp10_ = NULL;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp10_ = boxes_vm_creator_create_vm_finish (_data_->_tmp8_, _data_->_res_, &_data_->_inner_error_);
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->machine = _data_->_tmp10_;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_boxes_vm_creator_unref0 (_data_->vm_importer);
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (_data_->media);
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1571 "libvirt-system-importer.c"
		} else {
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1575 "libvirt-system-importer.c"
		}
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1581 "libvirt-system-importer.c"
	}
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp11_ = NULL;
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp11_ = _data_->vm_importer;
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12_ = NULL;
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12_ = _data_->machine;
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_vm_creator_launch_vm (_data_->_tmp11_, _data_->_tmp12_, &_data_->_inner_error_);
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (_data_->machine);
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_boxes_vm_creator_unref0 (_data_->vm_importer);
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (_data_->media);
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1609 "libvirt-system-importer.c"
		} else {
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1613 "libvirt-system-importer.c"
		}
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 106 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1619 "libvirt-system-importer.c"
	}
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->machine);
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_boxes_vm_creator_unref0 (_data_->vm_importer);
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->media);
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_state_ == 0) {
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1631 "libvirt-system-importer.c"
	} else {
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1635 "libvirt-system-importer.c"
	}
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_object_unref (_data_->_async_result);
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 1641 "libvirt-system-importer.c"
}


static gchar* boxes_libvirt_system_importer_get_disk_path (BoxesLibvirtSystemImporter* self, GVirConfigDomain* config, GError** error) {
	gchar* result = NULL;
	gchar* disk_path = NULL;
	GList* devices = NULL;
	GVirConfigDomain* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	const gchar* _tmp12_ = NULL;
	GError * _inner_error_ = NULL;
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_val_if_fail (config != NULL, NULL);
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	disk_path = NULL;
#line 112 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp0_ = config;
#line 112 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp1_ = gvir_config_domain_get_devices (_tmp0_);
#line 112 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	devices = _tmp1_;
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp2_ = devices;
#line 1668 "libvirt-system-importer.c"
	{
		GList* device_collection = NULL;
		GList* device_it = NULL;
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		device_collection = _tmp2_;
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		for (device_it = device_collection; device_it != NULL; device_it = device_it->next) {
#line 1676 "libvirt-system-importer.c"
			GVirConfigDomainDevice* _tmp3_ = NULL;
			GVirConfigDomainDevice* device = NULL;
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_tmp3_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_it->data);
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			device = _tmp3_;
#line 1683 "libvirt-system-importer.c"
			{
				GVirConfigDomainDevice* _tmp4_ = NULL;
				GVirConfigDomainDisk* disk = NULL;
				GVirConfigDomainDevice* _tmp5_ = NULL;
				GVirConfigDomainDisk* _tmp6_ = NULL;
				GVirConfigDomainDisk* _tmp7_ = NULL;
				GVirConfigDomainDiskGuestDeviceType _tmp8_ = 0;
#line 114 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_tmp4_ = device;
#line 114 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, gvir_config_domain_disk_get_type ())) {
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (device);
#line 115 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					continue;
#line 1699 "libvirt-system-importer.c"
				}
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_tmp5_ = device;
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_tmp6_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, gvir_config_domain_disk_get_type ()) ? ((GVirConfigDomainDisk*) _tmp5_) : NULL);
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				disk = _tmp6_;
#line 118 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_tmp7_ = disk;
#line 118 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_tmp8_ = gvir_config_domain_disk_get_guest_device_type (_tmp7_);
#line 118 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				if (_tmp8_ == GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK) {
#line 1713 "libvirt-system-importer.c"
					GVirConfigDomainDisk* _tmp9_ = NULL;
					const gchar* _tmp10_ = NULL;
					gchar* _tmp11_ = NULL;
#line 119 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_tmp9_ = disk;
#line 119 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_tmp10_ = gvir_config_domain_disk_get_source (_tmp9_);
#line 119 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_tmp11_ = g_strdup (_tmp10_);
#line 119 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_free0 (disk_path);
#line 119 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					disk_path = _tmp11_;
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (disk);
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (device);
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					break;
#line 1733 "libvirt-system-importer.c"
				}
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_object_unref0 (disk);
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_object_unref0 (device);
#line 1739 "libvirt-system-importer.c"
			}
		}
	}
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp12_ = disk_path;
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_tmp12_ == NULL) {
#line 1747 "libvirt-system-importer.c"
		const gchar* _tmp13_ = NULL;
		GVirConfigDomain* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp13_ = _ ("Failed to find suitable disk to import for box '%s'");
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp14_ = config;
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp15_ = gvir_config_domain_get_name (_tmp14_);
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp16_ = _tmp15_;
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp17_ = g_error_new (BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR, BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR_NO_SUITABLE_DISK, _tmp13_, _tmp16_);
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_inner_error_ = _tmp17_;
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_inner_error_->domain == BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR) {
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_propagate_error (error, _inner_error_);
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			__g_list_free__g_object_unref0_0 (devices);
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_g_free0 (disk_path);
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			return NULL;
#line 1775 "libvirt-system-importer.c"
		} else {
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			__g_list_free__g_object_unref0_0 (devices);
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_g_free0 (disk_path);
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.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 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_clear_error (&_inner_error_);
#line 126 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			return NULL;
#line 1787 "libvirt-system-importer.c"
		}
	}
#line 129 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	result = disk_path;
#line 129 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	__g_list_free__g_object_unref0_0 (devices);
#line 129 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return result;
#line 1796 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_ensure_disks_readable_data_free (gpointer _data) {
	BoxesLibvirtSystemImporterEnsureDisksReadableData* _data_;
	_data_ = _data;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->self);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_slice_free (BoxesLibvirtSystemImporterEnsureDisksReadableData, _data_);
#line 1807 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_ensure_disks_readable (BoxesLibvirtSystemImporter* self, gchar** disk_paths, int disk_paths_length1, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesLibvirtSystemImporterEnsureDisksReadableData* _data_;
	BoxesLibvirtSystemImporter* _tmp0_ = NULL;
	gchar** _tmp1_ = NULL;
	gint _tmp1__length1 = 0;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = g_slice_new0 (BoxesLibvirtSystemImporterEnsureDisksReadableData);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_libvirt_system_importer_ensure_disks_readable);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_libvirt_system_importer_ensure_disks_readable_data_free);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->self = _tmp0_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp1_ = disk_paths;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp1__length1 = disk_paths_length1;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->disk_paths = _tmp1_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->disk_paths_length1 = _tmp1__length1;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_ensure_disks_readable_co (_data_);
#line 1836 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_ensure_disks_readable_finish (BoxesLibvirtSystemImporter* self, GAsyncResult* _res_, GError** error) {
	BoxesLibvirtSystemImporterEnsureDisksReadableData* _data_;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return;
#line 1846 "libvirt-system-importer.c"
	}
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1850 "libvirt-system-importer.c"
}


static void _vala_array_add18 (gchar*** array, int* length, int* size, gchar* value) {
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if ((*length) == (*size)) {
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1861 "libvirt-system-importer.c"
	}
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[(*length)++] = value;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[*length] = NULL;
#line 1867 "libvirt-system-importer.c"
}


static void _vala_array_add19 (gchar*** array, int* length, int* size, gchar* value) {
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if ((*length) == (*size)) {
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1878 "libvirt-system-importer.c"
	}
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[(*length)++] = value;
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[*length] = NULL;
#line 1884 "libvirt-system-importer.c"
}


static void _vala_array_add20 (gchar*** array, int* length, int* size, gchar* value) {
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if ((*length) == (*size)) {
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1895 "libvirt-system-importer.c"
	}
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[(*length)++] = value;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[*length] = NULL;
#line 1901 "libvirt-system-importer.c"
}


static void _vala_array_add21 (gchar*** array, int* length, int* size, gchar* value) {
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if ((*length) == (*size)) {
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1912 "libvirt-system-importer.c"
	}
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[(*length)++] = value;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[*length] = NULL;
#line 1918 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_ensure_disks_readable_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtSystemImporterEnsureDisksReadableData* _data_;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = _user_data_;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_source_object_ = source_object;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_res_ = _res_;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_ensure_disks_readable_co (_data_);
#line 1932 "libvirt-system-importer.c"
}


static gboolean boxes_libvirt_system_importer_ensure_disks_readable_co (BoxesLibvirtSystemImporterEnsureDisksReadableData* _data_) {
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	switch (_data_->_state_) {
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 0:
#line 1941 "libvirt-system-importer.c"
		goto _state_0;
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 1:
#line 1945 "libvirt-system-importer.c"
		goto _state_1;
		default:
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_assert_not_reached ();
#line 1950 "libvirt-system-importer.c"
	}
	_state_0:
#line 133 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = NULL;
#line 133 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = g_new0 (gchar*, 0 + 1);
#line 133 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->argv_length1 = 0;
#line 133 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_argv_size_ = 0;
#line 133 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->argv = _data_->_tmp0_;
#line 133 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->argv_length1 = 0;
#line 133 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_argv_size_ = _data_->argv_length1;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = NULL;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1__length1 = 0;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = _data_->argv;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1__length1 = _data_->argv_length1;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = NULL;
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = g_strdup ("pkexec");
#line 135 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_vala_array_add18 (&_data_->argv, &_data_->argv_length1, &_data_->_argv_size_, _data_->_tmp2_);
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3_ = NULL;
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3__length1 = 0;
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3_ = _data_->argv;
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3__length1 = _data_->argv_length1;
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp4_ = NULL;
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp4_ = g_strdup ("chmod");
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_vala_array_add19 (&_data_->argv, &_data_->argv_length1, &_data_->_argv_size_, _data_->_tmp4_);
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = NULL;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5__length1 = 0;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = _data_->argv;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5__length1 = _data_->argv_length1;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = NULL;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = g_strdup ("a+r");
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_vala_array_add20 (&_data_->argv, &_data_->argv_length1, &_data_->_argv_size_, _data_->_tmp6_);
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = NULL;
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7__length1 = 0;
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = _data_->disk_paths;
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7__length1 = _data_->disk_paths_length1;
#line 2017 "libvirt-system-importer.c"
	{
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->disk_path_collection_length1 = 0;
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_disk_path_collection_size_ = 0;
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->disk_path_collection = _data_->_tmp7_;
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->disk_path_collection_length1 = _data_->_tmp7__length1;
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		for (_data_->disk_path_it = 0; _data_->disk_path_it < _data_->_tmp7__length1; _data_->disk_path_it = _data_->disk_path_it + 1) {
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->_tmp8_ = NULL;
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->_tmp8_ = g_strdup (_data_->disk_path_collection[_data_->disk_path_it]);
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->disk_path = _data_->_tmp8_;
#line 2035 "libvirt-system-importer.c"
			{
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp9_ = NULL;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp9__length1 = 0;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp9_ = _data_->argv;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp9__length1 = _data_->argv_length1;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp10_ = NULL;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp10_ = _data_->disk_path;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp11_ = NULL;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp11_ = g_strdup (_data_->_tmp10_);
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_vala_array_add21 (&_data_->argv, &_data_->argv_length1, &_data_->_argv_size_, _data_->_tmp11_);
#line 138 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_free0 (_data_->disk_path);
#line 2057 "libvirt-system-importer.c"
			}
		}
	}
#line 141 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:141: Making all libvirt system disks read" \
"able..");
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12_ = NULL;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12__length1 = 0;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12_ = _data_->argv;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12__length1 = _data_->argv_length1;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_state_ = 1;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_exec (_data_->_tmp12_, _data_->_tmp12__length1, NULL, boxes_libvirt_system_importer_ensure_disks_readable_ready, _data_);
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 2077 "libvirt-system-importer.c"
	_state_1:
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_exec_finish (_data_->_res_, NULL, NULL, &_data_->_inner_error_);
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->argv = (_vala_array_free (_data_->argv, _data_->argv_length1, (GDestroyNotify) g_free), NULL);
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2093 "libvirt-system-importer.c"
		} else {
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2097 "libvirt-system-importer.c"
		}
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 2103 "libvirt-system-importer.c"
	}
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:143: Made all libvirt system disks readab" \
"le.");
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->argv = (_vala_array_free (_data_->argv, _data_->argv_length1, (GDestroyNotify) g_free), NULL);
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_state_ == 0) {
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2113 "libvirt-system-importer.c"
	} else {
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2117 "libvirt-system-importer.c"
	}
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_object_unref (_data_->_async_result);
#line 132 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 2123 "libvirt-system-importer.c"
}


gchar* boxes_libvirt_system_importer_get_wizard_menu_label (BoxesLibvirtSystemImporter* self) {
	gchar* result;
	guint num_domains = 0U;
	GList* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
	guint _tmp2_ = 0U;
#line 14 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp0_ = self->priv->domains;
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp1_ = g_list_length (_tmp0_);
#line 15 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	num_domains = _tmp1_;
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp2_ = num_domains;
#line 17 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_tmp2_ == ((guint) 1)) {
#line 2145 "libvirt-system-importer.c"
		const gchar* _tmp3_ = NULL;
		GList* _tmp4_ = NULL;
		gconstpointer _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp3_ = _ ("Import '%s' from system broker");
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp4_ = self->priv->domains;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp5_ = _tmp4_->data;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp6_ = gvir_domain_get_name ((GVirDomain*) _tmp5_);
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp7_ = g_strdup_printf (_tmp3_, _tmp6_);
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		result = _tmp7_;
#line 18 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return result;
#line 2165 "libvirt-system-importer.c"
	} else {
		guint _tmp8_ = 0U;
		const gchar* _tmp9_ = NULL;
		guint _tmp10_ = 0U;
		gchar* _tmp11_ = NULL;
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp8_ = num_domains;
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp9_ = ngettext ("Import %u box from system broker", "Import %u boxes from system broker", (gulong) _tmp8_);
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp10_ = num_domains;
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp11_ = g_strdup_printf (_tmp9_, _tmp10_);
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		result = _tmp11_;
#line 21 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return result;
#line 2183 "libvirt-system-importer.c"
	}
}


gchar* boxes_libvirt_system_importer_get_wizard_review_label (BoxesLibvirtSystemImporter* self) {
	gchar* result;
	guint num_domains = 0U;
	GList* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
	guint _tmp2_ = 0U;
#line 28 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp0_ = self->priv->domains;
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp1_ = g_list_length (_tmp0_);
#line 29 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	num_domains = _tmp1_;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp2_ = num_domains;
#line 31 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_tmp2_ == ((guint) 1)) {
#line 2206 "libvirt-system-importer.c"
		const gchar* _tmp3_ = NULL;
		GList* _tmp4_ = NULL;
		gconstpointer _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp3_ = _ ("Will import '%s' from system broker");
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp4_ = self->priv->domains;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp5_ = _tmp4_->data;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp6_ = gvir_domain_get_name ((GVirDomain*) _tmp5_);
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp7_ = g_strdup_printf (_tmp3_, _tmp6_);
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		result = _tmp7_;
#line 32 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return result;
#line 2226 "libvirt-system-importer.c"
	} else {
		guint _tmp8_ = 0U;
		const gchar* _tmp9_ = NULL;
		guint _tmp10_ = 0U;
		gchar* _tmp11_ = NULL;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp8_ = num_domains;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp9_ = ngettext ("Will import %u box from system broker", "Will import %u boxes from system broker", (gulong) _tmp8_);
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp10_ = num_domains;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp11_ = g_strdup_printf (_tmp9_, _tmp10_);
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		result = _tmp11_;
#line 35 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return result;
#line 2244 "libvirt-system-importer.c"
	}
}


static void boxes_libvirt_system_importer_class_init (BoxesLibvirtSystemImporterClass * klass) {
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_parent_class = g_type_class_peek_parent (klass);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_type_class_add_private (klass, sizeof (BoxesLibvirtSystemImporterPrivate));
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_libvirt_system_importer_get_property;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_libvirt_system_importer_finalize;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_SYSTEM_IMPORTER_WIZARD_MENU_LABEL, g_param_spec_string ("wizard-menu-label", "wizard-menu-label", "wizard-menu-label", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_LIBVIRT_SYSTEM_IMPORTER_WIZARD_REVIEW_LABEL, g_param_spec_string ("wizard-review-label", "wizard-review-label", "wizard-review-label", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 2262 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_instance_init (BoxesLibvirtSystemImporter * self) {
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	self->priv = BOXES_LIBVIRT_SYSTEM_IMPORTER_GET_PRIVATE (self);
#line 2269 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_finalize (GObject* obj) {
	BoxesLibvirtSystemImporter * self;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, BoxesLibvirtSystemImporter);
#line 10 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (self->priv->connection);
#line 11 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	__g_list_free__g_object_unref0_0 (self->priv->domains);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	G_OBJECT_CLASS (boxes_libvirt_system_importer_parent_class)->finalize (obj);
#line 2283 "libvirt-system-importer.c"
}


GType boxes_libvirt_system_importer_get_type (void) {
	static volatile gsize boxes_libvirt_system_importer_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_libvirt_system_importer_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesLibvirtSystemImporterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_libvirt_system_importer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesLibvirtSystemImporter), 0, (GInstanceInitFunc) boxes_libvirt_system_importer_instance_init, NULL };
		GType boxes_libvirt_system_importer_type_id;
		boxes_libvirt_system_importer_type_id = g_type_register_static (G_TYPE_OBJECT, "BoxesLibvirtSystemImporter", &g_define_type_info, 0);
		g_once_init_leave (&boxes_libvirt_system_importer_type_id__volatile, boxes_libvirt_system_importer_type_id);
	}
	return boxes_libvirt_system_importer_type_id__volatile;
}


static void _vala_boxes_libvirt_system_importer_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesLibvirtSystemImporter * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_LIBVIRT_SYSTEM_IMPORTER, BoxesLibvirtSystemImporter);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	switch (property_id) {
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case BOXES_LIBVIRT_SYSTEM_IMPORTER_WIZARD_MENU_LABEL:
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_value_take_string (value, boxes_libvirt_system_importer_get_wizard_menu_label (self));
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		break;
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case BOXES_LIBVIRT_SYSTEM_IMPORTER_WIZARD_REVIEW_LABEL:
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_value_take_string (value, boxes_libvirt_system_importer_get_wizard_review_label (self));
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		break;
#line 2316 "libvirt-system-importer.c"
		default:
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 9 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		break;
#line 2322 "libvirt-system-importer.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	if ((array != NULL) && (destroy_func != NULL)) {
#line 2330 "libvirt-system-importer.c"
		int i;
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
			if (((gpointer*) array)[i] != NULL) {
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
				destroy_func (((gpointer*) array)[i]);
#line 2338 "libvirt-system-importer.c"
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	_vala_array_destroy (array, array_length, destroy_func);
#line 476 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	g_free (array);
#line 2350 "libvirt-system-importer.c"
}



