/* libvirt-system-importer.c generated by valac 0.23.3.6-62e8, 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)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesLibvirtSystemImporterNewData BoxesLibvirtSystemImporterNewData;
typedef struct _Block67Data Block67Data;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _Block68Data Block68Data;
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_;
	GError* _error_;
	GError* _tmp3_;
	const gchar* _tmp4_;
	GVirConnection* _tmp5_;
	GList* _tmp6_;
	GList* _tmp7_;
	guint _tmp8_;
	GList* _tmp9_;
	guint _tmp10_;
	const gchar* _tmp11_;
	GError* _tmp12_;
	GError * _inner_error_;
};

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

struct _Block68Data {
	int _ref_count_;
	Block67Data * _data67_;
	gint i;
};

struct _BoxesLibvirtSystemImporterImportData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesLibvirtSystemImporter* self;
	Block67Data* _data67_;
	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_;
	Block68Data* _data68_;
	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 Block67Data* block67_data_ref (Block67Data* _data67_);
static void block67_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_add13 (GVirConfigDomain*** array, int* length, int* size, GVirConfigDomain* value);
static void _vala_array_add14 (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 Block68Data* block68_data_ref (Block68Data* _data68_);
static void block68_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 _____lambda67_ (Block68Data* _data68_, GObject* obj, GAsyncResult* _result_);
static void ______lambda67__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_add15 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add16 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add17 (gchar*** array, int* length, int* size, gchar* value);
static void _vala_array_add18 (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 473 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-machine.vala"
	return g_quark_from_static_string ("boxes_libvirt_system_importer_error-quark");
#line 368 "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 375 "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 384 "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 395 "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 411 "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 422 "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 432 "libvirt-system-importer.c"
}


static void boxes_libvirt_system_importer_new_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesLibvirtSystemImporterNewData* _data_;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = _user_data_;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_source_object_ = source_object;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_res_ = _res_;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_construct_co (_data_);
#line 446 "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 455 "libvirt-system-importer.c"
		goto _state_0;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 1:
#line 459 "libvirt-system-importer.c"
		goto _state_1;
#line 41 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 2:
#line 463 "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 468 "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 481 "libvirt-system-importer.c"
	{
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp1_ = NULL;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp1_ = _data_->self->priv->connection;
#line 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_state_ = 1;
#line 45 "/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 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 493 "libvirt-system-importer.c"
		_state_1:
#line 45 "/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 45 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_inner_error_ != NULL) {
#line 499 "libvirt-system-importer.c"
			goto __catch105_g_error;
		}
#line 46 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_debug ("libvirt-system-importer.vala:46: Connected to system libvirt, now fetc" \
"hing domains..");
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp2_ = NULL;
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp2_ = _data_->self->priv->connection;
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_state_ = 2;
#line 47 "/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 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 514 "libvirt-system-importer.c"
		_state_2:
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		gvir_connection_fetch_domains_finish (_data_->_tmp2_, _data_->_res_, &_data_->_inner_error_);
#line 47 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_inner_error_ != NULL) {
#line 520 "libvirt-system-importer.c"
			goto __catch105_g_error;
		}
	}
	goto __finally105;
	__catch105_g_error:
	{
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_inner_error_ = NULL;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp3_ = NULL;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp3_ = _data_->_error_;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp4_ = NULL;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp4_ = _data_->_tmp3_->message;
#line 49 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_warning ("libvirt-system-importer.vala:49: Failed to connect to system libvirt: " \
"%s", _data_->_tmp4_);
#line 51 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_error_free0 (_data_->_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 547 "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 551 "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 557 "libvirt-system-importer.c"
	}
	__finally105:
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_inner_error_->domain == BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR) {
#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 572 "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 576 "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 582 "libvirt-system-importer.c"
		} else {
#line 44 "/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 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_clear_error (&_data_->_inner_error_);
#line 44 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			return NULL;
#line 590 "libvirt-system-importer.c"
		}
	}
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = NULL;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = _data_->self->priv->connection;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = NULL;
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = gvir_connection_get_domains (_data_->_tmp5_);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	__g_list_free__g_object_unref0_0 (_data_->self->priv->domains);
#line 54 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->self->priv->domains = _data_->_tmp6_;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = NULL;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = _data_->self->priv->domains;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp8_ = 0U;
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp8_ = g_list_length (_data_->_tmp7_);
#line 55 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:55: Fetched %u domains from system libvir" \
"t.", _data_->_tmp8_);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp9_ = NULL;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp9_ = _data_->self->priv->domains;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp10_ = 0U;
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp10_ = g_list_length (_data_->_tmp9_);
#line 56 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_tmp10_ == ((guint) 0)) {
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp11_ = NULL;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp11_ = _ ("No boxes to import");
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp12_ = NULL;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp12_ = g_error_new_literal (BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR, BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR_NO_IMPORTS, _data_->_tmp11_);
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_inner_error_ = _data_->_tmp12_;
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_inner_error_->domain == BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR) {
#line 57 "/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 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_error_free (_data_->_inner_error_);
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			if (_data_->_state_ == 0) {
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 645 "libvirt-system-importer.c"
			} else {
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 649 "libvirt-system-importer.c"
			}
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_object_unref (_data_->_async_result);
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			return FALSE;
#line 655 "libvirt-system-importer.c"
		} else {
#line 57 "/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 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_clear_error (&_data_->_inner_error_);
#line 57 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			return NULL;
#line 663 "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 670 "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 674 "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 680 "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 687 "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 694 "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 705 "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 712 "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 731 "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 739 "libvirt-system-importer.c"
}


static Block67Data* block67_data_ref (Block67Data* _data67_) {
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_atomic_int_inc (&_data67_->_ref_count_);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return _data67_;
#line 748 "libvirt-system-importer.c"
}


static void block67_data_unref (void * _userdata_) {
	Block67Data* _data67_;
	_data67_ = (Block67Data*) _userdata_;
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (g_atomic_int_dec_and_test (&_data67_->_ref_count_)) {
#line 757 "libvirt-system-importer.c"
		BoxesLibvirtSystemImporter* self;
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		self = _data67_->self;
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data67_->configs = (_vala_array_free (_data67_->configs, _data67_->configs_length1, (GDestroyNotify) g_object_unref), NULL);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (self);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_slice_free (Block67Data, _data67_);
#line 767 "libvirt-system-importer.c"
	}
}


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


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


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


static Block68Data* block68_data_ref (Block68Data* _data68_) {
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_atomic_int_inc (&_data68_->_ref_count_);
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return _data68_;
#line 825 "libvirt-system-importer.c"
}


static void block68_data_unref (void * _userdata_) {
	Block68Data* _data68_;
	_data68_ = (Block68Data*) _userdata_;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (g_atomic_int_dec_and_test (&_data68_->_ref_count_)) {
#line 834 "libvirt-system-importer.c"
		BoxesLibvirtSystemImporter* self;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		self = _data68_->_data67_->self;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		block67_data_unref (_data68_->_data67_);
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data68_->_data67_ = NULL;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_slice_free (Block68Data, _data68_);
#line 844 "libvirt-system-importer.c"
	}
}


static void _____lambda67_ (Block68Data* _data68_, GObject* obj, GAsyncResult* _result_) {
	Block67Data* _data67_;
	BoxesLibvirtSystemImporter* self;
	GError * _inner_error_ = NULL;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data67_ = _data68_->_data67_;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	self = _data67_->self;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_if_fail (_result_ != NULL);
#line 859 "libvirt-system-importer.c"
	{
		GAsyncResult* _tmp0_ = NULL;
#line 88 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp0_ = _result_;
#line 88 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		boxes_libvirt_system_importer_import_domain_finish (self, _tmp0_, &_inner_error_);
#line 88 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_inner_error_ != NULL) {
#line 868 "libvirt-system-importer.c"
			goto __catch108_g_error;
		}
	}
	goto __finally108;
	__catch108_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 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_error_ = _inner_error_;
#line 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_inner_error_ = NULL;
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp1_ = _data67_->configs;
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp1__length1 = _data67_->configs_length1;
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp2_ = _data68_->i;
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp3_ = _tmp1_[_tmp2_];
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp4_ = gvir_config_domain_get_name (_tmp3_);
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp5_ = _tmp4_;
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp6_ = _error_;
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp7_ = _tmp6_->message;
#line 90 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_warning ("libvirt-system-importer.vala:90: Failed to import '%s': %s", _tmp5_, _tmp7_);
#line 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_error_free0 (_error_);
#line 908 "libvirt-system-importer.c"
	}
	__finally108:
#line 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_inner_error_ != NULL) {
#line 87 "/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 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_clear_error (&_inner_error_);
#line 87 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return;
#line 919 "libvirt-system-importer.c"
	}
}


static void ______lambda67__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_____lambda67_ (self, source_object, res);
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	block68_data_unref (self);
#line 929 "libvirt-system-importer.c"
}


static gboolean boxes_libvirt_system_importer_import_co (BoxesLibvirtSystemImporterImportData* _data_) {
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	switch (_data_->_state_) {
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 0:
#line 938 "libvirt-system-importer.c"
		goto _state_0;
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 1:
#line 942 "libvirt-system-importer.c"
		goto _state_1;
		default:
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_assert_not_reached ();
#line 947 "libvirt-system-importer.c"
	}
	_state_0:
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data67_ = g_slice_new0 (Block67Data);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data67_->_ref_count_ = 1;
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data67_->self = g_object_ref (_data_->self);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data67_->_async_data_ = _data_;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = NULL;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = g_new0 (GVirConfigDomain*, 0 + 1);
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data67_->configs = _data_->_tmp0_;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data67_->configs_length1 = 0;
#line 61 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data67_->_configs_size_ = _data_->_data67_->configs_length1;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = NULL;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = g_new0 (gchar*, 0 + 1);
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->disk_paths_length1 = 0;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_disk_paths_size_ = 0;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->disk_paths = _data_->_tmp1_;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->disk_paths_length1 = 0;
#line 62 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_disk_paths_size_ = _data_->disk_paths_length1;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = NULL;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = _data_->self->priv->domains;
#line 986 "libvirt-system-importer.c"
	{
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->domain_collection = _data_->_tmp2_;
#line 64 "/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 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->_tmp3_ = NULL;
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->_tmp3_ = _g_object_ref0 ((GVirDomain*) _data_->domain_it->data);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->domain = _data_->_tmp3_;
#line 998 "libvirt-system-importer.c"
			{
				{
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp4_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp4_ = _data_->domain;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp5_ = NULL;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp6_ = NULL;
#line 69 "/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 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (_data_->config);
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->config = _data_->_tmp5_;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_free0 (_data_->disk_path);
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->disk_path = _data_->_tmp6_;
#line 69 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					if (_data_->_inner_error_ != NULL) {
#line 1021 "libvirt-system-importer.c"
						goto __catch106_g_error;
					}
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp7_ = NULL;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp7__length1 = 0;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp7_ = _data_->_data67_->configs;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp7__length1 = _data_->_data67_->configs_length1;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp8_ = NULL;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp8_ = _data_->config;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp9_ = NULL;
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp9_ = _g_object_ref0 (_data_->_tmp8_);
#line 70 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_vala_array_add13 (&_data_->_data67_->configs, &_data_->_data67_->configs_length1, &_data_->_data67_->_configs_size_, _data_->_tmp9_);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp10_ = NULL;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp10__length1 = 0;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp10_ = _data_->disk_paths;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp10__length1 = _data_->disk_paths_length1;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp11_ = NULL;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp11_ = _data_->disk_path;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp12_ = NULL;
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp12_ = g_strdup (_data_->_tmp11_);
#line 71 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_vala_array_add14 (&_data_->disk_paths, &_data_->disk_paths_length1, &_data_->_disk_paths_size_, _data_->_tmp12_);
#line 1060 "libvirt-system-importer.c"
				}
				goto __finally106;
				__catch106_g_error:
				{
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_error_ = _data_->_inner_error_;
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_inner_error_ = NULL;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp13_ = NULL;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp13_ = _data_->_error_;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp14_ = NULL;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp14_ = _data_->_tmp13_->message;
#line 73 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					g_warning ("libvirt-system-importer.vala:73: %s", _data_->_tmp14_);
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_error_free0 (_data_->_error_);
#line 1081 "libvirt-system-importer.c"
				}
				__finally106:
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				if (_data_->_inner_error_ != NULL) {
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_free0 (_data_->disk_path);
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (_data_->config);
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (_data_->domain);
#line 68 "/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 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					block67_data_unref (_data_->_data67_);
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_data67_ = NULL;
#line 68 "/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 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					g_clear_error (&_data_->_inner_error_);
#line 68 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					return FALSE;
#line 1104 "libvirt-system-importer.c"
				}
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_free0 (_data_->disk_path);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_object_unref0 (_data_->config);
#line 64 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_object_unref0 (_data_->domain);
#line 1112 "libvirt-system-importer.c"
			}
		}
	}
	{
#line 78 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp15_ = NULL;
#line 78 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp15__length1 = 0;
#line 78 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp15_ = _data_->disk_paths;
#line 78 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp15__length1 = _data_->disk_paths_length1;
#line 78 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_state_ = 1;
#line 78 "/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 78 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1131 "libvirt-system-importer.c"
		_state_1:
#line 78 "/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 78 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_inner_error_ != NULL) {
#line 1137 "libvirt-system-importer.c"
			goto __catch107_g_error;
		}
	}
	goto __finally107;
	__catch107_g_error:
	{
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_vala1__error_ = _data_->_inner_error_;
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_inner_error_ = NULL;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp16_ = NULL;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp16_ = _data_->_vala1__error_;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp17_ = NULL;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_tmp17_ = _data_->_tmp16_->message;
#line 80 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_warning ("libvirt-system-importer.vala:80: Failed to make all libvirt system dis" \
"ks readable: %s", _data_->_tmp17_);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_error_free0 (_data_->_vala1__error_);
#line 82 "/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 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		block67_data_unref (_data_->_data67_);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data67_ = NULL;
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1170 "libvirt-system-importer.c"
		} else {
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1174 "libvirt-system-importer.c"
		}
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 82 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1180 "libvirt-system-importer.c"
	}
	__finally107:
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 77 "/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 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		block67_data_unref (_data_->_data67_);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data67_ = NULL;
#line 77 "/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 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_clear_error (&_data_->_inner_error_);
#line 77 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1197 "libvirt-system-importer.c"
	}
	{
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data68_ = g_slice_new0 (Block68Data);
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data68_->_ref_count_ = 1;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data68_->_data67_ = block67_data_ref (_data_->_data67_);
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data68_->i = 0;
#line 1208 "libvirt-system-importer.c"
		{
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->_tmp18_ = TRUE;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			while (TRUE) {
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				if (!_data_->_tmp18_) {
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp19_ = 0;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_tmp19_ = _data_->_data68_->i;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_data_->_data68_->i = _data_->_tmp19_ + 1;
#line 1222 "libvirt-system-importer.c"
				}
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp18_ = FALSE;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp20_ = 0;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp20_ = _data_->_data68_->i;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp21_ = NULL;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp21__length1 = 0;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp21_ = _data_->_data67_->configs;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp21__length1 = _data_->_data67_->configs_length1;
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				if (!(_data_->_tmp20_ < _data_->_tmp21__length1)) {
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					break;
#line 1242 "libvirt-system-importer.c"
				}
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp22_ = NULL;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp22__length1 = 0;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp22_ = _data_->_data67_->configs;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp22__length1 = _data_->_data67_->configs_length1;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp23_ = 0;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp23_ = _data_->_data68_->i;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp24_ = NULL;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp24_ = _data_->_tmp22_[_data_->_tmp23_];
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp25_ = NULL;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp25__length1 = 0;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp25_ = _data_->disk_paths;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp25__length1 = _data_->disk_paths_length1;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp26_ = 0;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp26_ = _data_->_data68_->i;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp27_ = NULL;
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp27_ = _data_->_tmp25_[_data_->_tmp26_];
#line 86 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				boxes_libvirt_system_importer_import_domain (_data_->self, _data_->_tmp24_, _data_->_tmp27_, NULL, ______lambda67__gasync_ready_callback, block68_data_ref (_data_->_data68_));
#line 1278 "libvirt-system-importer.c"
			}
		}
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		block68_data_unref (_data_->_data68_);
#line 85 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_data68_ = NULL;
#line 1285 "libvirt-system-importer.c"
	}
#line 60 "/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 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	block67_data_unref (_data_->_data67_);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_data67_ = NULL;
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_state_ == 0) {
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1297 "libvirt-system-importer.c"
	} else {
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1301 "libvirt-system-importer.c"
	}
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_object_unref (_data_->_async_result);
#line 60 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 1307 "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 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_if_fail (self != NULL);
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_if_fail (domain != NULL);
#line 96 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp0_ = domain;
#line 96 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp1_ = gvir_domain_get_name (_tmp0_);
#line 96 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:96: Fetching config for '%s' from system " \
"libvirt.", _tmp1_);
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp3_ = domain;
#line 97 "/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 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp2_ = _tmp4_;
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_inner_error_ != NULL) {
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_propagate_error (error, _inner_error_);
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return;
#line 1349 "libvirt-system-importer.c"
	}
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp5_ = _tmp2_;
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp2_ = NULL;
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_vala_config);
#line 97 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_vala_config = _tmp5_;
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp6_ = domain;
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp7_ = gvir_domain_get_name (_tmp6_);
#line 98 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:98: Finding a suitable disk to import for" \
" '%s' from system libvirt.", _tmp7_);
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp9_ = _vala_config;
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp10_ = boxes_libvirt_system_importer_get_disk_path (self, _tmp9_, &_inner_error_);
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp8_ = _tmp10_;
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_inner_error_ != NULL) {
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_propagate_error (error, _inner_error_);
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (_tmp2_);
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return;
#line 1379 "libvirt-system-importer.c"
	}
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp11_ = _tmp8_;
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp8_ = NULL;
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_free0 (_vala_disk_path);
#line 99 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_vala_disk_path = _tmp11_;
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_free0 (_tmp8_);
#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"
	if (config) {
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*config = _vala_config;
#line 1397 "libvirt-system-importer.c"
	} else {
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (_vala_config);
#line 1401 "libvirt-system-importer.c"
	}
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (disk_path) {
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*disk_path = _vala_disk_path;
#line 1407 "libvirt-system-importer.c"
	} else {
#line 95 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_free0 (_vala_disk_path);
#line 1411 "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 1429 "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 1478 "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 1488 "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 1492 "libvirt-system-importer.c"
}


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


static gboolean boxes_libvirt_system_importer_import_domain_co (BoxesLibvirtSystemImporterImportDomainData* _data_) {
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	switch (_data_->_state_) {
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 0:
#line 1515 "libvirt-system-importer.c"
		goto _state_0;
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 1:
#line 1519 "libvirt-system-importer.c"
		goto _state_1;
		default:
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_assert_not_reached ();
#line 1524 "libvirt-system-importer.c"
	}
	_state_0:
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = NULL;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = _data_->config;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = NULL;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = gvir_config_domain_get_name (_data_->_tmp0_);
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = NULL;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 105 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:105: Importing '%s' from system libvirt..", _data_->_tmp2_);
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3_ = NULL;
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3_ = _data_->disk_path;
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp4_ = NULL;
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp4_ = _data_->config;
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = NULL;
#line 107 "/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 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->media = _data_->_tmp5_;
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 107 "/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 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1565 "libvirt-system-importer.c"
		} else {
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1569 "libvirt-system-importer.c"
		}
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 107 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1575 "libvirt-system-importer.c"
	}
#line 108 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = NULL;
#line 108 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = _data_->media;
#line 108 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = NULL;
#line 108 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = boxes_installer_media_get_vm_creator ((BoxesInstallerMedia*) _data_->_tmp6_);
#line 108 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->vm_importer = _data_->_tmp7_;
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp8_ = NULL;
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp8_ = _data_->vm_importer;
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp9_ = NULL;
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp9_ = _data_->cancellable;
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_state_ = 1;
#line 109 "/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 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 1601 "libvirt-system-importer.c"
	_state_1:
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp10_ = NULL;
#line 109 "/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 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->machine = _data_->_tmp10_;
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 109 "/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 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_boxes_vm_creator_unref0 (_data_->vm_importer);
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (_data_->media);
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1623 "libvirt-system-importer.c"
		} else {
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1627 "libvirt-system-importer.c"
		}
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 109 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1633 "libvirt-system-importer.c"
	}
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp11_ = NULL;
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp11_ = _data_->vm_importer;
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12_ = NULL;
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12_ = _data_->machine;
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_vm_creator_launch_vm (_data_->_tmp11_, _data_->_tmp12_, &_data_->_inner_error_);
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 110 "/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 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (_data_->machine);
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_boxes_vm_creator_unref0 (_data_->vm_importer);
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_g_object_unref0 (_data_->media);
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1661 "libvirt-system-importer.c"
		} else {
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1665 "libvirt-system-importer.c"
		}
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 110 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 1671 "libvirt-system-importer.c"
	}
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->machine);
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_boxes_vm_creator_unref0 (_data_->vm_importer);
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_g_object_unref0 (_data_->media);
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_state_ == 0) {
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1683 "libvirt-system-importer.c"
	} else {
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1687 "libvirt-system-importer.c"
	}
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_object_unref (_data_->_async_result);
#line 102 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 1693 "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 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 113 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_return_val_if_fail (config != NULL, NULL);
#line 114 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	disk_path = NULL;
#line 116 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp0_ = config;
#line 116 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp1_ = gvir_config_domain_get_devices (_tmp0_);
#line 116 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	devices = _tmp1_;
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp2_ = devices;
#line 1720 "libvirt-system-importer.c"
	{
		GList* device_collection = NULL;
		GList* device_it = NULL;
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		device_collection = _tmp2_;
#line 117 "/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 1728 "libvirt-system-importer.c"
			GVirConfigDomainDevice* _tmp3_ = NULL;
			GVirConfigDomainDevice* device = NULL;
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_tmp3_ = _g_object_ref0 ((GVirConfigDomainDevice*) device_it->data);
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			device = _tmp3_;
#line 1735 "libvirt-system-importer.c"
			{
				GVirConfigDomainDevice* _tmp4_ = NULL;
				GVirConfigDomainDisk* disk = NULL;
				GVirConfigDomainDevice* _tmp5_ = NULL;
				GVirConfigDomainDisk* _tmp6_ = NULL;
				GVirConfigDomainDisk* _tmp7_ = NULL;
				GVirConfigDomainDiskGuestDeviceType _tmp8_ = 0;
#line 118 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_tmp4_ = device;
#line 118 "/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 119 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (device);
#line 119 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					continue;
#line 1751 "libvirt-system-importer.c"
				}
#line 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_tmp5_ = device;
#line 121 "/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 121 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				disk = _tmp6_;
#line 122 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_tmp7_ = disk;
#line 122 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_tmp8_ = gvir_config_domain_disk_get_guest_device_type (_tmp7_);
#line 122 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				if (_tmp8_ == GVIR_CONFIG_DOMAIN_DISK_GUEST_DEVICE_DISK) {
#line 1765 "libvirt-system-importer.c"
					GVirConfigDomainDisk* _tmp9_ = NULL;
					const gchar* _tmp10_ = NULL;
					gchar* _tmp11_ = NULL;
#line 123 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_tmp9_ = disk;
#line 123 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_tmp10_ = gvir_config_domain_disk_get_source (_tmp9_);
#line 123 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_tmp11_ = g_strdup (_tmp10_);
#line 123 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_free0 (disk_path);
#line 123 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					disk_path = _tmp11_;
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (disk);
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					_g_object_unref0 (device);
#line 125 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
					break;
#line 1785 "libvirt-system-importer.c"
				}
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_object_unref0 (disk);
#line 117 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_object_unref0 (device);
#line 1791 "libvirt-system-importer.c"
			}
		}
	}
#line 129 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_tmp12_ = disk_path;
#line 129 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_tmp12_ == NULL) {
#line 1799 "libvirt-system-importer.c"
		const gchar* _tmp13_ = NULL;
		GVirConfigDomain* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
		GError* _tmp17_ = NULL;
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp13_ = _ ("Failed to find suitable disk to import for box '%s'");
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp14_ = config;
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp15_ = gvir_config_domain_get_name (_tmp14_);
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_tmp16_ = _tmp15_;
#line 130 "/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 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_inner_error_ = _tmp17_;
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_inner_error_->domain == BOXES_LIBVIRT_SYSTEM_IMPORTER_ERROR) {
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_propagate_error (error, _inner_error_);
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			__g_list_free__g_object_unref0_0 (devices);
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_g_free0 (disk_path);
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			return NULL;
#line 1827 "libvirt-system-importer.c"
		} else {
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			__g_list_free__g_object_unref0_0 (devices);
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_g_free0 (disk_path);
#line 130 "/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 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_clear_error (&_inner_error_);
#line 130 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			return NULL;
#line 1839 "libvirt-system-importer.c"
		}
	}
#line 133 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	result = disk_path;
#line 133 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	__g_list_free__g_object_unref0_0 (devices);
#line 133 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return result;
#line 1848 "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 1859 "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 1888 "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 1898 "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 1902 "libvirt-system-importer.c"
}


static void _vala_array_add15 (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 1913 "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 1919 "libvirt-system-importer.c"
}


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


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


static void _vala_array_add18 (gchar*** array, int* length, int* size, gchar* value) {
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if ((*length) == (*size)) {
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 1964 "libvirt-system-importer.c"
	}
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[(*length)++] = value;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	(*array)[*length] = NULL;
#line 1970 "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 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_ = _user_data_;
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_source_object_ = source_object;
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_res_ = _res_;
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_libvirt_system_importer_ensure_disks_readable_co (_data_);
#line 1984 "libvirt-system-importer.c"
}


static gboolean boxes_libvirt_system_importer_ensure_disks_readable_co (BoxesLibvirtSystemImporterEnsureDisksReadableData* _data_) {
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	switch (_data_->_state_) {
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 0:
#line 1993 "libvirt-system-importer.c"
		goto _state_0;
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		case 1:
#line 1997 "libvirt-system-importer.c"
		goto _state_1;
		default:
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_assert_not_reached ();
#line 2002 "libvirt-system-importer.c"
	}
	_state_0:
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = NULL;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp0_ = g_new0 (gchar*, 0 + 1);
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->argv_length1 = 0;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_argv_size_ = 0;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->argv = _data_->_tmp0_;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->argv_length1 = 0;
#line 137 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_argv_size_ = _data_->argv_length1;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = NULL;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1__length1 = 0;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1_ = _data_->argv;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp1__length1 = _data_->argv_length1;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = NULL;
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp2_ = g_strdup ("pkexec");
#line 139 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_vala_array_add15 (&_data_->argv, &_data_->argv_length1, &_data_->_argv_size_, _data_->_tmp2_);
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3_ = NULL;
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3__length1 = 0;
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3_ = _data_->argv;
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp3__length1 = _data_->argv_length1;
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp4_ = NULL;
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp4_ = g_strdup ("chmod");
#line 140 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_vala_array_add16 (&_data_->argv, &_data_->argv_length1, &_data_->_argv_size_, _data_->_tmp4_);
#line 141 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = NULL;
#line 141 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5__length1 = 0;
#line 141 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5_ = _data_->argv;
#line 141 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp5__length1 = _data_->argv_length1;
#line 141 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = NULL;
#line 141 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp6_ = g_strdup ("a+r");
#line 141 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_vala_array_add17 (&_data_->argv, &_data_->argv_length1, &_data_->_argv_size_, _data_->_tmp6_);
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = NULL;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7__length1 = 0;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7_ = _data_->disk_paths;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp7__length1 = _data_->disk_paths_length1;
#line 2069 "libvirt-system-importer.c"
	{
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->disk_path_collection_length1 = 0;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->_disk_path_collection_size_ = 0;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->disk_path_collection = _data_->_tmp7_;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		_data_->disk_path_collection_length1 = _data_->_tmp7__length1;
#line 142 "/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 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->_tmp8_ = NULL;
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->_tmp8_ = g_strdup (_data_->disk_path_collection[_data_->disk_path_it]);
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			_data_->disk_path = _data_->_tmp8_;
#line 2087 "libvirt-system-importer.c"
			{
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp9_ = NULL;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp9__length1 = 0;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp9_ = _data_->argv;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp9__length1 = _data_->argv_length1;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp10_ = NULL;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp10_ = _data_->disk_path;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp11_ = NULL;
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_data_->_tmp11_ = g_strdup (_data_->_tmp10_);
#line 143 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_vala_array_add18 (&_data_->argv, &_data_->argv_length1, &_data_->_argv_size_, _data_->_tmp11_);
#line 142 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
				_g_free0 (_data_->disk_path);
#line 2109 "libvirt-system-importer.c"
			}
		}
	}
#line 145 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:145: Making all libvirt system disks read" \
"able..");
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12_ = NULL;
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12__length1 = 0;
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12_ = _data_->argv;
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_tmp12__length1 = _data_->argv_length1;
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	_data_->_state_ = 1;
#line 146 "/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 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 2129 "libvirt-system-importer.c"
	_state_1:
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	boxes_exec_finish (_data_->_res_, NULL, NULL, &_data_->_inner_error_);
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_inner_error_ != NULL) {
#line 146 "/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 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_error_free (_data_->_inner_error_);
#line 146 "/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 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		if (_data_->_state_ == 0) {
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2145 "libvirt-system-importer.c"
		} else {
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2149 "libvirt-system-importer.c"
		}
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_object_unref (_data_->_async_result);
#line 146 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		return FALSE;
#line 2155 "libvirt-system-importer.c"
	}
#line 147 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_debug ("libvirt-system-importer.vala:147: Made all libvirt system disks readab" \
"le.");
#line 136 "/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 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	if (_data_->_state_ == 0) {
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2165 "libvirt-system-importer.c"
	} else {
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2169 "libvirt-system-importer.c"
	}
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	g_object_unref (_data_->_async_result);
#line 136 "/home/zeenix/checkout/gnome/gnome-boxes/src/libvirt-system-importer.vala"
	return FALSE;
#line 2175 "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 2197 "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 2217 "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 2235 "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 2258 "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 2278 "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 2296 "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 2314 "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 2321 "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 2335 "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 2368 "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 2374 "libvirt-system-importer.c"
	}
}


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


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



